Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 8129 invoked from network); 4 Nov 2009 05:18:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 05:18:16 -0000 Received: (qmail 98262 invoked by uid 500); 4 Nov 2009 05:18:16 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 98176 invoked by uid 500); 4 Nov 2009 05:18:15 -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 98165 invoked by uid 500); 4 Nov 2009 05:18:15 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 98160 invoked by uid 99); 4 Nov 2009 05:18:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 05:18:15 +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; Wed, 04 Nov 2009 05:18:13 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B2010234C052 for ; Tue, 3 Nov 2009 21:17:52 -0800 (PST) Message-ID: <1877073803.1257311872711.JavaMail.jira@brutus> Date: Tue, 3 Nov 2009 21:17:52 -0800 (PST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Closed: (CAMEL-522) Problem with scanning Jar files for Converters if application is loaded with webstart In-Reply-To: <1087274871.1210945003467.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen closed CAMEL-522. ----------------------------- Resolution: Fixed > Problem with scanning Jar files for Converters if application is loaded with webstart > ------------------------------------------------------------------------------------- > > Key: CAMEL-522 > URL: https://issues.apache.org/activemq/browse/CAMEL-522 > Project: Apache Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 1.3.0, 1.4.0 > Environment: Windows XP > Reporter: Andreas Kuhtz > Assignee: Claus Ibsen > Fix For: 1.5.0 > > Attachments: ResolverUtil.patch > > > I've encountered a problem with the scanning of jar files with the @Converter annotation if the Jars are loaded with the webstart classloader. Because the URL starts with _http:_ the conversion to a file fails in ResolverUtil. > I've attached a patch that uses an UrlResource if the url starts with _http:_ and this works if the jar-resource has the version information added to the jar file in the JNLP-file (like ). But if the version is added separately (like ) it fails because the classloader returns the name of the jar-file without the version information (like http://....../activemq-core.jar) and this file does not exist. > I'm currently trying if it is possible to check whether the application is started via webstart (there is a class Tool that should only exist in the webstart classloader) and in this case I'll check if the filename of the jar-file is returned correctly. If yes maybe we can provide another patch to get rid of the problem described above. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.