Hi, 

I couldn't find much info on how to deploy a ear project that utilizes
Camel.
Below is a directory structure of my project.
 
Demo_Ear
+EarContent
++APP-INF
+++classes
+++lib
++++activemq-all-5.5.0.jar
++++camel-context.jar-2.10.0, camel-core-2.10.0.jar, camel-jms-2.10.0.jar

Demo_Main
+src
+src/resource
++camel-context-xml

...


Here the content of my camel-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xmlns:context="http://www.springframework.org/schema/context";
  xmlns:jee="http://www.springframework.org/schema/jee";
  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.org/schema/spring/camel-spring.xsd";
     .....
>


<jee:jndi-lookup id="myConnectionFactory" jndi-name="xxxxx.factory">
<jee:environment>
java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
java.naming.provider.url=t3:127.0.0.168:7001
</jee:environment>
</jee:jndi-lookup>
 
<bean id="weblogic" class="org.apache.camel.component.jms.JmsComponent">
    <property name="connectionFactory" ref="myConnectionFactory"/>
</bean>

<camel:camelContext id="camelOne>
    <template id="producerTemplate"/>
    <consumerTemplate id="consumerTemplate"/>
</camel:camelContext>

<route>
    ...
</route>

</beans>


The exact same camel-context.xml was working for a console based POC apps
that i wrote.

However, when i try to deploy on my weblogic 10.3
I received the following:   (Pardon me, I couldnt produce the whole stack
trace)

Loaded  => #Output by the class that load the camel-context.xml
[2012-08-02 10:53:10, 625] INFO
org.spingframework.context.support.ClassPathXmlApplicationContext]
Refreshing
org.springframework.context.support.ClassPathXmlApplicationContext@ddd823:
startup
[2012-08-02 10:53:10, 719] INFO
org.springframework.beans.factory.xml.XmlBeanDefinitionReader] Loading XML
Beans definitations from class path resource [camel-context.xml]
[2012-08-02 10:53:10, 266] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory]
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1d8e16f:
defining beans [myConnectionFactory, weblogic, template, consumerTemplate,
camelOne]; root of factory hieracrchery

exception started:
org.apache.came.RuntimeCamelException:
org.apache.camel.TypeConvertoerLoaderException: Failed to load type
converter because of: Cannot find any type converter classes from the
following packages: [org.apache.activemq.camel.converter]
@org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException
(ObjectHelper.java:1280)
........
Caused by: org.apache.camel.TypeConverterLoaderException: Failed to load
type converter because of: Cannot find any type converter classes from the
following packages: [org.apache.activemq.camel.converter]

Appreaciate any advice.

Thanks and Best Regards,
Zuff




--
View this message in context: 
http://camel.465427.n5.nabble.com/New-help-on-deploying-an-camel-EAR-project-on-Weblogic-10-3-tp5716681.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to