You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/03/01 17:01:44 UTC
[jira] Resolved: (CAMEL-2509) [jboss-camel] Cannot find class
'WEB-INF/lib/camel-core-2.2.0.jar/org/apache/camel/component/bean/ParameterMappingStrategy.class'
in any classloaders
[ https://issues.apache.org/activemq/browse/CAMEL-2509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-2509.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.3.0
Assignee: Claus Ibsen
Thanks a lot.
I have committed a fix to camel-extra.
Fell free to try the fix on your system.
trunk: 292.
> [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
> Assignee: Claus Ibsen
> Fix For: 2.3.0
>
>
> 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: [BaseClassLoader@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$ENCLoader@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.