aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web service with OpenJMS" Watch "Web service with OpenJMS" New topic
Author

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.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.lang.reflect.InvocationTargetException
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostnameT-CORP-TRNE-15

java.lang.reflect.InvocationTargetException
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
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(SAXParser.java:395)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at com.valuelabs.mms.DynamicInvoker.invokeMethod(DynamicInvoker.java:246)
at com.valuelabs.mms.TestWSDL.main(TestWSDL.java:65)

And my code to get the context is as follows.
config = ResourceBundle.getBundle("ConfigParams_en");
Hashtable<String,String> properties = new Hashtable<String,String>();
properties.put(Context.INITIAL_CONTEXT_FACTORY,"org.exolab.jms.jndi.InitialContextFactory");
properties.put(Context.PROVIDER_URL,"http://172.20.7.104:3030");
properties.put("java.naming.security.principal","admin");
properties.put("java.naming.security.credentials","openjms");
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 ...


Thanks,

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web service with OpenJMS