用于Websphere的Apache Camel Classloader

问题描述:

我正在使用带有websphere的Apache Camel。我们有一些类加载器问题。 据我所知,骆驼提供了一个websphere类加载器,但我找不到如何使用它的例子。 试图把这个在apllicationContext.xml文件 <bean id="WebsphereResolver" class="org.apache.camel.impl.WebSpherePackageScanClassResolver" /> ,但我得到了错误用于Websphere的Apache Camel Classloader

Caused by: java.lang.NoSuchMethodException: org.apache.camel.impl.WebSpherePackageScanClassResolver.<init>() 

什么是正确的格式?

+0

开箱即用。您使用的是哪个版本的Camel和WebSphere?你有什么类加载器问题。 – 2014-12-06 07:59:18

+0

我们的骆驼版本是2.12.0.redhat-610379对于websphere,它是WebSphere Platform 8.5.5.0。我们遇到了fastxml的问题。我们看到错误:构造函数抛出异常;嵌套异常是java.lang.NoSuchMethodError:com.fasterxml.jackson.databind.module.SimpleModule。 (LCOM/fasterxml /杰克逊/核心/版本;)V 在org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1363) 在org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext。 java:120) – 2014-12-07 18:35:08

+0

为什么在WebSphere上使用Red Hat JBoss Fuse?你有订阅吗?如果是这样,红帽客户门户可以更快地获得帮助。 – 2014-12-08 07:01:07

事实证明,问题在于我们使用的是我们的pom.xml中定义的旧版本的fasterxml。一旦我们更新了pom.xml以使用新版本的fasterxml,问题就消失了。如果apachexml bean可用,则使用fasterxml,但假定您使用的是最新版本。