4 Replies Latest reply on Jun 4, 2008 10:57 AM by Peter Johnson

    EJB3 error in deploy - javax.wsdl.xml.WSDLLocator.close

    J R Newbie

      I've downloaded JBoss 4.2.2GA and build jbossws-samples 1.2.1.GA and when I try to deploy an EJB3.0 with "new notation", like jaxws-samples-jsr181ejb.jar it gives java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLLocator.close()V
      at org.jboss.ws.toold.wsdl.JBossWSDLReaderImpl.readWSDL

      I've read about adding jwsdl4.jar in another topic, but it was an older version of JBoss, this is the latest stable release.

      Thanks in advance

        • 1. Re: EJB3 error in deploy - javax.wsdl.xml.WSDLLocator.close
          Leonardo Nickel Newbie

          Hi,

          I have the same problem. I've downloaded jboss 4.2.2GA and I am running my web service inside it, but the same exception is occurring:

          
          java.lang.NoSuchMethodError: javax.wsdl.xml.WSDLLocator.close()V
           at org.jboss.ws.tools.wsdl.JBossWSDLReaderImpl.readWSDL(JBossWSDLReaderImpl.java:2367)
           at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:127)
           at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321)
           at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:166)
           at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:50)
           at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:78)
           at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(UnifiedMetaDataDeploymentAspect.java:71)
           at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
           at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
           at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
           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:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy34.start(Unknown Source)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
           at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           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 org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy9.deploy(Unknown Source)
           at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
           at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           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.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
           at $Proxy0.start(Unknown Source)
           at org.jboss.system.ServiceController.start(ServiceController.java:417)
           at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy4.start(Unknown Source)
           at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           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 org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy5.deploy(Unknown Source)
           at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
           at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
           at org.jboss.Main.boot(Main.java:200)
           at org.jboss.Main$1.run(Main.java:508)
           at java.lang.Thread.run(Unknown Source)
          
          


          Anybody can help me to solve this problem?

          Thanks in advance!

          • 2. Re: EJB3 error in deploy - javax.wsdl.xml.WSDLLocator.close
            Eric Smith Newbie

            I just ran into the same error, but in a different way -- using JOSSO and JBOSS 4.2.2.GA and PORTAL in the same server.

            Here's what I did to remove the error from the server log.

            I did a search for files named wsdl4j*.jar under server/default/deploy and found one having version 1.6.2 (implementation version in the manifest.mf inside the jar) and two having version 1.5.1. I replaced the 1.5.1 versions with the 1.6.2 version, delivering consistency across these 3 locations (listed below).

            The implication is that across all deployed sars and ears there must be jar version consistency.(?)

            \jboss-4.2.2.GA_josso-1.7\server\default\deploy\jbossws.sar
            \jboss-4.2.2.GA_josso-1.7\server\default\deploy\josso.ear\josso.war\WEB-INF\lib
            \jboss-4.2.2.GA_josso-1.7\server\default\deploy\jboss-web.deployer

            • 3. Re: EJB3 error in deploy - javax.wsdl.xml.WSDLLocator.close
              ruchika garg Newbie

              I am using JOSSO and JBoss Portal 2.6.4.

              I am getting following error:

              09:21:05,562 INFO [Lookup] Initializing SSOAuditManager ... DONE
              09:21:05,625 INFO [PropertyMessageResources] Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
              09:21:05,625 INFO [PropertyMessageResources] Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
              09:21:05,812 INFO [PropertyMessageResources] Initializing, config='ApplicationResources', returnNull=true
              09:21:05,922 INFO [TilesPlugin] Tiles definition factory loaded for module ''.
              09:21:07,000 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

              --- MBeans waiting for other MBeans ---
              ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database
              State: CONFIGURED
              I Depend On:
              jboss.jca:service=DataSourceBinding,name=DefaultDS

              ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=Invoker
              jboss.web:service=WebServer

              ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
              State: CONFIGURED
              I Depend On:
              jboss:service=TransactionManager
              jboss.jca:service=DataSourceBinding,name=DefaultDS

              ObjectName: jboss.mq:service=StateManager
              State: CONFIGURED
              I Depend On:
              jboss.jca:service=DataSourceBinding,name=DefaultDS
              Depends On Me:
              jboss.mq:service=DestinationManager

              ObjectName: jboss.mq:service=DestinationManager
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=MessageCache
              jboss.mq:service=PersistenceManager
              jboss.mq:service=StateManager
              jboss.mq:service=ThreadPool
              jboss:service=Naming
              Depends On Me:
              jboss.mq.destination:service=Topic,name=testTopic
              jboss.mq.destination:service=Topic,name=securedTopic
              jboss.mq.destination:service=Topic,name=testDurableTopic
              jboss.mq.destination:service=Queue,name=testQueue
              jboss.mq.destination:service=Queue,name=A
              jboss.mq.destination:service=Queue,name=B
              jboss.mq.destination:service=Queue,name=C
              jboss.mq.destination:service=Queue,name=D
              jboss.mq.destination:service=Queue,name=ex
              jboss.mq:service=SecurityManager
              jboss.mq.destination:service=Queue,name=DLQ

              ObjectName: jboss.mq:service=PersistenceManager
              State: CONFIGURED
              I Depend On:
              jboss.jca:service=DataSourceBinding,name=DefaultDS
              Depends On Me:
              jboss.mq:service=DestinationManager

              ObjectName: jboss.mq.destination:service=Topic,name=testTopic
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=DestinationManager
              jboss.mq:service=SecurityManager

              ObjectName: jboss.mq.destination:service=Topic,name=securedTopic
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=DestinationManager
              jboss.mq:service=SecurityManager

              ObjectName: jboss.mq.destination:service=Topic,name=testDurableTopic
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=DestinationManager
              jboss.mq:service=SecurityManager

              ObjectName: jboss.mq.destination:service=Queue,name=testQueue
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=DestinationManager
              jboss.mq:service=SecurityManager

              ObjectName: jboss.mq.destination:service=Queue,name=A
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=DestinationManager

              ObjectName: jboss.mq.destination:service=Queue,name=B
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=DestinationManager

              ObjectName: jboss.mq.destination:service=Queue,name=C
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=DestinationManager

              ObjectName: jboss.mq.destination:service=Queue,name=D
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=DestinationManager

              ObjectName: jboss.mq.destination:service=Queue,name=ex
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=DestinationManager

              ObjectName: jboss.mq:service=Invoker
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=TracingInterceptor
              jboss:service=Naming
              Depends On Me:
              jboss.mq:service=InvocationLayer,type=HTTP
              jboss.mq:service=InvocationLayer,type=JVM
              jboss.mq:service=InvocationLayer,type=UIL2

              ObjectName: jboss.mq:service=TracingInterceptor
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=SecurityManager
              Depends On Me:
              jboss.mq:service=Invoker

              ObjectName: jboss.mq:service=SecurityManager
              State: CONFIGURED
              I Depend On:
              jboss.security:service=JaasSecurityManager
              jboss.mq:service=DestinationManager
              Depends On Me:
              jboss.mq.destination:service=Topic,name=testTopic
              jboss.mq.destination:service=Topic,name=securedTopic
              jboss.mq.destination:service=Topic,name=testDurableTopic
              jboss.mq.destination:service=Queue,name=testQueue
              jboss.mq:service=TracingInterceptor
              jboss.mq.destination:service=Queue,name=DLQ

              ObjectName: jboss.mq.destination:service=Queue,name=DLQ
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=DestinationManager
              jboss.mq:service=SecurityManager

              ObjectName: jboss.mq:service=InvocationLayer,type=JVM
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=Invoker

              ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
              State: CONFIGURED
              I Depend On:
              jboss.mq:service=Invoker

              --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
              ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS
              State: NOTYETINSTALLED
              Depends On Me:
              jboss.ejb:service=EJBTimerService,persistencePolicy=database
              jboss:service=KeyGeneratorFactory,type=HiLo
              jboss.mq:service=StateManager
              jboss.mq:service=PersistenceManager


              09:21:07,437 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
              09:21:07,484 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
              09:21:07,516 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 1m:58s:65ms

              • 4. Re: EJB3 error in deploy - javax.wsdl.xml.WSDLLocator.close
                Peter Johnson Master

                Looks like you removed the hsqldb-ds.xml file. Either put it back, or go thorough the steps of configuring a replacement for DefaultDS.