Hi,
When I'm trying to startup an web application on Jboss, I am receiving 
TypeConverterLoaderException.  

Web App: 
- Apache Camel 2.9.1(OK)
- Active MQ 5.5.1(FAIL)

Container:
App Server: Jboss 5.1 GA (OK)
MessageBroker: Active MQ RA 5.5.1 (OK)

POM dependencies:

  <dependencies>

    <!-- Camel Dependencies -->
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-core</artifactId>
      <version>2.9.1</version>
    </dependency>
    
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-spring</artifactId>
      <version>2.9.1</version>
    </dependency>
    
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-stream</artifactId>
      <version>2.9.1</version>
    </dependency>
        
    <!-- Spring Web -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-web</artifactId>
      <version>3.0.6.RELEASE</version>
    </dependency>
     
    <!-- logging -->
    <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.apache.activemq</groupId>
        <artifactId>activemq-camel</artifactId>
        <version>5.5.1</version>
    </dependency>
    
  </dependencies>

2012-03-08 10:14:25,823 INFO  [STDOUT] (main) [                          main] 
SpringCamelContext             INFO  Apache Camel 2.9.1 (CamelContext: camel) 
is starting
2012-03-08 10:14:25,823 INFO  [STDOUT] (main) [                          main] 
ManagementStrategyFactory      INFO  JMX enabled. Using 
ManagedManagementStrategy.
2012-03-08 10:14:25,885 INFO  [STDOUT] (main) [                          main] 
ultManagementLifecycleStrategy INFO  StatisticsLevel at All so enabling load 
performance statistics
2012-03-08 10:14:27,448 INFO  [STDOUT] (main) [                          main] 
AnnotationTypeConverterLoader  INFO  Found 3 packages with 15 @Converter 
classes to load
2012-03-08 10:14:27,588 INFO  [STDOUT] (main) [                          main] 
DefaultTypeConverter           INFO  Loaded 169 core type converters (total 169 
type converters)
2012-03-08 10:14:27,588 INFO  [STDOUT] (main) [                          main] 
SpringCamelContext             INFO  Apache Camel 2.9.1 (CamelContext: camel) 
is shutting down
2012-03-08 10:14:27,588 INFO  [STDOUT] (main) [                          main] 
DefaultShutdownStrategy        INFO  Starting to graceful shutdown 0 routes 
(timeout 300 seconds)
2012-03-08 10:14:27,604 INFO  [STDOUT] (main) [                          main] 
DefaultShutdownStrategy        INFO  Graceful shutdown of 0 routes completed in 
0 seconds
2012-03-08 10:14:27,620 INFO  [STDOUT] (main) [                          main] 
SpringCamelContext             INFO  Uptime: 1.797 seconds
2012-03-08 10:14:27,620 INFO  [STDOUT] (main) [                          main] 
SpringCamelContext             INFO  Apache Camel 2.9.1 (CamelContext: camel) 
is shutdown in 0.016 seconds
2012-03-08 10:14:27,666 INFO  [STDOUT] (main) [                          main] 
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.apache.activemq.camel.converter]
        at 
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1221)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-core-2.9.1.jar:2.9.1]
        at 
org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1042)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-core-2.9.1.jar:2.9.1]
        at 
org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1057)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-core-2.9.1.jar:2.9.1]
        at 
org.apache.camel.impl.DefaultCamelContext.forceLazyInitialization(DefaultCamelContext.java:2036)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-core-2.9.1.jar:2.9.1]
        at 
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1511)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-core-2.9.1.jar:2.9.1]
        at 
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1421)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-core-2.9.1.jar:2.9.1]
        at 
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:179)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-spring-2.9.1.jar:2.9.1]
        at 
org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-core-2.9.1.jar:2.9.1]
        at 
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1389)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-core-2.9.1.jar:2.9.1]
        at 
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:228)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-spring-2.9.1.jar:2.9.1]
        at 
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:118)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-spring-2.9.1.jar:2.9.1]
        at 
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/camel-spring-2.9.1.jar:2.9.1]
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/spring-context-3.0.7.RELEASE.jar:3.0.3.RELEASE]
        at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/spring-context-3.0.7.RELEASE.jar:3.0.3.RELEASE]
        at 
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/spring-context-3.0.7.RELEASE.jar:3.0.3.RELEASE]
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/spring-context-3.0.7.RELEASE.jar:3.0.3.RELEASE]
        at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/spring-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]
        at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/spring-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]
        at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/araujocom.integracao.vtex.web-0.0.1-SNAPSHOT.war!/WEB-INF/lib/spring-web-3.0.6.RELEASE.jar:3.0.6.RELEASE]
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jbossweb.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jbossweb.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at 
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jboss-web-service.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at 
org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)[jar:file:/C:/jboss-5.1.0.GA/server/default/deploy/jbossweb.sar/jboss-web-service.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at 
org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)[jar:file:/C:/jboss-5.1.0.GA/common/lib/jboss.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at 
org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)[jar:file:/C:/jboss-5.1.0.GA/common/lib/jboss.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at 
org.jboss.web.deployers.WebModule.start(WebModule.java:97)[jar:file:/C:/jboss-5.1.0.GA/common/lib/jboss.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)[:1.6.0_27]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_27]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_27]
        at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_27]
        at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)[jar:file:/C:/jboss-5.1.0.GA/lib/jboss-mbeans.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at 
org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)[jar:file:/C:/jboss-5.1.0.GA/lib/jboss-mbeans.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at 
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)[jar:file:/C:/jboss-5.1.0.GA/lib/jboss-mbeans.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)[jar:file:/C:/jboss-5.1.0.GA/lib/jboss-mbeans.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)[jar:file:/C:/jboss-5.1.0.GA/lib/jboss-jmx.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at 
org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)[jar:file:/C:/jboss-5.1.0.GA/lib/jboss-system-jmx.jar!/:5.1.0.GA
 (build: SVNTag=JBoss_5_1_0_GA date=200905221053)]
        at $Proxy38.start(Unknown Source)
        at 
org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)[jar:file:/C:/jboss-5.1.0.GA/lib/jboss-system-jmx.jar!/:5.1.0.GA
 (buil


File applicationContext.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->

<beans xmlns="http://www.springframework.org/schema/beans";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xmlns:camel="http://camel.apache.org/schema/spring";
    xsi:schemaLocation="
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://camel.apache.org/schema/spring
       http://camel.apache.org/schema/spring/camel-spring.xsd";>


    <!--
        Simple camel route which send every one minute a message on the console.
    -->
    <camelContext id="camel" trace="false" 
xmlns="http://camel.apache.org/schema/spring";>
        <packageScan> 
           <package>org.foo.bar</package> 
        </packageScan>
                <route id="timer-to-activemq">
            <from uri="timer://foo?fixedRate=true&amp;period=10s" />
            <transform>
               <simple>Hello Web Application, how are you?</simple>
            </transform>
            <to uri="activemq:CONSOLE_QUEUE" />
        </route>
        
        <route id="activemq-to-console">
            <from uri="activemq:CONSOLE_QUEUE" />
            <to uri="stream:out" />
        </route>
    </camelContext>

   <bean id="activemq" 
class="org.apache.activemq.camel.component.ActiveMQComponent">
      <property name="brokerURL" value="tcp://localhost:61616"/>
   </bean>

</beans>

Any workaround?

Thanks in advance,
Adriano.


-- 
Adriano Tavares
Arquiteto de Software
Arkhi - estratégia em ti | 55  31 2526-5956 | YouTube | Twitter | Facebook
Linkedin |  Google Talk: adriano.tava...@arkhi.com.br

Reply via email to