File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Web service with OpenJMS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web service with OpenJMS" Watch "Web service with OpenJMS" New topic

Web service with OpenJMS

kranthi chamarthi
Ranch Hand

Joined: May 08, 2007
Posts: 95
I am exposing a method as wsdl method which is using openJMS queues.
I am using TOMCAT6.
I am using Axis.
When it is executed as a stand alone application i am able to execute it properly.
But when i am accessing it from the client I am getting following exception at client side.
faultCode: {}Server.userException
faultString: java.lang.reflect.InvocationTargetException

at org.apache.axis.message.SOAPFaultBuilder.createFault(
at org.apache.axis.message.SOAPFaultBuilder.endElement(
at org.apache.axis.encoding.DeserializationContext.endElement(
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 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(
at org.apache.axis.encoding.DeserializationContext.parse(
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(
at org.apache.axis.Message.getSOAPEnvelope(
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(
at org.apache.axis.client.AxisClient.invoke(
at org.apache.axis.client.Call.invokeEngine(
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(
at org.apache.axis.client.Call.invoke(
at com.valuelabs.mms.DynamicInvoker.invokeMethod(
at com.valuelabs.mms.TestWSDL.main(

And my code to get the context is as follows.
config = ResourceBundle.getBundle("ConfigParams_en");
Hashtable<String,String> properties = new Hashtable<String,String>();
Context context = null;
context = new InitialContext(properties);

the control is stopping at the context = new InitialContext(properties);

Do I need to do any changes in tomcat or Axis to resolve this issue?

Please help me ...


I agree. Here's the link:
subject: Web service with OpenJMS
It's not a secret anymore!