Hello Axis Users,
I searched for this before I posted. When I try to register a webservice to
the Axis engine via
java org.apache.axis.client.AdminClient -l<my_url> <my_wsdd_file>
I get the following error:
Exception:: org.apache.axis.InternalException: java.lang.Exception: The
OperationDesc for <method_name> was not synchronized to a method of
com.my.javaClass
Any suggestions? I use Jdk 1.4, Axis 1.1 Tomcat 4.1.24 on Win 2000 machine
and sit facing east !
I tried deleting the server-config.wsdd file and restarting tomcat without
much luck.
I also observed that when I try to undeploy the service I get
Exception:: org.xml.sax.SAXException: SimpleDeserializer encountered a child
element, which is NOT expected, in something it was trying to deserialize.
To simplify things, I tried this with EchoAttachment examples that comes
with AXIS 1.1
Thanks once again,
--Anil
----- Original Message -----
From: "Anil Dindigal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 5:52 PM
Subject: deployment woes
> Hello Axis Gurus,
>
> Here is a problem that is bugging me. Its something very straight forward
> that Im not able to put my finger on. I basically have added Axis 1.1 to
my
> web app. Im running java org.apache.axis.client.AdminClient -l<myUrl>
> <my_wsdd_file> from a DOS window. I get a message saying <Admin>Done
> processing</Admin>
>
> But I get java.lang.ClassNotFoundException:
> java:com/theorphanage/epoch/webservices/CompressionData in the DOS window
> thats running the Tomcat server 4.1.24. CompressionData is a simple
> beanclass that Im trying to pass it to as a argument to a webservice
method.
>
> The first thing that I did was to update the classpath and add the path to
> my web-inf/build/classes directory. But still Im getting the same error. I
> know this is more of a java question than AXIS. Any help would be greatly
> appreciated.
>
> my wsdd file looks like this:
>
> <!-- This file can be used to deploy the echoAttachments sample -->
> <!-- using this command: java org.apache.axis.client.AdminClient
> attachdeploy.wsdd -->
>
> <!-- This deploys the echo attachment service. -->
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
> xmlns:ns1="urn:EchoAttachmentsService" >
> <service name="urn:EchoAttachmentsService" provider="java:RPC" >
> <parameter name="className"
> value="com.theorphanage.epoch.webservices.EchoAttachmentsService"/>
> <parameter name="allowedMethods" value="*"/>
> <operation name="echo" returnQName="returnqname"
> returnType="ns1:DataHandler" >
> <parameter name="dh" type="ns1:DataHandler"/>
> </operation>
>
> <typeMapping qname="ns1:DataHandler"
>
>
deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory
> "
> languageSpecificType="java:javax.activation.DataHandler"
>
> serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> />
> <typeMapping
> qname="ns1:CompressionData"
>
>
languageSpecificType="java:java:com.theorphanage.epoch.webservices.Compressi
> onData"
> serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
>
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> />
> </service>
>
> </deployment>
>
>
> Thanks in advance,
> --Anil
>