2 Replies Latest reply on Aug 12, 2004 10:00 PM by iamapony

    Can not Deploy Web Service with Custom typeMappings (Null qu

    iamapony

      When I try to deploy my webService with custom typeMappings I get the following error:

      17:34:52,694 ERROR [MainDeployer] could not start deployment: file:/C:/apps/eclipse/workspace/ACServer/server/default/tmp/deploy/tmp28001ActiveChain.ear-contents/locationServices.wsr
      org.jboss.deployment.DeploymentException: Could not deploy axis descriptor.; - nested throwable: (org.apache.axis.deployment.wsdd.WSDDException: Could not equip typemapping with options because oforg.apache.axis.deployment.wsdd.WSDDException: javax.xml.rpc.JAXRPCException: Null qualified name specified.
      javax.xml.rpc.JAXRPCException: Null qualified name specified.
      at org.apache.axis.encoding.TypeMappingImpl.internalRegister(TypeMappingImpl.java:273)



      Here's what my web-service.xml looks like.

      <?xml version="1.0" encoding="UTF-8"?>

      <!-- -->
      <!-- This JBoss.Net Web Service Descriptor has been generated by XDoclet -->
      <!-- and is brought to you by F. M. Brier, C. G. Jung and J. Essington -->
      <!-- -->

      <deployment
      name="locationServices"
      xmlns="http://xml.apache.org/axis/wsdd/"
      targetNamespace="http://www.creeksystems.com/activeChain/locationServices"
      xmlns:logistics="http://www.creeksystems.com/activeChain/locationServices"
      xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

      <!-- The following are declarations of service endpoints targetted to
      session beans -->


















      <!-- Operation mapping results -->












      <!-- The following are typemappings for entity beans for implementing
      the implicit web-service value-object pattern -->

      <!-- The following are typemappings for bean-type value-objects -->





      <!-- There follow merged custom web service descriptions -->





      Thanks in advance for the assistance.

        • 1. Re: Can not Deploy Web Service with Custom typeMappings (Nul
          iamapony

          Ooops the xml didn't come through, here's another try.

          <?xml version="1.0" encoding="UTF-8"?>
          
          <!-- -->
          <!-- This JBoss.Net Web Service Descriptor has been generated by XDoclet -->
          <!-- and is brought to you by F. M. Brier, C. G. Jung and J. Essington -->
          <!-- -->
          
          <deployment
           name="locationServices"
           xmlns="http://xml.apache.org/axis/wsdd/"
           targetNamespace="http://www.creeksystems.com/activeChain/locationServices"
           xmlns:logistics="http://www.creeksystems.com/activeChain/locationServices"
           xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
          
          <!-- The following are declarations of service endpoints targetted to
           session beans -->
          
           <service name="locationServices" provider="Handler">
           <parameter name="handlerClass" value="org.jboss.net.axis.server.EJBProvider"/>
           <parameter name="beanJndiName" value="ejb/activechain/LocationManager"/>
           <parameter name="allowedMethods" value="submitLocationEvent submitLocationRecord "/>
           <requestFlow name="locationServicesRequest">
           <handler type="java:org.jboss.net.axis.server.JBossAuthenticationHandler">
           <parameter name="securityDomain" value="java:/jaas/ActiveChain-login"/>
           </handler>
           <handler type="java:org.jboss.net.axis.server.JBossAuthorizationHandler">
           <parameter name="securityDomain" value="java:/jaas/ActiveChain-login"/>
           <parameter name="allowedRoles" value="users"/>
           </handler>
          
           </requestFlow>
           <responseFlow name="locationServicesResponse">
          
           </responseFlow>
           <!-- Operation mapping results -->
          
           <operation name="submitLocationEvent" returnQName="submitLocationEvent2">
           <parameter name="rlr"/>
           <parameter name="rle"/>
           </operation>
          
           <operation name="submitLocationRecord" returnQName="submitLocationRecord2">
           <parameter name="rlr"/>
           </operation>
          
           </service>
          
          <!-- The following are typemappings for entity beans for implementing
           the implicit web-service value-object pattern -->
          
          <!-- The following are typemappings for bean-type value-objects -->
          
           <typeMapping
           qname="locationServices:RemoteLocationRecord"
           type="java:com.creeksystems.activechain.apps.services.location.RemoteLocationRecord"
           serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
           deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
           encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
          
           <typeMapping
           qname="locationServices:RemoteLocationEvent"
           type="java:com.creeksystems.activechain.apps.services.location.RemoteLocationEvent"
           serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
           deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
           encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
          
          <!-- There follow merged custom web service descriptions -->
          
          </deployment>



          • 2. Re: Can not Deploy Web Service with Custom typeMappings (Nul
            iamapony

            SOLVED:

            the qname namespace was suppose to be logistics, not locationServices, corrected typeMapping section looks like this

            <typeMapping
             qname="logistics:RemoteLocationRecord"
             type="java:com.creeksystems.activechain.apps.services.location.RemoteLocationRecord"
             serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
             deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
             encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
            
             <typeMapping
             qname="logistics:RemoteLocationEvent"
             type="java:com.creeksystems.activechain.apps.services.location.RemoteLocationEvent"
             serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
             deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
             encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>