开发者

TestingNG error in Seam project in JBDS

开发者 https://www.devze.com 2023-03-14 20:29 出处:网络
I am trying to start a seam project in jboss developer studio 4 GA and following this tutorial: http://docs.jboss.org/tools/3.1.0.GA/en/GettingStarted开发者_如何学CGuide/pdf/Getting_Started_Guide.pdf.

I am trying to start a seam project in jboss developer studio 4 GA and following this tutorial: http://docs.jboss.org/tools/3.1.0.GA/en/GettingStarted开发者_如何学CGuide/pdf/Getting_Started_Guide.pdf. The simple seam project runs well until i add the POJO action myAction. The step that says to test the myActionTest.xml file gives and error saying:

could not connect to RemoteTestNGClient. Make sure you don't have an older version of testng.jar on your classpath

When i run the project the home page runs fine (home.seam) but the myAction.xhtml gives an error saying requested resource is not available:

TestingNG error in Seam project in JBDS

TestingNG error in Seam project in JBDS

Kindly help me in this matter!!!


If you are using jdk 1.5+, you need to add testng-jdk15.jar in your classpath. Just remember to add this JVM flag when running the TestNG tests:

-Dsun.lang.ClassLoader.allowArraySyntax=true


Can you try with a clean workspace?

0

精彩评论

暂无评论...
验证码 换一张
取 消