[
https://issues.apache.org/activemq/browse/CAMEL-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=57929#action_57929
]
Claus Ibsen commented on CAMEL-2509:
------------------------------------
Thanks for reporting.
Yeah classloading in JBoss is a bit tricky :)
> [jboss-camel] Cannot find class
> 'WEB-INF/lib/camel-core-2.2.0.jar/org/apache/camel/component/bean/ParameterMappingStrategy.class'
> in any classloaders
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-2509
> URL: https://issues.apache.org/activemq/browse/CAMEL-2509
> Project: Apache Camel
> Issue Type: Bug
> Affects Versions: 2.2.0
> Environment: JBoss
> Reporter: Griboval Philippe
>
> Using jboss-extra class JBossPackageScanClassResolver, i could not get the
> converter loaded.
> I was using camel 2.2.0 and JBoss 5.1
> The error was :
> Cannot find class
> 'WEB-INF/lib/camel-core-2.2.0.jar/org/apache/camel/component/bean/ParameterMappingStrategy.class'
> in any classloaders:
> [baseclassloa...@107e733{vfszip:/D:/JBoss/jboss-5.1.0.GA/server/testWS/deploy/router-component-02-0.0.2-SNAPSHOT.war/},
> org.jboss.web.tomcat.service.webctxloader$encloa...@1ea6b44]
> Looking at the JBossPackageScanClassResolver source class, i changed :
> public void visit(VirtualFile file) {
> if (file.getName().endsWith(".class")) {
> String fqn = file.getPathName();
> addIfMatching(filter, fqn.substring("/") + 1), classes);
> }
> }
> with :
> public void visit(VirtualFile file) {
> if (file.getName().endsWith(".class")) {
> String fqn = file.getPathName();
> addIfMatching(filter, fqn.substring(fqn.indexOf("jar/") + 4), classes);
> }
> }
> as the fqn was
> /WEB-INF/lib/camel-core-2.2.0.jar/org/apache/camel/component/bean/ParameterMappingStrategy.class
> instead of /org/apache/camel/component/bean/ParameterMappingStrategy.class
> It's probably different from different version of JBoss ?
> Hope this help sombody...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.