I found the solution to this, so in case it's helpful to anyone else:

Based on this similar issue someone else had reported in:
http://issues.apache.org/jira/browse/ODE-668

I added serializer.jar to the war file lib directory and ?wsdl seems to be 
working OK for us.

We already had our classpath settings correct.


William



-----Original Message-----
From: William Walsh [mailto:wwa...@curamsoftware.com] 
Sent: Tuesday, March 23, 2010 3:32 PM
To: java-user@axis.apache.org
Subject: Using ?wsdl query in Axis2 URI causes DataRetrievalException

Hi,  

We're using Axis2 and deploying our services using the exploded format (instead 
of aar files) and when we use the ?wsdl query string in our URL (e.g. from the 
listServices page) we get the error below.  I looked through JIRA  and 
https://issues.apache.org/jira/browse/AXIS2-2763 seemed like the closest hit 
since we're using custom services.xml files.  So, I deployed the Axis2 Version 
service in an exploded format and aar format (aars usually causes Java 2 
security errors on WebSphere for us) and still have the same error.

https://issues.apache.org/jira/browse/AXIS2-3601 shows unresolved with no 
further activity from the initial opening.  I'm using 1.5.1.

I've also tried setting <parameter name="useOriginalwsdl"> true </parameter> 
and including the wsdl file in the META-INF directory with no change in 
behavior.

Any ideas?

Thanks,
William


http://localhost:9082/TestModelWS2/services/Version?wsdl

Error 500: org.apache.axis2.dataretrieval.DataRetrievalException: 
org/apache/xml/serializer/Serializer.asContentHandler()Lorg/xml/sax/ContentHandler;
 

[23/03/10 21:22:57:029 GMT] 00000017 servlet       E 
com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught 
exception crea
ted in one of the service methods of the servlet CuramAxis2Servlet in 
application TestModelWebServices2. Exception created : org.apache.axis2.
dataretrieval.DataRetrievalException: 
org/apache/xml/serializer/Serializer.asContentHandler()Lorg/xml/sax/ContentHandler;
        at 
org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocatorImpl.java:85)
        at 
org.apache.axis2.description.AxisService.getData(AxisService.java:2808)
        at 
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1512)
        at 
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1329)
        at 
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:270)
        at 
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:249)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
        at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1583)
        at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:870)
        at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:475)
        at 
com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
        at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3799)
        at 
com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
        at 
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:930)
        at 
com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
        at 
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:182)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
        at 
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)
        at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
        at 
com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
        at 
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
        at 
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
        at 
com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
        at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
        at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
        at 
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
        at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
        at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
Caused by: java.lang.VerifyError: 
org/apache/xml/serializer/Serializer.asContentHandler()Lorg/xml/sax/ContentHandler;
        at 
org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:293)
        at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:330)
        at 
org.apache.ws.commons.schema.XmlSchema.serialize_internal(XmlSchema.java:533)
        at org.apache.ws.commons.schema.XmlSchema.write(XmlSchema.java:473)
        at 
org.apache.axis2.description.AxisService2WSDL11.generateOM(AxisService2WSDL11.java:211)
        at 
org.apache.axis2.dataretrieval.WSDLDataLocator.outputInlineForm(WSDLDataLocator.java:131)
        at 
org.apache.axis2.dataretrieval.WSDLDataLocator.getData(WSDLDataLocator.java:73)
        at 
org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocatorImpl.java:81)
        ... 29 more


The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.


The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful. If you are not the intended
addressee please contact the sender and dispose of this e-mail. Thank you.

Reply via email to