FAQ
Can someone help me with the following exception. I'm using Apache Camel
(2.10-SNAPSHOT) and Spring (3.0.7.RELEASE) with Tomcat (7.0.26).

(NOTE: I've also posted this on Stackoverflow at
http://stackoverflow.com/questions/9762861/drools-and-camel-failed-to-load-type-converters-cannot-find-any-type-converter

My Drools dependency in my pom.xml is

<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-camel</artifactId>
<version>5.3.0.Final</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
</exclusion>
</exclusions>
</dependency>

Exception on Tomcat log is -

org.apache.camel.RuntimeCamelException:
org.apache.camel.TypeConverterLoaderException: Failed to load type
converters because of: Cannot find any type converter classes from the
following packages: [org.drools.camel.component]
at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1221)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1052)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1067)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:2064)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1521)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1431)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
at
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)[camel-spring-2.10-20120318.032739-65.jar:2.10-SNAPSHOT]
at
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
at
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1399)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
at
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228)[camel-spring-2.10-20120318.032739-65.jar:2.10-SNAPSHOT]
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)[camel-spring-2.10-20120318.032739-65.jar:2.10-SNAPSHOT]
at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:243)[camel-spring-2.10-20120318.032739-65.jar:2.10-SNAPSHOT]
at
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)[catalina.jar:7.0.26]
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)[catalina.jar:7.0.26]
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)[catalina.jar:7.0.26]
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)[catalina.jar:7.0.26]
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)[catalina.jar:7.0.26]
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)[catalina.jar:7.0.26]
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958)[catalina.jar:7.0.26]
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:536)[catalina.jar:7.0.26]
at
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1467)[catalina.jar:7.0.26]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)[:1.6.0_29]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_29]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_29]
at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_29]
at
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)[tomcat-coyote.jar:7.0.26]
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)[:1.6.0_29]
at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)[:1.6.0_29]
at
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1436)[catalina.jar:7.0.26]
at
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:673)[catalina.jar:7.0.26]
at
org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:431)[catalina.jar:7.0.26]
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:644)[servlet-api.jar:]
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)[servlet-api.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)[catalina.jar:7.0.26]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.26]
at
org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)[catalina.jar:7.0.26]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.26]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.26]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)[catalina.jar:7.0.26]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)[catalina.jar:7.0.26]
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)[catalina.jar:7.0.26]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)[catalina.jar:7.0.26]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)[catalina.jar:7.0.26]
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)[catalina.jar:7.0.26]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.26]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)[catalina.jar:7.0.26]
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)[tomcat-coyote.jar:7.0.26]
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)[tomcat-coyote.jar:7.0.26]
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)[tomcat-coyote.jar:7.0.26]
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_29]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_29]
at java.lang.Thread.run(Thread.java:680)[:1.6.0_29]

Search Discussions

  • Surya at Mar 18, 2012 at 11:28 pm
    hi,

    this could generally happen due to classloading mismatch. Check if all
    drools-camel dependencies libraries and camel libraries are loaded by same
    class loader. there are several other dependencies that are required when
    using drools, check if you have them all as well.

    give it a shot and if still having issues let know how are are your
    libraries packaged i.e in web-inf/lib and server classpath.

    peace,
    surya
  • Soumya_sd at Mar 19, 2012 at 12:54 am
    Surya,

    Thank you for a response. I'll look into your suggestions. In the mean time
    here all the the dependencies in my current pom.xml. Let me know if you
    think I'm missing something I need to have to make camel-drools component
    running on Apache Tomcat with Spring 3.0.7.

    Thanks again !

    <dependencies>


    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-core</artifactId>
    <version>${camel.version}</version>
    </dependency>
    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-spring</artifactId>
    <version>${camel.version}</version>
    </dependency>
    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-stream</artifactId>
    <version>${camel.version}</version>
    </dependency>
    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-cxf</artifactId>
    <version>${camel.version}</version>
    </dependency>
    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-http</artifactId>
    <version>${camel.version}</version>
    </dependency>
    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-twitter</artifactId>
    <version>${camel.version}</version>
    </dependency>
    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-xstream</artifactId>
    <version>${camel.version}</version>
    </dependency>
    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-csv</artifactId>
    <version>${camel.version}</version>
    </dependency>
    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-jackson</artifactId>
    <version>${camel.version}</version>
    </dependency>


    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-core</artifactId>
    <version>${spring.version}</version>
    </dependency>

    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>${spring.version}</version>
    </dependency>

    <dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-webmvc</artifactId>
    <version>${spring.version}</version>
    </dependency>




    <dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-test</artifactId>
    <version>${camel.version}</version>
    <scope>test</scope>
    </dependency>


    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>1.6.1</version>
    </dependency>
    <dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-log4j12</artifactId>
    <version>1.6.1</version>
    </dependency>
    <dependency>
    <groupId>log4j</groupId>
    <artifactId>log4j</artifactId>
    <version>1.2.16</version>
    </dependency>


    <dependency>
    <groupId>org.codehaus.jackson</groupId>
    <artifactId>jackson-mapper-asl</artifactId>
    <version>1.7.1</version>
    </dependency>

    <dependency>
    <groupId>org.drools</groupId>
    <artifactId>drools-camel</artifactId>
    <version>5.3.0.Final</version>
    <exclusions>
    <exclusion>
    <groupId>org.springframework</groupId>
    <artifactId>spring</artifactId>
    </exclusion>
    </exclusions>
    </dependency>

    </dependencies>
  • Claus Ibsen at Mar 19, 2012 at 7:54 am
    Hi

    Can you check inside the drools-camel JAR file if there is a
    xxxTypeConverter classes in the package
    org.drools.camel.component

    If there is lets say FooTypeConverter class, then you can fix this in the
    META-INF/serivces/org/apache/camel/TypeConverter file in the same JAR.
    It has a reference to the type converters.
    And instead of being at package name level, you can type in the FQN
    class names instead.

    eg see the bottom of this page
    http://camel.apache.org/type-converter.html
    On Sun, Mar 18, 2012 at 11:26 PM, soumya_sd wrote:
    Can someone help me with the following exception. I'm using Apache Camel
    (2.10-SNAPSHOT) and Spring (3.0.7.RELEASE) with Tomcat (7.0.26).

    (NOTE: I've also posted this on Stackoverflow at
    http://stackoverflow.com/questions/9762861/drools-and-camel-failed-to-load-type-converters-cannot-find-any-type-converter

    My Drools dependency in my pom.xml is

    <dependency>
    <groupId>org.drools</groupId>
    <artifactId>drools-camel</artifactId>
    <version>5.3.0.Final</version>
    <exclusions>
    <exclusion>
    <groupId>org.springframework</groupId>
    <artifactId>spring</artifactId>
    </exclusion>
    </exclusions>
    </dependency>

    Exception on Tomcat log is -

    org.apache.camel.RuntimeCamelException:
    org.apache.camel.TypeConverterLoaderException: Failed to load type
    converters because of: Cannot find any type converter classes from the
    following packages: [org.drools.camel.component]
    at
    org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1221)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1052)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1067)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:2064)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1521)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1431)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)[camel-spring-2.10-20120318.032739-65.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1399)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228)[camel-spring-2.10-20120318.032739-65.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)[camel-spring-2.10-20120318.032739-65.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:243)[camel-spring-2.10-20120318.032739-65.jar:2.10-SNAPSHOT]
    at
    org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)[catalina.jar:7.0.26]
    at
    org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)[catalina.jar:7.0.26]
    at
    org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958)[catalina.jar:7.0.26]
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:536)[catalina.jar:7.0.26]
    at
    org.apache.catalina.startup.HostConfig.check(HostConfig.java:1467)[catalina.jar:7.0.26]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)[:1.6.0_29]
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_29]
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_29]
    at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_29]
    at
    org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)[tomcat-coyote.jar:7.0.26]
    at
    com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)[:1.6.0_29]
    at
    com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)[:1.6.0_29]
    at
    org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1436)[catalina.jar:7.0.26]
    at
    org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:673)[catalina.jar:7.0.26]
    at
    org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:431)[catalina.jar:7.0.26]
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:644)[servlet-api.jar:]
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)[servlet-api.jar:]
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.26]
    at
    org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)[catalina.jar:7.0.26]
    at
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)[catalina.jar:7.0.26]
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)[catalina.jar:7.0.26]
    at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.26]
    at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)[catalina.jar:7.0.26]
    at
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)[tomcat-coyote.jar:7.0.26]
    at
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)[tomcat-coyote.jar:7.0.26]
    at
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)[tomcat-coyote.jar:7.0.26]
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_29]
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_29]
    at java.lang.Thread.run(Thread.java:680)[:1.6.0_29]


    --
    View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-RuntimeCamelException-org-apache-camel-TypeConverterLoaderException-Failed-to-load--tp5575757p5575757.html
    Sent from the Camel - Users mailing list archive at Nabble.com.


    --
    Claus Ibsen
    -----------------
    CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
    FuseSource
    Email: cibsen@fusesource.com
    Web: http://fusesource.com
    Twitter: davsclaus, fusenews
    Blog: http://davsclaus.blogspot.com/
    Author of Camel in Action: http://www.manning.com/ibsen/
  • Babak Vahdat at Mar 19, 2012 at 8:42 am
    Hi

    I assume Hadrian could give us a hint here...

    The TypeConverter file located at:

    https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-camel/src/main/resources/META-INF/services/org/apache/camel/TypeConverter

    claims that there're should be at least a Class with one Method annotated
    with the Camel @Converter annotation, however looking at:

    https://github.com/droolsjbpm/droolsjbpm-integration/tree/master/drools-camel/src/main/java/org/drools/camel/component

    I couldn't find any such Class. So maybe in worst case removing that
    TypeConverter file by yourself inside JAR could help.

    @Hadrian

    I see your *bold* comment (https://issues.jboss.org/browse/JBRULES-2347)
    about your commit for the TypeConverter file here with the content:

    There is a META-INF directory that uses the camel structure:
    org.apache.camel.. That has to stay the way it is, because
    of conventions camel makes. The classes however can be in any package (now
    org.drools.camel.).

    Could you maybe give us a hint about this. Am I missing something?

    Babak
  • Soumya_sd at Mar 19, 2012 at 2:27 pm
    http://camel.465427.n5.nabble.com/file/n5577231/camel-drools.jpg
    camel-drools.jpg
    Claus Ibsen-2 wrote


    Can you check inside the drools-camel JAR file if there is a
    xxxTypeConverter classes in the package
    org.drools.camel.component

    If there is lets say FooTypeConverter class, then you can fix this in the
    META-INF/serivces/org/apache/camel/TypeConverter file in the same JAR.
    It has a reference to the type converters.
    And instead of being at package name level, you can type in the FQN
    class names instead.
    I couldn't find any xxxTypeConverter classes in the package. Please see the
    attached jpg file for the class that are in the drools-camel-5.3.0.Final.jar
    file.
  • Surya at Mar 19, 2012 at 2:44 pm
    @Babak

    In package "org.drools.camel.component" I see some classes that do reference
    bunch of Camel Converter classes. my best guess is it might not be an issue
    in this case..btw i have drools-camel 5.3.0 up and running....'camel' should
    be nominated as logo for U.N :) it integrates everything seamlessly..no
    barriers..


    @Soumya:

    Do you have these dependencies in your classpath? For the exclusions below
    it is your choice if you need them or excluded.
    <dependency>
    <groupId>org.drools</groupId>
    <artifactId>knowledge-api</artifactId>
    <version>${drools.version}</version>
    </dependency>
    <dependency>
    <groupId>org.drools</groupId>
    <artifactId>drools-core</artifactId>
    <version>${drools.version}</version>
    </dependency>
    <dependency>
    <groupId>org.drools</groupId>
    <artifactId>drools-camel</artifactId>
    <version>${drools.version}</version>
    <exclusions>
    <exclusion>
    <artifactId>hibernate-entitymanager</artifactId>
    <groupId>org.hibernate</groupId>
    </exclusion>
    <exclusion>
    <artifactId>hibernate-annotations</artifactId>
    <groupId>org.hibernate</groupId>
    </exclusion>
    <exclusion>
    <artifactId>hibernate-core</artifactId>
    <groupId>org.hibernate</groupId>
    </exclusion>
    <exclusion>
    <artifactId>hibernate-commons-annotations</artifactId>
    <groupId>org.hibernate</groupId>
    </exclusion>

    <exclusion>
    <artifactId>camel-xstream</artifactId>
    <groupId>org.apache.camel</groupId>
    </exclusion>
    <exclusion>
    <artifactId>cxf-bundle-jaxrs</artifactId>
    <groupId>org.apache.cxf</groupId>
    </exclusion>
    <exclusion>
    <artifactId>persistence-api</artifactId>
    <groupId>javax.persistence</groupId>
    </exclusion>
    <exclusion>
    <artifactId>cxf-rt-frontend-jaxws</artifactId>
    <groupId>org.apache.cxf</groupId>
    </exclusion>
    <exclusion>
    <artifactId>hazelcast</artifactId>
    <groupId>com.hazelcast</groupId>
    </exclusion>
    <exclusion>
    <artifactId>camel-cxf</artifactId>
    <groupId>org.apache.camel</groupId>
    </exclusion>
    <exclusion>
    <artifactId>mina-core</artifactId>
    <groupId>org.apache.mina</groupId>
    </exclusion>
    <exclusion>
    <artifactId>jbpm-flow-builder</artifactId>
    <groupId>org.jbpm</groupId>
    </exclusion>
    <exclusion>
    <artifactId>spring</artifactId>
    <groupId>org.springframework</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <groupId>org.drools</groupId>
    <artifactId>drools-compiler</artifactId>
    <version>${drools.version}</version>
    </dependency>
  • Babak Vahdat at Mar 19, 2012 at 2:56 pm
    @surya

    I assume you mean classes like the following:

    https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-camel/src/main/java/org/drools/camel/component/XStreamXml.java

    However that doesn't help in any way (and doesn't relate to this problem).
    If you have a package name inside TypeConverter file there's should be *at
    least* one class with
    one method decorated with the @Converter annotation. The *better* option is,
    for avoiding a *full* package scan, to use FQN of *all* such classes who
    claim to be Camel Converter.

    Check also:

    http://camel.apache.org/type-converter.html#TypeConverter-WritingyourownTypeConverters

    Babak
  • Soumya_sd at Mar 19, 2012 at 3:14 pm
    @ Babak - So can I do something from my end to resolve this problem ?
  • Babak Vahdat at Mar 19, 2012 at 3:39 pm
    Hi

    you could remove the TypeConverter file from inside that drools-camel JAR
    (after making a backup of it of course) and see if that could help, as
    there're no Camel Converter available inside that
    "org.drools.camel.component" package anyway!

    Babak
  • Soumya_sd at Mar 19, 2012 at 4:43 pm
    @Babak - I removed the file as you said and now i'm getting the following
    error :(

    268 [ http-bio-8080-exec-5] SpringCamelContext INFO
    Apache Camel 2.10-SNAPSHOT (CamelContext: camelctx) is starting
    269 [ http-bio-8080-exec-5] SpringCamelContext INFO
    Tracing is enabled on CamelContext: camelctx
    270 [ http-bio-8080-exec-5] ManagementStrategyFactory INFO
    JMX enabled.
    271 [ http-bio-8080-exec-5] ultManagementLifecycleStrategy INFO
    StatisticsLevel at All so enabling load performance statistics
    272 [ http-bio-8080-exec-5] DefaultTypeConverter INFO
    Loaded 194 type converters
    273 [ http-bio-8080-exec-5] SpringCamelContext INFO
    Apache Camel 2.10-SNAPSHOT (CamelContext: camelctx) is shutting down
    274 [ http-bio-8080-exec-5] SpringCamelContext INFO
    Apache Camel 2.10-SNAPSHOT (CamelContext: camelctx) is shutdown in 0.004
    seconds. Uptime 0.298 seconds.
    275 [ http-bio-8080-exec-5] ContextLoader ERROR
    Context initialization failed
    276 org.apache.camel.RuntimeCamelException:
    org.apache.camel.FailedToCreateRouteException: Failed to create route
    drools-route at: >>> Policy[ref:droolsPolicy] <<< in route:
    Route[[From[direct:drools-ep]] -> [Policy[ref:droolsPolicy] ]... because
    of Failed to resolve endpoint: drools://node1/ksession1 due to: Could not
    find GridNode for uri="node1/ksession1" in CamelContext. Check
    configuration.
    277 at
    org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1221)[camel-core-2.10-20120318.032230-65.jar:2.10-SNAPSHOT]
    278 at
    org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)[camel-spring-2.10-20120318.032739-65.jar:2.10-SNAPSHOT]
    279 at
    org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:243)[camel-spring-2.10-20120318.032739-65.jar:2.10-SNAPSHOT]
    280 at
    org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    281 at
    org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    282 at
    org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    283 at
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    284 at
    org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    285 at
    org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    286 at
    org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    287 at
    org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)[catalina.jar:7.0.26]
    288 at
    org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)[catalina.jar:7.0.26]
    289 at
    org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)[catalina.jar:7.0.26]
    290 at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)[catalina.jar:7.0.26]
    291 at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)[catalina.jar:7.0.26]
    292 at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)[catalina.jar:7.0.26]
    293 at
    org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958)[catalina.jar:7.0.26]
    294 at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:536)[catalina.jar:7.0.26]
    295 at
    org.apache.catalina.startup.HostConfig.check(HostConfig.java:1467)[catalina.jar:7.0.26]
    296 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)[:1.6.0_29]
    297 at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_29]
    298 at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_29]
    299 at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_29]
    300 at
    org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)[tomcat-coyote.jar:7.0.26]
    301 at
    com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)[:1.6.0_29]
    302 at
    com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)[:1.6.0_29]
    303 at
    org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1436)[catalina.jar:7.0.26]
    304 at
    org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:673)[catalina.jar:7.0.26]
    305 at
    org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:431)[catalina.jar:7.0.26]
    306 at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:644)[servlet-api.jar:]
    307 at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)[servlet-api.jar:]
    308 at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)[catalina.jar:7.0.26]
    309 at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.26]
    310 at
    org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)[catalina.jar:7.0.26]
    311 at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.26]
    312 at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.26]
    313 at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)[catalina.jar:7.0.26]
    314 at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)[catalina.jar:7.0.26]
    315 at
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)[catalina.jar:7.0.26]
    316 at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)[catalina.jar:7.0.26]
    317 at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)[catalina.jar:7.0.26]
    318 at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)[catalina.jar:7.0.26]
    319 at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.26]
    320 at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)[catalina.jar:7.0.26]
    321 at
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)[tomcat-coyote.jar:7.0.26]
    322 at
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)[tomcat-coyote.jar:7.0.26]
    323 at
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)[tomcat-coyote.jar:7.0.26]
    324 at
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_29]
    325 at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_29]
    326 at java.lang.Thread.run(Thread.java:680)[:1.6.0_29]
    327 Mar 19, 2012 12:23:17 PM org.apache.catalina.core.StandardContext
    startInternal
  • Babak Vahdat at Mar 19, 2012 at 5:24 pm
    Hi

    Great! now you're indeed one step forward where the Drools Endpoint get's
    kicked in through Camel! And the exception you're observing is thrown from
    DroolsEndpoint class itself [1] which according to the exception message it
    indicates that you don't have a proper configuration:

    Could not find GridNode for uri="node1/ksession1" in CamelContext. Check
    configuration.

    You have to first *bind* a GridNode into the Camel registry, as that's
    apparently where the DroolsEndpoint does look up for a GridNode with the
    name "node1".

    I found a good tutorial for usage of this Camel component [2] which you may
    want to walk through, and also notice how it does bind the node into the
    Camel registry beforehand:

    GridNode node = grid.createGridNode("node");
    Context context = new JndiContext();
    context.bind("node", node);

    And for further question may be also make use of the Drools user forum
    itself [3] to get better support from the people knowing more about this
    component.

    [1]
    https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-camel/src/main/java/org/drools/camel/component/DroolsEndpoint.java#L161
    [2]
    http://lucazamador.wordpress.com/2011/06/15/jbpm5-drools-apache-camel-integration/
    [3] http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html

    Babak
  • Soumya_sd at Mar 19, 2012 at 5:50 pm
    @Babak - Thanks. I've looked at that Tutorial before. I'm new to both Drools
    as well as Camel. But I'm learning. Hopefully, I can write my complete
    experience once I'm successfully in making this all work together.

    Just another question regarding removing the TypeCoverter file from the jar
    automatically. Can anyone suggest a easy way to tell maven to remove that
    file while building the sources or do I've to do it manually.

    thanks again to everyone for all their help and pointers.
  • Babak Vahdat at Mar 19, 2012 at 6:27 pm

    Am 19.03.12 18:49 schrieb "soumya_sd" unter <soumya_sd@yahoo.com>:
    @Babak - Thanks. I've looked at that Tutorial before. I'm new to both
    Drools
    as well as Camel. But I'm learning. Hopefully, I can write my complete
    experience once I'm successfully in making this all work together.
    So for sure you know much more about that Camel component than me :-)
    Just another question regarding removing the TypeCoverter file from the
    jar
    automatically. Can anyone suggest a easy way to tell maven to remove that
    file while building the sources or do I've to do it manually.
    Yes, one possible way would be to instruct maven-jar-plugin for that, if
    you're building the drools-camel
    jar by yourself using [1] then simply add your own configuration for that
    purpose, something like:

    <build>
    <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <configuration>
    <excludes>
    <exclude>**/TypeConverter</exclude>
    </excludes>
    </configuration>
    </plugin>
    </plugins>
    </build>




    [1]
    https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-cam
    el/pom.xml

    Babak
    thanks again to everyone for all their help and pointers.

    --
    View this message in context:
    http://camel.465427.n5.nabble.com/org-apache-camel-RuntimeCamelException-o
    rg-apache-camel-TypeConverterLoaderException-Failed-to-load--tp5575757p557
    7795.html
    Sent from the Camel - Users mailing list archive at Nabble.com.
  • Soumya_sd at Mar 19, 2012 at 7:39 pm
    @Babak - Thanks again !


    I just have one pom.xml. Won't the following remove all TypeConverters ?


    <build>
    <plugins>
    <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-jar-plugin</artifactId>
    <configuration>
    <excludes>
    <exclude>**/TypeConverter</exclude>
    </excludes>
    </configuration>
    </plugin>
    </plugins>
    </build>
  • Surya at Mar 20, 2012 at 8:27 pm
    Soumya,

    If you are still having issues, you can use the patch jar attached and put
    it in classpath. This should be interim fix for you to get going, will raise
    jira for drools-camel folks later.

    peace,
    surya
    http://camel.465427.n5.nabble.com/file/n5581146/drools-converter-patch.jar
    drools-converter-patch.jar
  • Soumya_sd at Mar 21, 2012 at 5:47 pm
    @Surya - thank for the patch. Right now I've just removed the TypeCoverter
    file and it works. I'll try to use you path as well.

    Now that I can run everything without errors I need to figure out how to
    actually write some rules to execute on Drools.

    Thanks again !
  • Alexandre Porcelli at Mar 21, 2012 at 10:25 pm
    I've been working on this issue, probably will be fixed on Drools 5.4.0-CR1

    Regards,
    ---
    Alexandre Porcelli
    porcelli@redhat.com
    On Mar 21, 2012, at 2:47 PM, soumya_sd wrote:

    @Surya - thank for the patch. Right now I've just removed the TypeCoverter
    file and it works. I'll try to use you path as well.

    Now that I can run everything without errors I need to figure out how to
    actually write some rules to execute on Drools.

    Thanks again !


    --
    View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-RuntimeCamelException-org-apache-camel-TypeConverterLoaderException-Failed-to-load--tp5575757p5583650.html
    Sent from the Camel - Users mailing list archive at Nabble.com.
  • Soumya_sd at Mar 22, 2012 at 11:47 am
    @Alexandre Thanks for looking into this. Can you give us an idea when the
    next RC1 is planned ?
  • Alexandre Porcelli at Apr 12, 2012 at 9:18 pm
    @Soumya

    After some delays, here is the CR1 http://www.jboss.org/drools/downloads

    ---
    Alexandre Porcelli
    porcelli@redhat.com
    On Mar 22, 2012, at 8:47 AM, soumya_sd wrote:

    @Alexandre Thanks for looking into this. Can you give us an idea when the
    next RC1 is planned ?


    --
    View this message in context: http://camel.465427.n5.nabble.com/org-apache-camel-RuntimeCamelException-org-apache-camel-TypeConverterLoaderException-Failed-to-load--tp5575757p5585606.html
    Sent from the Camel - Users mailing list archive at Nabble.com.
  • Soumya_sd at Apr 24, 2012 at 12:29 am
    @Alexandre -

    Thank you so much. I was busy with another project. But I've come back to
    this one. Thanks again for fixing this. I'll test it and let you know if I
    find any other issues.

    -Soumya
  • Soumya_sd at Apr 25, 2012 at 8:15 pm
    @Alexandre - I'm still get the same error even after I used this in my
    pom.xml ( <drools.version>5.4.0.CR1</drools.version>)


    INFO:
    validateJarFile(/Users/ssimanta/Documents/apache-tomcat-7.0.26/webapps/emontage/WEB-INF/lib/geronimo-servlet_3.0_spec-1.0.jar)
    - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
    javax/servlet/Servlet.class
    [ http-bio-8080-exec-5] SpringCamelContext INFO Apache
    Camel 2.10-SNAPSHOT (CamelContext: camelctx) is starting
    [ http-bio-8080-exec-5] SpringCamelContext INFO
    Tracing is enabled on CamelContext: camelctx
    [ http-bio-8080-exec-5] ManagementStrategyFactory INFO JMX
    enabled.
    [ http-bio-8080-exec-5] ultManagementLifecycleStrategy INFO
    StatisticsLevel at All so enabling load performance statistics
    [ http-bio-8080-exec-5] SpringCamelContext INFO Apache
    Camel 2.10-SNAPSHOT (CamelContext: camelctx) is shutting down
    [ http-bio-8080-exec-5] SpringCamelContext INFO Apache
    Camel 2.10-SNAPSHOT (CamelContext: camelctx) is shutdown in 0.002 seconds.
    Uptime 0.115 seconds.
    [ http-bio-8080-exec-5] ContextLoader ERROR
    Context initialization failed
    org.apache.camel.RuntimeCamelException:
    org.apache.camel.TypeConverterLoaderException: Failed to load type
    converters because of: Cannot find any type converter classes from the
    following packages: [org.drools.camel.component]
    at
    org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1221)[camel-core-2.10-20120320.091353-67.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1052)[camel-core-2.10-20120320.091353-67.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1067)[camel-core-2.10-20120320.091353-67.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:2064)[camel-core-2.10-20120320.091353-67.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1521)[camel-core-2.10-20120320.091353-67.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1431)[camel-core-2.10-20120320.091353-67.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)[camel-spring-2.10-20120320.091712-67.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[camel-core-2.10-20120320.091353-67.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1399)[camel-core-2.10-20120320.091353-67.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228)[camel-spring-2.10-20120320.091712-67.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)[camel-spring-2.10-20120320.091712-67.jar:2.10-SNAPSHOT]
    at
    org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:243)[camel-spring-2.10-20120320.091712-67.jar:2.10-SNAPSHOT]
    at
    org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)[spring-context-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)[spring-web-3.0.7.RELEASE.jar:3.0.7.RELEASE]
    at
    org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)[catalina.jar:7.0.26]
    at
    org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)[catalina.jar:7.0.26]
    at
    org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:958)[catalina.jar:7.0.26]
    at
    org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:536)[catalina.jar:7.0.26]
    at
    org.apache.catalina.startup.HostConfig.check(HostConfig.java:1467)[catalina.jar:7.0.26]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_31]
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_31]
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_31]
    at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_31]
    at
    org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)[tomcat-coyote.jar:7.0.26]
    at
    com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)[:1.6.0_31]
    at
    com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)[:1.6.0_31]
    at
    org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1436)[catalina.jar:7.0.26]
    at
    org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:673)[catalina.jar:7.0.26]
    at
    org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:431)[catalina.jar:7.0.26]
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:644)[servlet-api.jar:]
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)[servlet-api.jar:]
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.26]
    at
    org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)[catalina.jar:7.0.26]
    at
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)[catalina.jar:7.0.26]
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)[catalina.jar:7.0.26]
    at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)[catalina.jar:7.0.26]
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)[catalina.jar:7.0.26]
    at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)[catalina.jar:7.0.26]
    at
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)[tomcat-coyote.jar:7.0.26]
    at
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)[tomcat-coyote.jar:7.0.26]
    at
    org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)[tomcat-coyote.jar:7.0.26]
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_31]
    at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_31]
    at java.lang.Thread.run(Thread.java:680)[:1.6.0_31]
    Apr 25, 2012 4:10:00 PM org.apache.catalina.core.StandardContext
    startInternal
    SEVERE: Error listenerStart
    Apr 25, 2012 4:10:00 PM org.apache.catalina.core.StandardContext
    startInternal
  • Soumya_sd at Apr 25, 2012 at 8:57 pm
    As you can see in the attached screenshot. I'm getting the correct version
    of the jar file. There is no TypeConverter file in the
    META-INF/services/org/apache/camel/component/ directory. So looks the
    changes were reflected. But I'm not sure what else is broken now :(.

    http://camel.465427.n5.nabble.com/file/n5665962/drools-camel-5.4.0.CR1.jar_screenshot.png
  • Soumya_sd at Mar 19, 2012 at 3:13 pm
    @Surya - I added these dependencies. But I'm still getting the same
    exception.

    Can you please tell us more about your setup and how you are running
    drools-camel.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriescamel
postedMar 18, '12 at 10:26p
activeApr 25, '12 at 8:57p
posts24
users5
websitecamel.apache.org

People

Translate

site design / logo © 2022 Grokbase