6 Replies Latest reply on May 21, 2002 6:57 PM by Dr. Christoph Georg Jung

    RC3 axis services, servlet problems

    Gary Struthers Newbie

      Anyone got axis examples to work in RC3?

      I'm trying to do jboss.net with 3.0 instead of Axis with 2.4.4 and I'm failing to make sense of jboss.net.

      example2 client can't find target services: "Exception in thread "main" The AXIS engine could not find a target service to invoke! targetService is null"

      Browsing to ...8080/axis/services/AdminService
      or
      ...8080/axis/servlet/AxisServlet
      produces "Hi there, this is an AXIS service!"

      When RC3 starts the only WEB-INF is under server\default\tmp\deploy\_axis_\axis\

      I did change axis-config's typo from jass to jaas.

      If anyone can clarify, please do.

        • 1. Re: RC3 axis services, servlet problems
          Dr. Christoph Georg Jung Newbie

          I wrote the following web-server.xml, and deployed it within my application EAR in JBoss 3 RC 3:

          <deployment name="ESB"
          targetNamespace="http://www.entersys.com/esb/user"
          xmlns:esb="http://www.entersys.com/esb/user"
          xmlns="http://xml.apache.org/axis/wsdd/"
          xmlns:jbnet="http://net.jboss.org/server"
          xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

          <ejb-ref>
          <ejb-ref-name>ejb/UserFacade</ejb-ref-name>
          <ejb-link>UserFacade</ejb-link>
          </ejb-ref>











          My WSR contains only 1 file, META-INF/web-service.xml

          esb.ejb.UserFacade (session bean) and esb.interfaces.UserData are stored within my EJB JAR. The EJB JAR is also included in the same EAR as the WSR. UserFacade works if I call it from the WAR. With WSR, I get the following during JBoss is initialized

          2002-05-27 03:47:32,812 INFO [STDOUT] 108752 [main] ERROR org.jboss.deployment.MainDeployer URLDeploymentScanner - Couldn't deploy URL file:/var/jboss-3.0.0RC3/server/default/deploy/esb.ear
          org.jboss.deployment.DeploymentException: Could not deploy axis descriptor.; - nested throwable: (org.apache.axis.deployment.wsdd.WSDDException: java.lang.Exception: Could not equip typemapping with options because oforg.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassNotFoundException: Found languageSpecificType namespace '', expected 'http://xml.apache.org/axis/wsdd/providers/java')
          at org.jboss.net.axis.server.AxisService.start(AxisService.java:594)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:685)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
          at $Proxy4.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
          at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:339)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
          at $Proxy3.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:276)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:472)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:318)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
          at org.jboss.Main.boot(Main.java:142)
          at org.jboss.Main$1.run(Main.java:375)
          at java.lang.Thread.run(Thread.java:484)
          org.apache.axis.deployment.wsdd.WSDDException: java.lang.Exception: Could not equip typemapping with options because oforg.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassNotFoundException: Found languageSpecificType namespace '', expected 'http://xml.apache.org/axis/wsdd/providers/java'
          at org.jboss.net.axis.Deployment.deployTypeMapping(Deployment.java:152)
          at org.jboss.net.axis.Deployment.(Deployment.java:74)
          at org.jboss.net.axis.server.AxisService.start(AxisService.java:589)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:685)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
          at $Proxy4.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
          at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:339)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
          at $Proxy3.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:276)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:472)
          at java.lang.reflect.Method.invoke(Native Method)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:318)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
          at org.jboss.Main.boot(Main.java:142)
          at org.jboss.Main$1.run(Main.java:375)
          at java.lang.Thread.run(Thread.java:484)

          What's wrong? and beside web-service.xml, what files should a WSR includes?

          Thanks

          • 2. Re: RC3 axis services, servlet problems
            Dr. Christoph Georg Jung Newbie

            Hi,

            Jboss.net is a deployer for Axis-based web services which you package as .wsr (Web Service Archives). You do not have to put them into the Web-Inf directory by yourself.

            please have a look at the doc/readme.html that comes through cvs ... I´m trying to update the official page ASAP.

            CGJ

            • 3. Re: RC3 axis services, servlet problems
              Ron Jawanda Novice

              I got it working in RC3
              I tested the Hello sample with a client and server.
              Your null problem is because you haven't packaged it properly.

              WSR contains

              META-INF
              web-services.xml
              Put this in a .wsr file (it is just like a jar file) use jar to package it just like any other war, jar or ear
              put it in the ear file as a reference just like a war file

              Then it will deploy properly.

              If you need an ear file I will send it to you (the hello.jar). Jules gave it to me and I also got one of my own working.

              Ron

              • 4. Re: RC3 axis services, servlet problems
                Peter Callies Newbie

                I created the attached wsr in an attempt to deploy example3 from the Axis distribution. However, when running the test client I get the following:

                C:\apache\xml-axis-beta2\samples\userguide\example3>java samples.userguide.example3.Client "test me!"
                The AXIS engine could not find a target service to invoke! targetService is MyService

                What have I done wrong?

                • 5. Re: RC3 axis services, servlet problems
                  Thomas Phan Newbie

                  Hi Roy,

                  I don't know how web-services.xml looks like, where may I find this? Do you mind to post your WSR file here, or email me at twhphan@alumni.uwaterloo.ca?

                  And do we put:


                  webservice.wsr


                  in application.xml of the EAR file?

                  Thanks

                  • 6. Re: RC3 axis services, servlet problems
                    Thomas Phan Newbie

                    I wrote the following web-server.xml, and deployed it within my application EAR in JBoss 3 RC 3:

                    <deployment name="ESB"
                    targetNamespace="http://www.entersys.com/esb/user"
                    xmlns:esb="http://www.entersys.com/esb/user"
                    xmlns="http://xml.apache.org/axis/wsdd/"
                    xmlns:jbnet="http://net.jboss.org/server"
                    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

                    <ejb-ref>
                    <ejb-ref-name>ejb/UserFacade</ejb-ref-name>
                    <ejb-link>UserFacade</ejb-link>
                    </ejb-ref>











                    My WSR contains only 1 file, META-INF/web-service.xml

                    esb.ejb.UserFacade (session bean) and esb.interfaces.UserData are stored within my EJB JAR. The EJB JAR is also included in the same EAR as the WSR. UserFacade works if I call it from the WAR. With WSR, I get the following during JBoss is initialized

                    2002-05-27 03:47:32,812 INFO [STDOUT] 108752 [main] ERROR org.jboss.deployment.MainDeployer URLDeploymentScanner - Couldn't deploy URL file:/var/jboss-3.0.0RC3/server/default/deploy/esb.ear
                    org.jboss.deployment.DeploymentException: Could not deploy axis descriptor.; - nested throwable: (org.apache.axis.deployment.wsdd.WSDDException: java.lang.Exception: Could not equip typemapping with options because oforg.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassNotFoundException: Found languageSpecificType namespace '', expected 'http://xml.apache.org/axis/wsdd/providers/java')
                    at org.jboss.net.axis.server.AxisService.start(AxisService.java:594)
                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:685)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
                    at java.lang.reflect.Method.invoke(Native Method)
                    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
                    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                    at $Proxy4.deploy(Unknown Source)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
                    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
                    at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
                    at java.lang.reflect.Method.invoke(Native Method)
                    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
                    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
                    at $Proxy0.start(Unknown Source)
                    at org.jboss.system.ServiceController.start(ServiceController.java:339)
                    at java.lang.reflect.Method.invoke(Native Method)
                    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
                    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                    at $Proxy3.start(Unknown Source)
                    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:276)
                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:472)
                    at java.lang.reflect.Method.invoke(Native Method)
                    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
                    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:318)
                    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
                    at org.jboss.Main.boot(Main.java:142)
                    at org.jboss.Main$1.run(Main.java:375)
                    at java.lang.Thread.run(Thread.java:484)
                    org.apache.axis.deployment.wsdd.WSDDException: java.lang.Exception: Could not equip typemapping with options because oforg.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassNotFoundException: Found languageSpecificType namespace '', expected 'http://xml.apache.org/axis/wsdd/providers/java'
                    at org.jboss.net.axis.Deployment.deployTypeMapping(Deployment.java:152)
                    at org.jboss.net.axis.Deployment.(Deployment.java:74)
                    at org.jboss.net.axis.server.AxisService.start(AxisService.java:589)
                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:685)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
                    at java.lang.reflect.Method.invoke(Native Method)
                    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
                    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                    at $Proxy4.deploy(Unknown Source)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)
                    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)
                    at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)
                    at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)
                    at java.lang.reflect.Method.invoke(Native Method)
                    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
                    at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:867)
                    at $Proxy0.start(Unknown Source)
                    at org.jboss.system.ServiceController.start(ServiceController.java:339)
                    at java.lang.reflect.Method.invoke(Native Method)
                    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
                    at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
                    at $Proxy3.start(Unknown Source)
                    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:276)
                    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:692)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:527)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:490)
                    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:472)
                    at java.lang.reflect.Method.invoke(Native Method)
                    at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
                    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:318)
                    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
                    at org.jboss.Main.boot(Main.java:142)
                    at org.jboss.Main$1.run(Main.java:375)
                    at java.lang.Thread.run(Thread.java:484)

                    What's wrong? and beside web-service.xml, what files should a WSR includes?

                    Thanks