Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 34871 invoked from network); 9 Jul 2010 16:29:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Jul 2010 16:29:48 -0000 Received: (qmail 9506 invoked by uid 500); 9 Jul 2010 16:29:48 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 9448 invoked by uid 500); 9 Jul 2010 16:29:47 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 9440 invoked by uid 99); 9 Jul 2010 16:29:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jul 2010 16:29:47 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Philip.Glebow@blackrock.com designates 64.18.2.20 as permitted sender) Received: from [64.18.2.20] (HELO exprod7og121.obsmtp.com) (64.18.2.20) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jul 2010 16:29:36 +0000 Received: from source ([206.169.31.72]) (using TLSv1) by exprod7ob121.postini.com ([64.18.6.12]) with SMTP ID DSNKTDdOW3XBus4R0gKrdKO7M0Jcu4MLbmz+@postini.com; Fri, 09 Jul 2010 09:29:16 PDT Received: from blkrmls001.blackrock.com (blkrmls001.blackrock.com [45.8.20.15]) by blzrmls001.blackrock.com (8.13.8/8.13.8) with ESMTP id o69GW7pi022192 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 9 Jul 2010 12:32:07 -0400 (EDT) Received: from calnte2k132.insidelive.net (localhost [127.0.0.1]) by blkrmls001.blackrock.com (8.13.8/8.13.8) with ESMTP id o69GTDV7010364 for ; Fri, 9 Jul 2010 12:29:13 -0400 (EDT) Received: from calnte2k050.insidelive.net ([69.52.104.73]) by calnte2k132.insidelive.net with Microsoft SMTPSVC(6.0.3790.3959); Fri, 9 Jul 2010 09:29:12 -0700 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Camel 2.3.0 & Spring 3.0.3 Date: Fri, 9 Jul 2010 09:29:12 -0700 Message-ID: <1B234078CCD4AE40B0CB501B28A610C9B616C3@calnte2k050.insidelive.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Camel 2.3.0 & Spring 3.0.3 Thread-Index: Acsfg8oDB2JQyfVeSwWjIPTSti39iw== From: "Glebow, Philip" To: X-OriginalArrivalTime: 09 Jul 2010 16:29:12.0879 (UTC) FILETIME=[DD935BF0:01CB1F83] X-TM-AS-Product-Ver: SMEX-8.0.0.1226-6.000.1038-17496.000 X-TM-AS-Result: No--5.173400-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-Virus-Checked: Checked by ClamAV on apache.org I had some difficulty getting Camel 2.3.0 and Spring 3.0.3 to work together when deploying as a WAR file built by Maven. I've resolved the problem and wanted to share the solution with the group: * When deploying as a WAR file under Tomcat, I received several different error messages. For example, the method getServletContext() could not be found. * The cause was a different version of Spring on the classpath. * To resolve the problem, I edited my POM file to exclude the Spring dependencies for camel-core and camel-jms. * I added the latest version of the excluded dependencies in my POM This resolved the problem and I'm now able to deploy to Tomcat. Phil === Here is the snippet from my POM: org.apache.camel camel-jms ${camel.version} spring-jms org.springframework spring-tx org.springframework spring-beans org.springframework spring-core org.springframework spring-context org.springframework org.apache.camel camel-spring ${camel.version} spring-tx org.springframework spring-aop org.springframework spring-context org.springframework org.springframework spring-webmvc 3.0.3.RELEASE compile org.springframework spring-web 3.0.3.RELEASE pom compile org.springframework spring-context-support 3.0.3.RELEASE compile org.springframework spring-tx 3.0.3.RELEASE compile org.springframework spring-jms 3.0.3.RELEASE compile THIS MESSAGE AND ANY ATTACHMENTS ARE CONFIDENTIAL, PROPRIETARY, AND MAY BE PRIVILEGED. If this message was misdirected, BlackRock, Inc. and its subsidiaries, ("BlackRock") does not waive any confidentiality or privilege. If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of BlackRock, unless the author is authorized by BlackRock to express such views or opinions on its behalf. All email sent to or from this address is subject to electronic storage and review by BlackRock. Although BlackRock operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed.