3 Replies Latest reply on Sep 29, 2004 7:29 AM by pilhuhn

    Deploying Webservices form 2 SLSBs

    david.salter

      I'm trying to deploy two web service which come from endpoints in two different stateless session beans.

      When I deploy however, I get the following error in the JBoss console. What does this mean?

      If I look up the ws4ee/services page to see what Axis has deployed, the web service seems to be there.

      I'm using JBoss 4.0.0 on Windows XP.

      Cheers,


      12:03:20,718 ERROR [ServiceDeployer] Cannot startup webservice for: business.jar
      java.lang.IllegalArgumentException: Cannot use the same url-pattern with different endpoints, check your port-uri in jboss.xml
       at org.jboss.webservice.ServiceDeployerEJB.createWebXML(ServiceDeployerEJB.java:221)
       at org.jboss.webservice.ServiceDeployerEJB.deployWebservices(ServiceDeployerEJB.java:103)
       at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:203)
       at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:113)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
       at $Proxy22.handleNotification(Unknown Source)
       at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104)
       at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87)
       at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:178)
       at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:620)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
       at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       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:119)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy8.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)


        • 1. 3851275
          pilhuhn

          I'm trying to deploy two web service which come from endpoints in two different stateless session beans.

          When I deploy however, I get the following error in the JBoss console. What does this mean?

          If I look up the ws4ee/services page to see what Axis has deployed, the web service seems to be there.

          I'm using JBoss 4.0.0 on Windows XP.

          Cheers,


          12:03:20,718 ERROR [ServiceDeployer] Cannot startup webservice for: business.jar
          java.lang.IllegalArgumentException: Cannot use the same url-pattern with different endpoints, check your port-uri in jboss.xml
           at org.jboss.webservice.ServiceDeployerEJB.createWebXML(ServiceDeployerEJB.java:221)
           at org.jboss.webservice.ServiceDeployerEJB.deployWebservices(ServiceDeployerEJB.java:103)
           at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:203)
           at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:113)
           at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
           at $Proxy22.handleNotification(Unknown Source)
           at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104)
           at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87)
           at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:178)
           at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:620)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
           at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           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:119)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy8.deploy(Unknown Source)
           at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
           at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)


          • 2. Re: Deploying Webservices form 2 SLSBs
            darma

            I encountered a similar problem and was hoping that somebody would comment.

            It appears to be a limitation of one endpoint per EJB jar file (which almost implies one stateless session bean per jar file). And coupled with the other issue of hard-coded jar file name as context root.

            This issue is more relevant in a large scale environment with multiple web services.

            Could we please have a confirmation.

            Cheers.

            Darma

            • 3. Re: Deploying Webservices form 2 SLSBs
              thomas.diesler

              Please see the

              <port-component>
               <port-component-name>
               <port-uri>
               <auth-method>
               <transport-guarantee>
              </port-component>
              


              element in jboss_4_0.dtd, on how to specify the port-uri for a given EJB endpoint. webservices.xml can contain more that one <webservice-service-description>. Having more than one EJB endpoint per deployment should not be a problem.

              Setting the context root is not (yet) supported for EJB endpoints.