0 Replies Latest reply on Mar 30, 2006 3:22 PM by Jeremy Smartt

    Can't have two or more webservies?

    Jeremy Smartt Newbie

      I have two webservices in two different wars. I can deploy each of them individually, that is only have one webservice, but I cannot deploy them both at the same time. If I deploy one, it works. If I deploy the next one with the first still deployed it breaks. If I remove the first one and then deploy the second it works.

      I get the following error when deploying both:

      11:58:51,942 INFO [TomcatDeployer] deploy, ctxPath=/Tester-Services, warUrl=.../tmp/deploy/tmp38465Tester-Services-exp.war/
      11:58:52,567 INFO [WSDLFilePublisher] WSDL published to: file:/C:/Development/jboss-portal/server/default/data/wsdl/Tester-Services.war/TesterWebService.wsdl
      11:58:52,723 INFO [AxisService] WSDD published to: C:\Development\jboss-portal\server\default\data\wsdl\Tester-Services.war\TesterService.wsdd
      11:58:53,426 ERROR [ServiceDeployer] Cannot startup webservice for: Tester-Services.war
      org.jboss.deployment.DeploymentException: Cannot deploy webservice; - nested throwable: (java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration)
      at org.jboss.webservice.ServiceDeployer.deployWebservices(ServiceDeployer.java:376)
      at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:229)
      at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:110)
      at sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
      at $Proxy89.handleNotification(Unknown Source)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:112)
      at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:95)
      at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:325)
      at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:293)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:416)
      at sun.reflect.GeneratedMethodAccessor299.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:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy87.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
      at sun.reflect.GeneratedMethodAccessor71.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:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
      Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration
      at org.apache.xerces.parsers.DOMParser.(Unknown Source)
      at org.apache.xerces.parsers.DOMParser.(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
      at org.jboss.axis.utils.XMLUtils.newDocument(XMLUtils.java:252)
      at org.jboss.axis.utils.Admin.processWSDD(Admin.java:165)
      at org.jboss.axis.utils.Admin.process(Admin.java:248)
      at org.jboss.webservice.AxisService.deployService(AxisService.java:385)
      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: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:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:273)
      at $Proxy82.deployService(Unknown Source)
      at org.jboss.webservice.ServiceDeployer.deployWebservices(ServiceDeployer.java:370)
      ... 47 more
      11:58:55,114 INFO [TomcatDeployer] undeploy, ctxPath=/Tester-Services, warUrl=.../tmp/deploy/tmp38465Tester-Services-exp.war/
      11:58:55,114 WARN [ServiceDeployer] Cannot undeploy webservice: java.lang.IllegalStateException: Cannot find port component info for: Tester-Services.war#The Tester Web Service/TesterService



      Any ideas?