activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dead_devil_66 <deathdevi...@hotmail.com>
Subject ActiveMQ and HttpServlet
Date Fri, 29 Jul 2011 02:12:43 GMT
Greetings.

I'm doing a simple example here: trying to run a producer, after doing a GET
request to a HttpServlet.

here is my code, for the httpservlet:

http://pastie.org/2287667

and for the Producer (source code from the activemq in action book):

http://pastie.org/2287665


When i start the servlet, i get this output:


29/Jul/2011 3:11:47 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
property 'source' to 'org.eclipse.jst.jee.server:HerveActiveMQProxy' did not
find a matching property.
29/Jul/2011 3:11:47 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
29/Jul/2011 3:11:47 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 768 ms
29/Jul/2011 3:11:47 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
29/Jul/2011 3:11:47 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.28
29/Jul/2011 3:11:47 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
29/Jul/2011 3:11:47 org.apache.catalina.startup.Catalina start
INFO: Server startup in 280 ms
29/Jul/2011 3:11:48 org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet SubscribeApi threw exception
java.lang.ClassNotFoundException: javax.jms.ConnectionFactory
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491)
	at SubscribeApi.doGet(SubscribeApi.java:32)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:636)

When i comment the line that initiates the producer, no errors ocurr.

--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-and-HttpServlet-tp3702961p3702961.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message