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 "Levy, Avi" <av...@dor.state.wi.us> on 2004/11/11 23:34:13 UTC

Axis 1.2RC1 and WebSphere Application Developer 5.1.2

Hi,

I'm new to Axis 1.2RC1. I followed the installation instructions from the
website to setup an Axis server on my local WebSphere Application Developer
5.1.2 (WSAD) using WebSphere 5.1 test environment. Everything goes ok and
the AxisServlet is running and I can get back the Version by using WSAD's
web service explorer.

As soon as I try to run any of the samples on the user guide I keep getting
the same exception no matter how I tweak the server and client settings and
classpaths. 

Here is the trace I get on the server:

[11/11/04 15:50:54:694 CST] 22299d1b WebGroup      E SRVE0026E: [Servlet
Error]-[class org.apache.axis.SOAPPart does not implement interface
org.w3c.dom.Document]: java.lang.IncompatibleClassChangeError: class
org.apache.axis.SOAPPart does not implement interface org.w3c.dom.Document
	at
org.apache.axis.message.MessageElement.addTextNode(MessageElement.java:1388)
	at
org.apache.axis.message.SOAPHandler.endElement(SOAPHandler.java:118)
	at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationCo
ntext.java:1077)
	at
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.jav
a:569)
	at
org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespaceBinde
r.java:853)
	at
org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java
:643)
	at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.
java(Compiled Code))
	at
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:9
31)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XMLDo
cumentFragmentScannerImpl.java(Compiled Code))
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocu
mentFragmentScannerImpl.java:988)
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(XMLDocumentFragmentScannerImpl.java(Compiled Code))
	at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocume
ntFragmentScannerImpl.java:333)
	at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:525)
	at
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserCo
nfiguration.java:581)
	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
	at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:115
8)
	at javax.xml.parsers.SAXParser.parse(Unknown Source)
	at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext
.java:225)
	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:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
301)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServle
tInstance.java:110)
	at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecy
cleServlet.java:174)
	at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServ
let.java:313)
	at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecyc
leServlet.java:116)
	at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java
:283)
	at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidSer
vletReferenceState.java:42)
	at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletIns
tanceReference.java:40)
	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(
WebAppRequestDispatcher.java:948)
	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppReques
tDispatcher.java:530)
	at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequest
Dispatcher.java:176)
	at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
	at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker
.java:201)
	at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(C
achedInvocation.java:71)
	at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(C
acheableInvocationContext.java:114)
	at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletReq
uestProcessor.java:186)
	at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListene
r.java:334)
	at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.jav
a:56)
	at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
	at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)
	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)


I get the same exception when I try to run the supplied clients for each
example and also when running WSAD web services explorer. 
I also tried to change the order of the build path by putting the Axis jars
before any other jars.
I tried to run on both versions 5.0 and 5.1 of WebSphere test environment.
The examples I tried to run from axis-1_2RC1-src.zip are
samples\userguide\example2\Calculator.java (with CalcClient.java as the
client), samples\userguide\example3\MyService.java (with Client.java) and
also samples\message\MessageService.java (with TestMsg.java as the client).
I first created the clients on the same project as the Service classes (so
they use the same Axis jars) but when it didn't work I also created the
clients on separate projects, but that didn't work either. No matter what I
do I keep getting the same exception. I have the feeling that it's something
stupid related to overlaping jars, but I couldn't find it.

Thanks for your help,


-- AV