Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 69700 invoked from network); 1 Mar 2010 16:02:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 16:02:07 -0000 Received: (qmail 78717 invoked by uid 500); 1 Mar 2010 16:02:06 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 78698 invoked by uid 500); 1 Mar 2010 16:02:06 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 78687 invoked by uid 500); 1 Mar 2010 16:02:05 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 78684 invoked by uid 99); 1 Mar 2010 16:02:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 16:02:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Mar 2010 16:02:04 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5863C29A0012 for ; Mon, 1 Mar 2010 16:01:44 +0000 (UTC) Message-ID: <303335142.1671267459304360.JavaMail.jira@brutus.apache.org> Date: Mon, 1 Mar 2010 16:01:44 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [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 In-Reply-To: <1101789733.1331267446944283.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ 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.