0 Replies Latest reply on Oct 27, 2004 2:54 PM by Wayne Zhu

    jBoss 4.0 charpter 5/ Web services deployment

    Wayne Zhu Newbie

      I followed the example in the book. However, I got the following exception when running deploy-ws command. What did go wrong in parsing Webservices.xml?

      11:19:18,824 ERROR [ObjectModelBuilder] Failed to invoke method newChild
      java.lang.NoClassDefFoundError: javax/wsdl/WSDLException
      at org.jboss.webservice.metadata.WebservicesFactory.newChild(Webservice
      Factory.java:75)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.xml.binding.ObjectModelBuilder.invokeFactory(ObjectModelBu
      lder.java:346)
      at org.jboss.xml.binding.ObjectModelBuilder.newChild(ObjectModelBuilder
      java:246)
      at org.jboss.xml.binding.ObjectModelBuilder.startElement(ObjectModelBui
      der.java:166)
      at org.jboss.xml.binding.Content$StartElement.read(Content.java:295)
      at org.jboss.xml.binding.Content.build(Content.java:187)
      at org.jboss.xml.binding.ObjectModelBuilder.build(ObjectModelBuilder.ja
      a:87)
      at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:156)
      at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:140)
      at org.jboss.webservice.ServiceDeployer.parseWebservicesXML(ServiceDepl
      yer.java:278)
      at org.jboss.webservice.ServiceDeployer.createWebservice(ServiceDeploye
      .java:146)
      at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeplo
      er.java:103)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificat
      onListenerProxy.java:138)
      at $Proxy21.handleNotification(Unknown Source)
      at javax.management.NotificationBroadcasterSupport.handleNotification(N
      tificationBroadcasterSupport.java:98)
      at javax.management.NotificationBroadcasterSupport.sendNotification(Not
      ficationBroadcasterSupport.java:83)
      at org.jboss.deployment.SubDeployerSupport.create(SubDeployerSupport.ja
      a:163)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:591)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:817)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:673)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
      at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatc
      er.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker
      java:230)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeployme
      tScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeployment
      canner.java:478)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread
      doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread
      loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread
      run(AbstractDeploymentScanner.java:191)
      11:19:18,844 ERROR [ServiceDeployer] Cannot startup webservice for: bankws-ejb.
      ar
      org.jboss.deployment.DeploymentException: Cannot obtain webservices meta data;
      nested throwable: (java.lang.IllegalStateException: Failed to invoke method ne
      Child)
      at org.jboss.webservice.ServiceDeployer.parseWebservicesXML(ServiceDepl
      yer.java:287)
      at org.jboss.webservice.ServiceDeployer.createWebservice(ServiceDeploye
      .java:146)
      at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeplo
      er.java:103)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(Notificat
      onListenerProxy.java:138)
      at $Proxy21.handleNotification(Unknown Source)
      at javax.management.NotificationBroadcasterSupport.handleNotification(N
      tificationBroadcasterSupport.java:98)
      at javax.management.NotificationBroadcasterSupport.sendNotification(Not
      ficationBroadcasterSupport.java:83)
      at org.jboss.deployment.SubDeployerSupport.create(SubDeployerSupport.ja
      a:163)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:591)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:817)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:673)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
      at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatc
      er.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker
      java:230)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeployme
      tScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeployment
      canner.java:478)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread
      doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread
      loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread
      run(AbstractDeploymentScanner.java:191)
      Caused by: java.lang.IllegalStateException: Failed to invoke method newChild
      at org.jboss.xml.binding.ObjectModelBuilder.invokeFactory(ObjectModelBu
      lder.java:351)
      at org.jboss.xml.binding.ObjectModelBuilder.newChild(ObjectModelBuilder
      java:246)
      at org.jboss.xml.binding.ObjectModelBuilder.startElement(ObjectModelBui
      der.java:166)
      at org.jboss.xml.binding.Content$StartElement.read(Content.java:295)
      at org.jboss.xml.binding.Content.build(Content.java:187)
      at org.jboss.xml.binding.ObjectModelBuilder.build(ObjectModelBuilder.ja
      a:87)
      at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:156)
      at org.jboss.xml.binding.Unmarshaller.unmarshal(Unmarshaller.java:140)
      at org.jboss.webservice.ServiceDeployer.parseWebservicesXML(ServiceDepl
      yer.java:278)
      ... 29 more
      11:19:18,864 INFO [EJBDeployer] Deployed: file:/D:/jboss-4.0.0RC1/server/defau
      t/deploy/bankws-ejb.jar