Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7562110357 for ; Fri, 21 Nov 2014 14:13:34 +0000 (UTC) Received: (qmail 89047 invoked by uid 500); 21 Nov 2014 14:13:34 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 89013 invoked by uid 500); 21 Nov 2014 14:13:34 -0000 Mailing-List: contact issues-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 issues@camel.apache.org Received: (qmail 89003 invoked by uid 99); 21 Nov 2014 14:13:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Nov 2014 14:13:34 +0000 Date: Fri, 21 Nov 2014 14:13:34 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-8071) DefaultPackageScanClassResolver unable to handle JAR-Files located at WEB-INF/lib MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-8071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-8071: ------------------------------- Fix Version/s: (was: 2.13.4) > DefaultPackageScanClassResolver unable to handle JAR-Files located at WEB-INF/lib > --------------------------------------------------------------------------------- > > Key: CAMEL-8071 > URL: https://issues.apache.org/jira/browse/CAMEL-8071 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.13.2, 2.13.3 > Environment: Ubuntu 14.04 (64bit) > JBoss EAP 6.3 > Oracle JDK 1.6.0_45 > Reporter: Michael Feichtegger > > We are creating a WebApplication which also provides camel endpoints. > One of the endpoints triggers a bindy action to read records from a fixed-length-record input file. For this purpose we are using camel bindy. > I this conjuction we discovered that there is an issue when trying to locate those classes which are annotated with {{@FixedLengthRecord}} since the are located in a JAR-File. > The project structure looks like this: > - project-ear > -- project-war > --- WEB-INF/lib/project-jar > If we locate the classes directly at WEB-INF/classes/my/package camel is able to discover the annotated classes. > After some debugging we have found out, that {{DefaultPackageScanClassResolver}} is trying to open an InputStream like this: > /opt/jboss-eap/current/standalone/deployments/bindy-ear.ear/bindy-ws-0.0.1-SNAPSHOT.war/WEB-INF/lib/bindy-core-0.0.1-SNAPSHOT.jar/my/package/ > which of of course does not exist. > If you remove in those cases "/my/package" from the File the resolver works perfectly well since {{loadImplementationsInJar}} will be called correctly. -- This message was sent by Atlassian JIRA (v6.3.4#6332)