Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 2422 invoked from network); 12 Jun 2008 05:26:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2008 05:26:21 -0000 Received: (qmail 66488 invoked by uid 500); 12 Jun 2008 05:26:23 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 66420 invoked by uid 500); 12 Jun 2008 05:26:23 -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 66408 invoked by uid 99); 12 Jun 2008 05:26:23 -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 22:26:23 -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 05:25:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 55CFC234C148 for ; Wed, 11 Jun 2008 22:26:00 -0700 (PDT) Message-ID: <1231227092.1213248360349.JavaMail.jira@brutus> Date: Wed, 11 Jun 2008 22:26:00 -0700 (PDT) From: "Claus Ibsen (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=43419#action_43419 ] Claus Ibsen commented on CAMEL-577: ----------------------------------- Leaving open until it is verified that it works in an osgi environment. Freeman are you able to try it out? > 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 > Assignee: Claus Ibsen > 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.