Guys,
I have some Java classes generated by Apache Axis WSDL2Java. I'm writing wrapper classes using "Apache Axis WSDL2Java" generated classes to communicate to a remote server, then using JAXB generated classes to build XML messages.
My question is...
1) If I execute my wrapper Java classes to talk to remote server, program works fine.
2) If I run a Tomcat server on my local machine using JSP to call my wrapper class to talk to remote server, one of my wrapper classes got an exception...
System was unable to process request due to internal error
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
...
3) If I execute my wrapper Java classes to talk to remote server and using JAXB generated classes to generate XML message, program raised an exception...
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.SystemFailure
faultSubcode:
faultString: System was unable to process request due to internal error
faultActor:
faultNode:
faultDetail:
{}StackTrace: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.dom4j.TextImpl
at com.xxxxx.universalservices.base.io.ebxml.EbXMLMessage.getErrorResponseMessage(EbXMLMessage.java:765)
I think 2) and 3) are related problems, but not sure what's going on. Could anyone please show me some directions to solve this problem?
Thanks,
Nitti
[ April 14, 2004: Message edited by: Nitti Lin ]