You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by neha sood <co...@gmail.com> on 2008/05/02 10:08:39 UTC

error in web service deployment.........

hi
i am to web services ..i am trying to deploy web service...using this
command........

-- java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axis/services/MessageBox deploy.wsdd
vn i give this commad it gives me a error
java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axis/services/MessageBox deploy.wsdd
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis/client/AdminClient
problem lies in adding up all the jars

as per service installation steps...
4.Check the settings in "deploy.wsdd" file - change parameters to
appropriate values (this values are stored in
Axis server-config.wsdd files an can be used to change Message Box Service
settings without service rede-
ploying)
but m not able to find where changes can be done in this file....

below is my deploy.wsdd file attached :
<deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">

  <!-- Services from MessageBoxInterfaceService WSDL service -->

  <service name="MessageBox" provider="java:RPC" style="rpc" use="encoded">
      <parameter name="wsdlTargetNamespace" value="urn:messaging.gridlab.org"/>

      <parameter name="wsdlServiceElement"
value="MessageBoxInterfaceService"/>
      <parameter name="wsdlServicePort" value="MessageBox"/>
      <parameter name="className"
value="org.gridlab.messaging.MessageBoxSoapBindingSkeleton"/>
      <parameter name="wsdlPortType" value="MessageBoxInterface"/>
      <parameter name="allowedMethods" value="*"/>
      <parameter name="scope" value="Session"/>

      <typeMapping
        xmlns:ns="urn:messaging.gridlab.org"
        qname="ns:User"
        type="java:org.gridlab.messaging.User"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
      <typeMapping
        xmlns:ns="urn:messaging.gridlab.org"
        qname="ns:MessageFlag"
        type="java:org.gridlab.messaging.MessageFlag"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
      <typeMapping
        xmlns:ns="urn:messaging.gridlab.org"
        qname="ns:MessageBoxObject"
        type="java:org.gridlab.messaging.MessageBoxObject"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
      <typeMapping
        xmlns:ns="urn:messaging.gridlab.org"
        qname="ns:ArrayOfMessage"
        type="java:org.gridlab.messaging.Message[]"
        serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
        deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"

        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
      <typeMapping
        xmlns:ns="urn:messaging.gridlab.org"
        qname="ns:Folder"
        type="java:org.gridlab.messaging.Folder"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
      <typeMapping
        xmlns:ns="urn:messaging.gridlab.org"
        qname="ns:ArrayOfFolder"
        type="java:org.gridlab.messaging.Folder[]"
        serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
        deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"

        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
      <typeMapping
        xmlns:ns="urn:messaging.gridlab.org"
        qname="ns:Message"
        type="java:org.gridlab.messaging.Message"
        serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
        deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      />
  </service>
</deployment>


vat can be the possible reason of error
thanx in advance












Friends are flowers in the garden of life

Re: error in web service deployment.........

Posted by Benjamin Tan <ta...@gmail.com>.
Hi:

I have the same problem when I first went through the AXIS installation
document to test out the sample. I got this issue resolved by carefully
checking the AXISCLASSPATH variable to make sure all the needed jar files
are well defined.

Good luck...
 Ben..


On 5/2/08, neha sood <co...@gmail.com> wrote:
>
> hi
> i am to web services ..i am trying to deploy web service...using this
> command........
>
> -- java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient
> -lhttp://localhost:8080/axis/services/MessageBox deploy.wsdd
>
> vn i give this commad it gives me a error
> java -cp $AXISCLASSPATH org.apache.axis.client.AdminClient
> -lhttp://localhost:8080/axis/services/MessageBox deploy.wsdd
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/axis/client/AdminClient
> problem lies in adding up all the jars
>
> as per service installation steps...
> 4.Check the settings in "deploy.wsdd" file - change parameters to
> appropriate values (this values are stored in
> Axis server-config.wsdd files an can be used to change Message Box Service
> settings without service rede-
> ploying)
> but m not able to find where changes can be done in this file....
>
> below is my deploy.wsdd file attached :
> <deployment
>     xmlns="http://xml.apache.org/axis/wsdd/"
>     xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>
>   <!-- Services from MessageBoxInterfaceService WSDL service -->
>
>   <service name="MessageBox" provider="java:RPC" style="rpc"
> use="encoded">
>       <parameter name="wsdlTargetNamespace" value="urn:
> messaging.gridlab.org"/>
>       <parameter name="wsdlServiceElement"
> value="MessageBoxInterfaceService"/>
>       <parameter name="wsdlServicePort" value="MessageBox"/>
>       <parameter name="className"
> value="org.gridlab.messaging.MessageBoxSoapBindingSkeleton"/>
>       <parameter name="wsdlPortType" value="MessageBoxInterface"/>
>       <parameter name="allowedMethods" value="*"/>
>       <parameter name="scope" value="Session"/>
>
>       <typeMapping
>         xmlns:ns="urn:messaging.gridlab.org"
>         qname="ns:User"
>         type="java:org.gridlab.messaging.User"
>         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>       />
>       <typeMapping
>         xmlns:ns="urn:messaging.gridlab.org"
>         qname="ns:MessageFlag"
>         type="java:org.gridlab.messaging.MessageFlag"
>         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>       />
>       <typeMapping
>         xmlns:ns="urn:messaging.gridlab.org"
>         qname="ns:MessageBoxObject"
>         type="java:org.gridlab.messaging.MessageBoxObject"
>         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>       />
>       <typeMapping
>         xmlns:ns="urn:messaging.gridlab.org"
>         qname="ns:ArrayOfMessage"
>         type="java:org.gridlab.messaging.Message[]"
>         serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
>
> deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
>         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>       />
>       <typeMapping
>         xmlns:ns="urn:messaging.gridlab.org"
>         qname="ns:Folder"
>         type="java:org.gridlab.messaging.Folder"
>         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>       />
>       <typeMapping
>         xmlns:ns="urn:messaging.gridlab.org"
>         qname="ns:ArrayOfFolder"
>         type="java:org.gridlab.messaging.Folder[]"
>         serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
>
> deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
>         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>       />
>       <typeMapping
>         xmlns:ns="urn:messaging.gridlab.org"
>         qname="ns:Message"
>         type="java:org.gridlab.messaging.Message"
>         serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>
> deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
>         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>       />
>   </service>
> </deployment>
>
>
> vat can be the possible reason of error
> thanx in advance
>
>
>
>
>
>
>
>
>
>
>
>
>
> Friends are flowers in the garden of life