Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 32895 invoked from network); 18 Dec 2010 18:14:25 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Dec 2010 18:14:25 -0000 Received: (qmail 64713 invoked by uid 500); 18 Dec 2010 18:14:25 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 64637 invoked by uid 500); 18 Dec 2010 18:14:24 -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 64629 invoked by uid 500); 18 Dec 2010 18:14:24 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 64626 invoked by uid 99); 18 Dec 2010 18:14:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Dec 2010 18:14:24 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Dec 2010 18:14:22 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oBIIE0Pv019261 for ; Sat, 18 Dec 2010 18:14:01 GMT Message-ID: <17133785.195881292696040962.JavaMail.jira@thor> Date: Sat, 18 Dec 2010 13:14:00 -0500 (EST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-3438) JAXBDataFormatter should using Spring ApplicationContext's classLoader explicitly In-Reply-To: <4348128.180381292607363096.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-3438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972843#action_12972843 ] Claus Ibsen commented on CAMEL-3438: ------------------------------------ I have modified JaxbDataFormat a bit more to let it leverage the ApplicationContext classloader if it was present. I also optimized and removed the need for synchronization to initialize various pieces as we can do this in start now. trunk: 1050688. > JAXBDataFormatter should using Spring ApplicationContext's classLoader explicitly > --------------------------------------------------------------------------------- > > Key: CAMEL-3438 > URL: https://issues.apache.org/jira/browse/CAMEL-3438 > Project: Camel > Issue Type: Bug > Affects Versions: 2.4.0 > Reporter: xuhongbo > Attachments: JaxbDataFormat.java > > > JAXBDataFormatter now using JAXBContext.newInstance(path) to create JAXBContext, > but this will using Thread's context classLoader. > this may causing un-expected class or resource not found exceptions; -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.