Hey folks,
I've this ant build file that I use to deploy a axis web service but I
get the following error -
> [java] Exception in thread "main" java.lang.IncompatibleClassChangeError
> [java] at
> arg.apache.axis.message.MessageElement.addTextNode(MessageElement.java:13=
> 87)
> [java] at
> org.apache.axis.message.SOAPHandler.endElement(SOAPHandler.java:118)
> followed by lots more errors and...
> BUILD FAILED
...which i get when I try to run the axis admin deploy tool using this
task:
> <target name=3D"axisDeploy" description =3D "Deploys java package to axi=
> s server. depends =3D deploy">
> <echo message =3D "doing deploy task..." />
> <java classname=3D"org.apache.axis.client.AdminClient" fork=3D"yes"
> failonerror=3D"true">
> <classpath refid=3D"projectClasspath" />
> <arg value =3D "-p" />
> <arg value =3D "7070" />
> <arg file=3D"${pathToService}/deploy.wsdd"/>
> </java>
> <echo message =3D "Done..." />
> </target>
I know there is an ant task for this but I find this easier. I know that
axis.jar is in the classpath. But the problem is that even though I get this
error the service is deployed on axis. I get no error when I run the admin
client of the command line with the following command:
> java -cp "C:\Program Files\Apache\axis-1_2\lib\axis.jar;C:\Program
> Files\Apache\axis-1_2\lib\jaxrpc.jar;C:\Program
> Files\Apache\axis-1_2\lib\commons-logging.jar;C:\Program
> Files\Apache\axis-1_2\lib\commons-discovery.jar;%CATALINA_HOME%\webapps\a=
> xis\WEB-INF\lib\saaj-api.jar;%CATALINA_HOME%\common\lib\activation.jar;%C=
> ATALINA_HOME%\common\lib\mail.jar;."
> org.apache.axis.client.AdminClient -p
7070../src/flightCompany/rpcservice/deploy.wsdd
... and this ant task worked for me before.
This really bugs me because it fails the build and I can't understand why??!!
Here's a link to the problem that I posted to sun when looking for help
that has the wsdl for the service -
http://forum.java.sun.com/thread.jspa?threadID=3D631449&tstart=3D0
I used java2wsdl and wsdl2java tools to generate stubs for the service but
when I use the client to invoke the service tcp monitor shows me this error,(any
help to resolve this greatly appreciated)
>HTTP/1.1 500 Internal Server Error
>Content-Type: text/html;charset=ISO-8859-1
>Content-Language: en-IE
>Date: Tue, 31 May 2005 21:44:50 GMT
>Server: Apache-Coyote/1.1
>Connection: close
><b>description</b>
> <u>The server encountered an internal error () that prevented >it
from fulfilling this request.</u>
> </p>
> <p>
> <b>exception</b>
> <pre> massive error list...........blah blah...
> </p>
> <p>
> <b>root cause</b>
> <pre>java.lang.IncompatibleClassChangeError at
> org.apache.axis.message.MessageElement.addTextNode(MessageElement.java:13=
> 87) at
> org.apache.axis.message.SOAPHandler.endElement(SOAPHandler.java:118) at
> org.apache.axis.encoding.DeserializationContext.endElement(Deserializatio=
> nContext.java:1083) at
> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
> Source) at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDisp=
> atcher.dispatch(Unknown
> Source)
> at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un=
> known
> Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> at javax.xml.parsers.SAXParser.parse(Unknown Source)
> at
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationCont=
> ext.java:226)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:279)
> at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:65=
> 3)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
> at
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.ja=
> va:301)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat=
> ionFilterChain.java:200)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte=
> rChain.java:146)
> Blah Blah Blah........Can post the rest of the error if it helps
--
Between the question and the answer lies free will
--
Between the question and the answer lies free will