Return-Path: Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: (qmail 23449 invoked from network); 8 Feb 2011 11:48:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Feb 2011 11:48:08 -0000 Received: (qmail 75155 invoked by uid 500); 8 Feb 2011 11:48:08 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 75115 invoked by uid 500); 8 Feb 2011 11:48:06 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 75106 invoked by uid 99); 8 Feb 2011 11:48:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Feb 2011 11:48:05 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FREEMAIL_FROM,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of cmoulliard@gmail.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Feb 2011 11:47:58 +0000 Received: from jim.nabble.com ([192.168.236.80]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Pmm2j-0003f5-GT for users@openjpa.apache.org; Tue, 08 Feb 2011 03:47:37 -0800 Date: Tue, 8 Feb 2011 03:47:37 -0800 (PST) From: Charles Moulliard To: users@openjpa.apache.org Message-ID: <1297165657505-6003669.post@n2.nabble.com> Subject: openjpa - jndi issue with xbean Spring MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I get the following error Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325) at javax.naming.InitialContext.lookup(InitialContext.java:392) at org.apache.openjpa.ee.JNDIManagedRuntime.getTransactionManager(JNDIManagedRuntime.java:60) when running openjpa on Apache Karaf (OSGI server) where the jndi context has been created using the following spring xbean definition and exported as a osgi service Question : is there a trick which allow openjpa to find the transaction manager ? Here is my spring config : Regards, Charles Moulliard Apache committer Karaf, Camel & ServiceMix -- View this message in context: http://openjpa.208410.n2.nabble.com/openjpa-jndi-issue-with-xbean-Spring-tp6003669p6003669.html Sent from the OpenJPA Users mailing list archive at Nabble.com.