Hi,

I, too, am trying to deploy on jboss-5.1.0.

I created a 2.6.0 camel war project with the camel-archetype-war and added
camel-jboss 2.6.0 in the pom.xml and
<bean id="jbossResolver"
class="org.apache.camel.jboss.JBossPackageScanClassResolver" />
in the applicationContext.xml.

When starting jboss I get :
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected
exception parsing XML document from ServletContext resource
[/WEB-INF/applicationContext.xml]; nested exception is
java.lang.LinkageError: loader constraint violation: when resolving field
"DATETIME" the class loader (instance of
org/jboss/classloader/spi/base/BaseClassLoader) of the referring class,
javax/xml/datatype/DatatypeConstants, and the class loader (instance of
<bootloader>) for the field's resolved type, javax/xml/namespace/QName, have
different Class objects for that type
at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)[jar:file:/D:/programs/
jboss-5.1.0.GA/server/default/deploy/camel.war!/WEB-INF/lib/spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE
]

Any idea?

Oscar Picasso

On Sat, Jun 18, 2011 at 4:07 AM, Claus Ibsen <[email protected]> wrote:

> I think you either have to stick with Camel 2.6 or get JBoss to
> provide a version that supports SLF4j 1.6.x
>
> On Sat, Jun 18, 2011 at 3:39 AM, Don Doffe <[email protected]> wrote:
> > Yes, Maven.
> >
> > The issue is that camel is compiled expecting SLF4J api v 1.6.1.
> > The one provided with JBoss is 1.5.8.
> >
> > So when Camel runs it detects a mismatch between expected class version
> and
> > provided and fails.
> >
> > So excluding the dependency is not an option unless I recompile the
> Camel.
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/JBoss-5-1-0-Camel-2-7-0-SLF4J-version-difference-tp4498593p4500382.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [email protected]
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>

Reply via email to