4 Replies Latest reply on May 16, 2006 2:20 PM by tpedone

    NoSuchMethodException using JBossWS 1.0.0GA

    tpedone

      I've downloaded and deployed the 1.0.0GA release and am seeing a NoSuchMethodError. Here's a partial stack trace:

      java.lang.NoSuchMethodError: org.jboss.xb.binding.metadata.ClassMetaData.setUseNoArgCtor(Ljava/lang/Boolean;)V
       at org.jboss.ws.jaxb.SchemaBindingBuilder.processNonArrayType(SchemaBindingBuilder.java:173)
       at org.jboss.ws.jaxb.SchemaBindingBuilder.processJavaXmlTypeMapping(SchemaBindingBuilder.java:139)
       at org.jboss.ws.jaxb.SchemaBindingBuilder.bindSchemaToJava(SchemaBindingBuilder.java:111)
       at org.jboss.ws.jaxb.SchemaBindingBuilder.buildSchemaBinding(SchemaBindingBuilder.java:91)
       at org.jboss.ws.metadata.ServiceMetaData.getSchemaBinding(ServiceMetaData.java:332)
       at org.jboss.ws.metadata.ServiceMetaData.eagerInitialize(ServiceMetaData.java:400)
       at org.jboss.ws.metadata.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:143)
       at org.jboss.ws.server.ServiceEndpoint.start(ServiceEndpoint.java:131)
       at org.jboss.ws.server.ServiceEndpointManager$DefaultServiceLifecycle.startServiceEndpoint(ServiceEndpointManager.java:513)
       at org.jboss.ws.server.ServiceEndpointManager$ServiceLifecycleChain.startServiceEndpoint(ServiceEndpointManager.java:458)
       at org.jboss.ws.server.ServiceEndpointManager.startServiceEndpoint(ServiceEndpointManager.java:427)
       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:260)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
       at $Proxy37.startServiceEndpoint(Unknown Source)
       at org.jboss.ws.server.WebServiceDeployer.startServiceEndpoints(WebServiceDeployer.java:203)
       at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:126)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       at $Proxy27.start(Unknown Source)
      


      This leads me to believe that I've got the wrong version of the jboss-xml-binding.jar. I'm using the JBoss 4.0.4CR2 release so it should have the latest version of that jar.

      I followed the installation instructions of expanding the jbossws.sar file into the server/default/deploy/jbossws14.sar directory.

      Any ideas?

      Thanks,

      Tim

        • 1. Re: NoSuchMethodException using JBossWS 1.0.0GA
          thomas.diesler

          This is a known issue of binary incompatibility of jbossws-1..0.0.GA and jboss-4.0.4.CR2. It only applies whaen you have exception mappings in your jaxrpcmapping.xml

          You can

          #1 work with the latest Branch_4_0

          cvs co -r Branch_4_0 jboss-4.0.x
          


          #2 drop the latest jboss-xml-binding snapshot in jboss-4.0.4.CR2

          http://repository.jboss.com/jboss/jbossxb/

          • 2. Re: NoSuchMethodException using JBossWS 1.0.0GA
            tpedone

            Thomas,

            That fixed that issue but now I've run into another one. I'm getting a class not found exception:

            Caused by: java.lang.ClassNotFoundException: com.intuit.spc.oip.messaging.server.interfaces.PublicInterface_getMessages_ResponseStruct
             at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1352)
             at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
             at org.jboss.ws.utils.JavaUtils.loadJavaType(JavaUtils.java:81)
             at org.jboss.ws.jaxb.JAXBMarshallerImpl.marshal(JAXBMarshallerImpl.java:126)
             ... 32 more
            


            I've looked in my jar file and that class is there along with the other custome types that we have in our wsdl (which are found). This codebase worked with the JBossWS version that came with JBoss 4.0.4CR2. All I've basically done is upgraded JBossWS to 1.0.0GA and then upgraded the jboss-xml-binding.jar per your previous post. Do we *have* to rebuild our code using the new JBoss wstools? We didn't in 4.0.4CR2.

            Thanks,

            Tim

            • 3. Re: NoSuchMethodException using JBossWS 1.0.0GA
              ravi2box

              May i know where exactly we have to copy the jar file? i tried putting the jboss-xml-binding jar in default/lib WEB-INF/lib and inside the jbossws.sar dir..still the same NoSuchMethodError

              so why is there a binary mismatch between jbossws and the CR2? how come there is no indication of this in the doc or wiki..does this mean that we shouldn't use Exceptions for now????

              a very puzzled user.....

              Ravi

              • 4. Re: NoSuchMethodException using JBossWS 1.0.0GA
                tpedone

                I copied it into the /lib dir, replacing the one that already exists: JBoss-4.0.4CR2/lib

                This solved the initial problem I reported.

                Tim