Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 63225 invoked from network); 20 Jul 2010 03:45:37 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jul 2010 03:45:37 -0000 Received: (qmail 56386 invoked by uid 500); 20 Jul 2010 03:45:36 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 56105 invoked by uid 500); 20 Jul 2010 03:45:35 -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 56096 invoked by uid 99); 20 Jul 2010 03:45:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 03:45:34 +0000 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_FONT_FACE_BAD,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ronsmith42@gmail.com designates 209.85.214.45 as permitted sender) Received: from [209.85.214.45] (HELO mail-bw0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 03:45:27 +0000 Received: by bwz19 with SMTP id 19so2881001bwz.32 for ; Mon, 19 Jul 2010 20:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=3bX9R0b+sWj7OdDSnzoLn1YUUAOvYs0/htJ3CRKVH3A=; b=SijG96uo/l8D/qhRKrPhu8OyMEg8lwiGJGIloCrXooBKob/uum+iOrd2VDf8xm8oqe eOPlRwLtVATe44ibNQgL9Bzx5V7dP3vw5GNW0y6U3Hoam87jJeHJcrRgDfSlRPrZFhlA IkmWbMTnfwxHaMylj6SZy18lZRU5QRHkM6jls= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=JrMJ2yYiYK5ZKA/AV/EcvyTRg6qE6nT+Fe/CyiA8TPVcasxYfjhg+v6u0POAXirVz1 W2M50GGLD4sV2m0IyVy4SShSqXRO1JXVX18RPrQfNMfGOzDBlh2OK9aBq3XVawx2GV6D YsosRgLdRHTVt0bXTPZI4/VfsCCLqIrAoS1mE= Received: by 10.204.103.136 with SMTP id k8mr484190bko.37.1279597507325; Mon, 19 Jul 2010 20:45:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.151.202 with HTTP; Mon, 19 Jul 2010 20:44:47 -0700 (PDT) In-Reply-To: References: <4C450159.5070900@gmail.com> From: Ron Smith Date: Mon, 19 Jul 2010 22:44:47 -0500 Message-ID: Subject: Re: latformTransactionManager not found in 2.4.0 To: users@camel.apache.org Content-Type: multipart/alternative; boundary=0016e6d624f9e13200048bc982f2 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d624f9e13200048bc982f2 Content-Type: text/plain; charset=ISO-8859-1 I have just extracted a minimal example which demonstrates the issue: import org.apache.camel.CamelContext; import org.apache.camel.component.jms.JmsComponent; import org.apache.camel.impl.DefaultCamelContext; import javax.jms.TopicConnectionFactory; import javax.naming.Context; import javax.naming.InitialContext; import java.util.Hashtable; public class DemonstrateBug { public static void main(String[] args) throws Exception { final CamelContext context = new DefaultCamelContext(); final Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.tibco.tibjms.naming.TibjmsInitialContextFactory"); env.put(Context.PROVIDER_URL, "tcp://myjmsserver:65000"); env.put(Context.SECURITY_PRINCIPAL, "myprincipal"); env.put(Context.SECURITY_CREDENTIALS, "mycredentials"); final Context jndiContext = new InitialContext(env); final TopicConnectionFactory topicConnectionFactory = (TopicConnectionFactory) jndiContext.lookup("mytopicfactory"); context.addComponent("tibco", JmsComponent.jmsComponentAutoAcknowledge(topicConnectionFactory)); } } Compile this class with everything from the camel 2.4.0 lib directory (including the optional stuff) plus tibjms.jar, ojdbc14.jar and junit-4.4.jar (these are the same versions of the same jars I am using with 2.3.0 which don't contain any reference to Spring classes or jars). The last line of code throws: Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/transaction/PlatformTransactionManager at DemonstrateBug.main(DemonstrateBug.java:22) On Mon, Jul 19, 2010 at 10:20 PM, Ron Smith wrote: > I just double checked my classpath and rebuilt everything from scratch. > Definitely nothing from Spring 2.x included. > > > On Mon, Jul 19, 2010 at 8:52 PM, Willem Jiang wrote: > >> Hi, >> >> Camel 2.4.0 uses Spring 3.0.3 by default, please make sure your class path >> doesn't have any Spring 2.x jars. >> >> >> Willem >> ---------------------------------- >> Apache Camel, Apache CXF committer >> Open Source Integration http://www.fusesource.com >> Blog http://willemjiang.blogspot.com >> Tiwtter http://twitter.com/willemjiang >> >> Ron Smith wrote: >> >>> After moving from camel 2.3.0 to 2.4.0 I am getting the error: >>> >>> java.lang.ClassNotFoundException: >>> org.springframework.transaction.PlatformTransactionManager >>> >>> when I execute: >>> >>> context.addComponent("myjms", >>> JmsComponent.jmsComponentAutoAcknowledge(topicConnectionFactory)); >>> >>> I am including every JAR in the lib directory including the optional >>> ones. >>> This is code that was working in 2.3.0. >>> >>> >> > --0016e6d624f9e13200048bc982f2--