Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 39343 invoked from network); 12 Jun 2008 01:50:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2008 01:50:51 -0000 Received: (qmail 29284 invoked by uid 500); 12 Jun 2008 01:50:53 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 29260 invoked by uid 500); 12 Jun 2008 01:50:53 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 29249 invoked by uid 99); 12 Jun 2008 01:50:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 18:50:53 -0700 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; Thu, 12 Jun 2008 01:50:12 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 49ACC234C137 for ; Wed, 11 Jun 2008 18:50:00 -0700 (PDT) Message-ID: <232026386.1213235400286.JavaMail.jira@brutus> Date: Wed, 11 Jun 2008 18:50:00 -0700 (PDT) From: "Freeman Fang (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-577) ResolverUtil can't resolve class under osgi enviroment In-Reply-To: <558788006.1212569100253.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43413#action_43413 ] Freeman Fang commented on CAMEL-577: ------------------------------------ new patch uploaded Thanks > ResolverUtil can't resolve class under osgi enviroment > ------------------------------------------------------ > > Key: CAMEL-577 > URL: https://issues.apache.org/activemq/browse/CAMEL-577 > Project: Apache Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 1.3.0 > Reporter: Freeman Fang > Fix For: 1.4.0 > > Attachments: CAMEL-577.patch > > > in method of > protected void find(Test test, String packageName, ClassLoader loader) > it try to load class from directory or jar, it works for standalone mode. > But if the classloader of the method is osgi bundle class loader, it will fail since the getResource(packgename) return neither directory nor jar > for example, package name is org/apache/camel/convert, then what returned is /org/apache/camel/convert, so both loadImplementationsInDirectory and loadImplementationsInJar doesn't work in this case -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.