2 Replies Latest reply on Feb 10, 2009 5:39 AM by Alessio Soldano

    ant tests errors: NoClassDefFoundError: org/jboss/wsf/test/G

    Brent Kyle Newbie

      Hi,

      I'm new to web services on JBoss. I'm trying to debug my installation of JBossWS native 3.0.2 on JBossAS 4.2.1

      When I try to run the tests that come in the jbossws-native-dist\tests directory, I get this error:
      NoClassDefFoundError: org/jboss/wsf/test/GenericSOAPHandler

      I put the console output below from both the client side (where the ant tests are running) and from the server side (where JBossAS is running).

      Any ideas what the problem is? I would really appreciate the help.

      -Brent.


      ****************** CLIENT ANT TESTS SIDE *****************
      tests-run-internal:
      [junit] WARNING: multiple versions of ant detected in path for junit
      [junit] jar:file:/C:/java/apache-ant-1.7.1/lib/ant.jar!/org/apache/tools/ant/Project.class
      [junit] and jar:file:/C:/java/jbossws-native-dist/deploy/lib/ant.jar!/org/apache/tools/ant/Project.class
      [junit] Running org.jboss.test.ws.console.ConsoleAccessTestCase
      [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.062 sec
      [junit] Running org.jboss.test.ws.jaxws.samples.advanced.retail.RetailSampleTestCase
      [junit] javax.management.MBeanException
      [junit] at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)

      [junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
      [junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      [junit] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      [junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      [junit] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:14
      2)
      [junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      [junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      [junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [junit] at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      [junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      [junit] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      [junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      [junit] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:14
      2)
      [junit] at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
      [junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      [junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      [junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [junit] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      [junit] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      [junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      [junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      [junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [junit] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
      [junit] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [junit] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      [junit] at sun.rmi.transport.Transport$1.run(Transport.java:153)
      [junit] at java.security.AccessController.doPrivileged(Native Method)
      [junit] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      [junit] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
      [junit] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
      [junit] at java.lang.Thread.run(Thread.java:595)
      [junit] Caused by: org.jboss.deployment.DeploymentException: Could not create deployment: file:/C:/java/jbossws-nati
      ve-dist/output/test-libs/jaxws-samples-retail.jar; - nested throwable: (java.lang.NoClassDefFoundError: org/jboss/wsf/te
      st/GenericSOAPHandler)
      [junit] at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
      [junit] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:991)
      [junit] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
      [junit] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      [junit] at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
      [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [junit] at java.lang.reflect.Method.invoke(Method.java:585)
      [junit] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      [junit] ... 48 more
      [junit] Caused by: java.lang.NoClassDefFoundError: org/jboss/wsf/test/GenericSOAPHandler
      [junit] at java.lang.ClassLoader.defineClass1(Native Method)
      [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      [junit] at java.security.AccessController.doPrivileged(Native Method)
      [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      [junit] at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:675)
      [junit] at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:655)
      [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      [junit] at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:193)
      [junit] at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
      [junit] at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
      [junit] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:520)
      [junit] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
      [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      [junit] at org.jboss.ws.metadata.umdm.HandlerMetaData.getHandlerClass(HandlerMetaData.java:115)
      [junit] at org.jboss.ws.metadata.umdm.HandlerMetaDataJAXWS.toString(HandlerMetaDataJAXWS.java:86)
      [junit] at java.lang.String.valueOf(String.java:2615)
      [junit] at java.lang.StringBuilder.append(StringBuilder.java:116)
      [junit] at org.jboss.ws.metadata.umdm.ServerEndpointMetaData.toString(ServerEndpointMetaData.java:214)
      [junit] at java.lang.String.valueOf(String.java:2615)
      [junit] at java.lang.StringBuilder.append(StringBuilder.java:116)
      [junit] at org.jboss.ws.metadata.umdm.ServiceMetaData.toString(ServiceMetaData.java:458)
      [junit] at java.lang.String.valueOf(String.java:2615)
      [junit] at java.lang.StringBuilder.append(StringBuilder.java:116)
      [junit] at org.jboss.ws.metadata.umdm.UnifiedMetaData.toString(UnifiedMetaData.java:227)
      [junit] at java.lang.String.valueOf(String.java:2615)
      [junit] at java.lang.StringBuilder.append(StringBuilder.java:116)
      [junit] at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.j
      ava:93)
      [junit] at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92)
      [junit] at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:1
      27)
      [junit] at org.jboss.ws.integration.jboss42.DeployerInterceptorEJB.createServiceEndpoint(DeployerInterceptorEJB.
      java:43)
      [junit] at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78)
      [junit] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSup
      port.java:180)
      [junit] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
      [junit] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      [junit] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      [junit] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      [junit] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      [junit] at $Proxy34.create(Unknown Source)
      [junit] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
      [junit] ... 54 more
      [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 3.656 sec


      ****************** SERVER SIDE ********************
      12:52:06,538 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
      12:52:06,616 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
      12:52:06,663 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started i
      n 29s:266ms
      12:53:00,960 ERROR [MainDeployer] Could not create deployment: file:/C:/java/jbossws-native-dist/output/test-libs/jaxws-
      samples-retail.jar
      java.lang.NoClassDefFoundError: org/jboss/wsf/test/GenericSOAPHandler
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:675)
      at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:655)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:193)
      at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
      at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:520)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.jboss.ws.metadata.umdm.HandlerMetaData.getHandlerClass(HandlerMetaData.java:115)
      at org.jboss.ws.metadata.umdm.HandlerMetaDataJAXWS.toString(HandlerMetaDataJAXWS.java:86)
      at java.lang.String.valueOf(String.java:2615)
      at java.lang.StringBuilder.append(StringBuilder.java:116)
      at org.jboss.ws.metadata.umdm.ServerEndpointMetaData.toString(ServerEndpointMetaData.java:214)
      at java.lang.String.valueOf(String.java:2615)
      at java.lang.StringBuilder.append(StringBuilder.java:116)
      at org.jboss.ws.metadata.umdm.ServiceMetaData.toString(ServiceMetaData.java:458)
      at java.lang.String.valueOf(String.java:2615)
      at java.lang.StringBuilder.append(StringBuilder.java:116)
      at org.jboss.ws.metadata.umdm.UnifiedMetaData.toString(UnifiedMetaData.java:227)
      at java.lang.String.valueOf(String.java:2615)
      at java.lang.StringBuilder.append(StringBuilder.java:116)
      at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:93)
      at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92)
      at org.jboss.ws.integration.jboss42.DeployerInterceptor.createServiceEndpoint(DeployerInterceptor.java:127)
      at org.jboss.ws.integration.jboss42.DeployerInterceptorEJB.createServiceEndpoint(DeployerInterceptorEJB.java:43)

      at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:78)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.jav
      a:180)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy34.create(Unknown Source)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      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.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
      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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
      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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
      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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      at sun.rmi.transport.Transport$1.run(Transport.java:153)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
      at java.lang.Thread.run(Thread.java:595)
      12:53:01,382 ERROR [ServiceEndpointPublisher] Cannot obtain waURL for: jaxws-samples-retail.jar
      12:53:02,866 INFO [TomcatDeployer] deploy, ctxPath=/jaxws-samples-asynchronous, warUrl=.../tmp/deploy/tmp3562jaxws-samp
      les-asynchronous-exp.war/