Do you have the stack trace? Could you post that here? Regards, Jothi
On Wed, Aug 8, 2012 at 11:47 AM, Gnanaguru S < gnanaguru.sattanat...@wipro.com> wrote: > > Hi > > I have my camel application running in Tomcat. It works perfect. > > In my existing route I wanted to add a ActiveMQ endpoint. But tomcat says > listener error. I have specified my connection factory in a separate bean. > > Error: > > INFO: > validateJarFile(d:\installedsoftware\apache-tomcat-7.0.29-windows-x86\apac > > he-tomcat-7.0.29\webapps\mihir-web-1.0.0-SNAPSHOT\WEB-INF\lib\servlet-api-2.5-6. > 1.14.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending > class > : javax/servlet/Servlet.class > [ localhost-startStop-1] SpringCamelContext INFO > Apache > Cam > el 2.9.0.fuse-7-061 (CamelContext: camel-1) is starting > [ localhost-startStop-1] ManagementStrategyFactory INFO JMX > enable > d. > [ localhost-startStop-1] ultManagementLifecycleStrategy INFO > Statistics > Level at All so enabling load performance statistics > [ localhost-startStop-1] DefaultTypeConverter INFO > Loaded > 172 > type converters > [ localhost-startStop-1] SpringCamelContext INFO > Route: > rou > te1 started and consuming from: Endpoint[file://c://input/] > [ localhost-startStop-1] SpringCamelContext INFO Total > 1 ro > utes, of which 1 is started. > [ localhost-startStop-1] SpringCamelContext INFO > Apache > Cam > el 2.9.0.fuse-7-061 (CamelContext: camel-1) started in 1.342 seconds > [ localhost-startStop-1] log INFO > Logging to > org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via > org.mortbay.log.Slf4jLog > > Aug 8, 2012 3:13:54 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > D:\installedsoftware\apache-tomcat-7.0 > .29-windows-x86\apache-tomcat-7.0.29\webapps\docs > Aug 8, 2012 3:13:54 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > D:\installedsoftware\apache-tomcat-7.0 > .29-windows-x86\apache-tomcat-7.0.29\webapps\examples > Aug 8, 2012 3:13:54 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > D:\installedsoftware\apache-tomcat-7.0 > .29-windows-x86\apache-tomcat-7.0.29\webapps\host-manager > Aug 8, 2012 3:13:55 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > D:\installedsoftware\apache-tomcat-7.0 > .29-windows-x86\apache-tomcat-7.0.29\webapps\manager > Aug 8, 2012 3:13:55 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > D:\installedsoftware\apache-tomcat-7.0 > .29-windows-x86\apache-tomcat-7.0.29\webapps\ROOT > *Aug 8, 2012 3:13:55 PM org.apache.catalina.core.StandardContext > startInternal > SEVERE: Error listenerStart > Aug 8, 2012 3:13:55 PM org.apache.catalina.core.StandardContext > startInternal > SEVERE: Context [] startup failed due to previous errors > Aug 8, 2012 3:13:55 PM org.apache.coyote.AbstractProtocol start*INFO: > Starting ProtocolHandler ["http-apr-8080"] > > > *Camel Route:* > > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:camel="http://camel.apache.org/schema/spring" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-3.0.xsd > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd"> > > <camelContext trace="false" xmlns="http://camel.apache.org/schema/spring > "> > <route> > <from uri="file://c://input/"/> > <multicast> > <to uri="file://c://output1/"/> > <to uri="file://c://output2/"/> > <to uri="activemq:queue:mihir"/> > </multicast> > </route> > </camelContext> > > <bean id="activemq" > class="org.apache.activemq.camel.component.ActiveMQComponent" > > <property name="connectionFactory"> > <bean class="org.apache.activemq.ActiveMQConnectionFactory"> > <property name="brokerURL" value="tcp://localhost:61616" /> > > </bean> > </property> > </bean> > </beans> > > > I have also configured the connection factory in > TOMCAT_HOME\conf\context.xml > > I am missing somewhere, Need your help. > > > Regards > Guru > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-ActiveMQ-communication-failes-in-Tomcat-tp5716976.html > Sent from the Camel - Users mailing list archive at Nabble.com. >