Hi Don,

did you try to define the isolated classloader (in the deploy/ear-deployer.xml if you package your war into an ear) and use JBossWebloader (in deploy/jboss-web.deployer/META-INF/jboss-service.xml) ?

Regards
JB

On 06/17/2011 02:34 PM, Don Doffe wrote:
Thank you for the help I got before.

I'm still having trouble deploying the camel .war into JBoss.
This time it is JBoss Logging binding for slf4j.

When deployed with the default dependencies provided by the archetype it
fails with duplicate binding for SLF4J.

If the bindings are reconfigured to use the JBoss logging it complains about
the version mismatch. It look like the JAR bundled with JBoss uses 1.5.5
binding and the one Camel depends on requires 1.6.1.

Is there a solution to that problem?

The exception I get is:

22:16:22,466 INFO  [AbstractCamelContextFactoryBean] Using custom
PackageScanClassResolver:
org.apache.camel.jboss.JBossPackageScanClassResolver@429f7
7c9
22:16:22,613 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'template': Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'camel-1': Invocation of init method failed; nested exception i
s java.lang.NoSuchFieldError: log
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
         at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
         at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

Thanks.


--
View this message in context: 
http://camel.465427.n5.nabble.com/JBoss-5-1-0-Camel-2-7-0-SLF4J-version-difference-tp4498593p4498593.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to