1 Reply Latest reply on Oct 4, 2007 12:11 PM by Santharam Ayyalasomayajula

    JBossWS Sample Test cases are failing

    Santharam Ayyalasomayajula Newbie

      I'm running the samples provided by JbossWS under 4.0.5 version. All the tests are failing though there is some activity on the server.

      ant -Dtest=org.jboss.test.ws.jaxrpc.samples.jsr109pojo.RpcJSETestCase one-test

      one-test:
      [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109pojo.RpcJSETestCase
      [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 2.156 sec
      [junit] Test org.jboss.test.ws.jaxrpc.samples.jsr109pojo.RpcJSETestCase FAILED


      On JBOSS server the following is displayed:

      11:39:27,921 INFO [TomcatDeployer] deploy, ctxPath=/jaxrpc-samples-jsr109pojo-rpc, warUrl=.../tmp/deploy/tmp60494jaxrpc-samples-j
      sr109pojo-rpc-exp.war/
      11:39:28,078 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jbossws-1.2.1.GA/jbossws-samples-1.2.0.GA/output/wsdl-publish/j
      sr109pojo/TestService.wsdl
      11:39:28,187 INFO [ServiceEndpointManager] WebService started: http://mlb-ed-2f-sol-l:8080/jaxrpc-samples-jsr109pojo-rpc
      11:39:28,265 INFO [ClientDeployer] Client ENC bound under: jbossws-client
      11:39:28,390 INFO [ClientDeployer] Removing client ENC from: jbossws-client
      11:39:28,406 INFO [ServiceEndpointManager] WebService stopped: http://mlb-ed-2f-sol-l:8080/jaxrpc-samples-jsr109pojo-rpc
      11:39:28,406 INFO [TomcatDeployer] undeploy, ctxPath=/jaxrpc-samples-jsr109pojo-rpc, warUrl=.../tmp/deploy/tmp60494jaxrpc-samples
      -jsr109pojo-rpc-exp.war/

      Any help is appreciated.

        • 1. Re: JBossWS Sample Test cases are failing
          Santharam Ayyalasomayajula Newbie

          Below is the log created for the testcase.

          Testsuite: org.jboss.test.ws.jaxrpc.samples.rpcstyle.TrivialServiceRpcTestCase
          Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.75 sec

          Testcase: testTrivialAccess took 0.047 sec
          Caused an ERROR
          Could not dereference object
          javax.naming.NamingException: Could not dereference object [Root exception is java.lang.ClassNotFoundException: org.jboss.ws.metadata.j2ee.serviceref.UnifiedServiceRefMetaData]
          at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150)
          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
          at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:135)
          at $Proxy1.lookup(Unknown Source)
          at javax.naming.InitialContext.lookup(InitialContext.java:351)
          at org.jboss.test.ws.jaxrpc.samples.rpcstyle.TrivialServiceRpcTestCase.setUp(TrivialServiceRpcTestCase.java:62)
          at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
          at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
          at junit.extensions.TestSetup.run(TestSetup.java:23)
          Caused by: java.lang.ClassNotFoundException: org.jboss.ws.metadata.j2ee.serviceref.UnifiedServiceRefMetaData
          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
          at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:242)
          at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:585)
          at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
          at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
          at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
          at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
          at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
          at org.jboss.ws.core.jaxrpc.client.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:111)
          at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
          at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
          at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)