Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 81329 invoked from network); 1 Mar 2010 12:36:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 12:36:07 -0000 Received: (qmail 34637 invoked by uid 500); 1 Mar 2010 12:36:06 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 34524 invoked by uid 500); 1 Mar 2010 12:36: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 34516 invoked by uid 500); 1 Mar 2010 12:36:06 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 34512 invoked by uid 99); 1 Mar 2010 12:36:06 -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 12:36:06 +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 12:36:04 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 49590234C1F2 for ; Mon, 1 Mar 2010 12:35:44 +0000 (UTC) Message-ID: <1101789733.1331267446944283.JavaMail.jira@brutus.apache.org> Date: Mon, 1 Mar 2010 12:35:44 +0000 (UTC) From: "Griboval Philippe (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Created: (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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [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: [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.