Tomcat 4.1.30 and OpenJMS0.7.6.1
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Max_Power
Posted On:   Thursday, November 18, 2004 04:12 AM

Cannot send JMS Messages when the JMS Sender class is invoked by a Servlet, which runs under Tomcat... Hi, my problem is the following: I have a simple JMS-Message-Producer class (called JMSSender), which simply looks up a MessageQueue and sends a TextMessage to it....The JMS Provider is OpenJMS0.7.6.1....If I run this class as a normal JAVA-Application, I have no problems. Now, I have a Servlet (called VoteServlet) which runs under Tomcat 4.1.30....This Servlet tries to send a JMS Message using the JMSSender I described above...but now I receive the following error message(the JMSSenderClass can look up its InitialContext and also can create a Connection, but it fails to create the Session-Object):   More>>

Cannot send JMS Messages when the JMS Sender class is invoked by a Servlet, which runs under Tomcat...


Hi,

my problem is the following:

I have a simple JMS-Message-Producer class (called JMSSender), which simply looks up a MessageQueue and sends a TextMessage to it....The JMS Provider is OpenJMS0.7.6.1....If I run this class as a normal JAVA-Application, I have no problems.



Now, I have a Servlet (called VoteServlet) which runs under Tomcat 4.1.30....This Servlet tries to send a JMS Message using the JMSSender I described above...but now I receive the following error message(the JMSSenderClass can look up its InitialContext and also can create a Connection, but it fails to create the Session-Object):



javax.jms.JMSException: Failed to createSession java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.net.MalformedURLException: no protocol: und
at org.exolab.jms.client.rmi.RmiJmsConnectionStub.createSession(RmiJmsConnectionStub.java:155)
at org.exolab.jms.client.JmsSession. (JmsSession.java:225)
at org.exolab.jms.client.JmsQueueSession. (JmsQueueSession.java:80)
at org.exolab.jms.client.JmsQueueConnection.createQueueSession(JmsQueueConnection.java:105)
at de.ryll.business.JMSSender.sendMessage(JMSSender.java:53)
at de.ryll.business.USVote.sendVote(USVote.java:48)
at de.ryll.servlets.VoteServlet.doPost(VoteServlet.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)



******************************************************
I'd be glad if anyone could help me....THANX.

   <<Less
About | Sitemap | Contact