[JBoss Tools (users)] - How to run the test cases?
by SunFire
When I create a Seam EAR project there is also a ProjectName-test created. I also have created a sample action and the matching tests stubs have been created as well including the test-ng definition. How I am supposed to run the test now? I tried to just do a "Run as... TestNG Suite" after installing the Test-NG plugin but that did not work.
| org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| *** DEPLOYMENTS IN ERROR: Name -> Error
|
| vfsfile:/C:/java/workspaces/test/Example-ejb/build/classes/ -> java.lang.IllegalStateException: FileHandler@262539730[path= context=file:/C:/java/workspaces/test/Example-ejb/build/classes/ real=file:/C:/java/workspaces/test/Example-ejb/build/classes/] has no parent.
|
|
| at org.jboss.embedded.DeploymentGroup.checkIncomplete(DeploymentGroup.java:151)
| at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:129)
| at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:307)
| at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:14)
| at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1006)
| at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:931)
| at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580)
| at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:398)
| at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:145)
| at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:82)
| at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:166)
| at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
| at org.testng.TestRunner.runWorkers(TestRunner.java:689)
| at org.testng.TestRunner.privateRun(TestRunner.java:566)
| at org.testng.TestRunner.run(TestRunner.java:466)
| at org.testng.SuiteRunner.runTest(SuiteRunner.java:301)
| at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296)
| at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276)
| at org.testng.SuiteRunner.run(SuiteRunner.java:191)
| at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808)
| at org.testng.TestNG.runSuitesLocally(TestNG.java:776)
| at org.testng.TestNG.run(TestNG.java:701)
| at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
| at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
|
|
So what is the suggested way to run the tests out of the box?
Thanks, Thorsten
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109358#4109358
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109358
18 years, 4 months
[JBossWS] - Jboss web service and Websphere Client Access
by kalai_p@yahoo.com
Hi,
I am using a webservice provided by a client of ours running in jboss 4.2.1(Recently migrated from JBoss 4.2).
Before the migration I was able to access the webservice from my client generated by IBM WSDL2Java tool in RAD 7.0. But now when I access the webservice, I am getting a nullpointer error in my client side where they get soapbody out of the message.
When I analysed, I found RAD sends the soap message without spaces and line breaks between tags.
Eg:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:com:abc.system:ping:request:v1"><soapenv:Header/><soapenv:Body><urn:pingRequest><urn:Header traceLevel="DEBUG"/><urn:Context employeeId="empid" employeePassword="pass" languageCode="EN"/><urn:EchoMessage text="BOO"/></urn:pingRequest></soapenv:Body></soapenv:Envelope>
This fails. But if the same message is sent with spaces between tags, it works fine.(Tested using SoapUI)
Is there any setting we have to put in JBoss to avoid this error.
Thanks
Kalai
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109355#4109355
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109355
18 years, 4 months