4 Replies Latest reply on Sep 15, 2004 3:07 PM by ah123

    Exception:: The AXIS engine could not find a target service

      Hey guys,

      I am having a problem deploying a service via axis. Whenever i try to deploy i get this..

      java -classpath ./axis.jar;./jaxrpc.jar;./commons-logging.jar;./commons-discovery.jar;./saaj.jar
       org.apache.axis.client.AdminClient -s /jboss-net/services/AxisServlet ./dd/BookTitleService.wsdd
      Processing file ./dd/BookTitleService.wsdd
      Exception:: The AXIS engine could not find a target service to invoke! targetService is AxisServlet


      Any suggestions are welcomed ... i am dead in the water right now

        • 1. Re: Exception:: The AXIS engine could not find a target serv
          ah123

          It looks like a problem in lyou wsdd file. Please post its contents.

          • 2. Re: Exception:: The AXIS engine could not find a target serv
            nehring

            I'm a bit confused... are you running axis that you've deployed separately on JBoss or are you using the jboss-net deployment? jboss-net is in the "all" configuration, but can be copied in the "default" configuration.

            If you're using jboss-net, you don't need to mess with deployment descriptors, just build a web-service.xml (using xdoclet), bundle your service and deploy as a WSR.

            r,
            Lance

            • 3. Re: Exception:: The AXIS engine could not find a target serv

              folks here is the .wsdd file



              thanks for the help.


              <?xml version = "1.0" encoding = "UTF-8"?>
              <deployment xmlns="http://xml.apache.org/axis/wsdd/"
               xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
              
               <service name="BookTitle" provider="java:RPC">
              
               <parameter name="className"
               value="mil.jlwi.webservices.axis.services.BookTitleService"/>
              
               <parameter name="methodName" value="getBookTitle"/>
              
               </service>
              </deployment>
              


              • 4. Re: Exception:: The AXIS engine could not find a target serv
                ah123

                I'm running Axis as a war file deployed on Jboss (not jboss-net). Here's some bits of my wsdd file:

                <?xml version="1.0" encoding="UTF-8"?>
                <deployment
                 name="Axis"
                 targetNamespace="http://localhost:8080/axis/services/Axis"
                 xmlns="http://xml.apache.org/axis/wsdd/"
                 xmlns:apachesoap="http://xml.apache.org/xml-soap"
                 xmlns:intf="http://localhost:8080/axis/services/Axis"
                 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
                 xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                 xmlns:impl="http://localhost:8080/axis/services/Axis"
                
                 xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
                <!-- Services from requestManagerService WSDL service -->
                
                
                <service name="Axis" provider="java:EJB">
                
                
                 <parameter name="wsdlTargetNamespace" value="http://localhost:8080/axis/services/Axis"/>
                 <parameter name="wsdlServicePort" value="Axis"/>
                 <parameter name="wsdlPortType" value="RManager"/>
                 <parameter name="wsdlServiceElement" value="rManagerService"/>
                 <namespace>http://localhost:8080/axis/servlet/AxisServlet</namespace>
                 <parameter name="beanJndiName" value="RManager"/>
                <parameter name="homeInterfaceName" value="simple.session.bean.RManagerHome"/>
                <parameter name="remoteInterfaceName" value="simple.session.bean.RManager"/>
                
                
                <parameter name="allowedMethods" value="*"/>
                <parameter name="jndiURL" value="jnp://localhost:1099"/>
                <parameter name="jndiContextClass" value="org.jnp.interfaces.NamingContextFactory"/>
                
                </service>
                </deployment>