Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 19947 invoked from network); 12 Jul 2007 12:04:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jul 2007 12:04:07 -0000 Received: (qmail 77922 invoked by uid 500); 12 Jul 2007 12:04:06 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 77904 invoked by uid 500); 12 Jul 2007 12:04:06 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 77889 invoked by uid 99); 12 Jul 2007 12:04:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 05:04:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [194.109.24.31] (HELO smtp-vbr11.xs4all.nl) (194.109.24.31) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 05:04:03 -0700 Received: from masalembu.xhive.archipel (x-hive.xs4all.nl [80.126.178.42]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id l6CC3fFs055392 for ; Thu, 12 Jul 2007 14:03:41 +0200 (CEST) (envelope-from francisco@x-hive.com) From: Francisco Borges To: user@geronimo.apache.org Subject: Re: Geronimo & JUnit problems Date: Thu, 12 Jul 2007 14:05:29 +0200 User-Agent: KMail/1.9.7 References: <200707051508.10477.francisco@x-hive.com> <200707121137.59962.francisco@x-hive.com> <1b5bfeb50707120409x30697804u5fa678674f9f8a42@mail.gmail.com> In-Reply-To: <1b5bfeb50707120409x30697804u5fa678674f9f8a42@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707121405.29276.francisco@x-hive.com> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org On Thursday 12 July 2007, Jacek Laskowski wrote: > On 7/12/07, Francisco Borges wrote: > > On Wednesday 11 July 2007, Jacek Laskowski wrote: > versions. Report issues you run into in JIRA [1] so we can track how > much is done. Report anything you feel is relevant and what might > improve Geronimo and thus user experience with it. > > [1] http://issues.apache.org/jira/browse/GERONIMO Glad you sent this link ;-) I'll submit the issue there. (and I know of at least another couple of other bugs :-/) > > I'm running the tests from Ant, using a reworked version of JunitEJB > > (project on sourceforge, last released Jar is from 2001). > > > > The problem I had was indeed the lack of passing > > System.getProperties() when initializing the context. It is solved > > now. > > I'm glad I can hear it. If I could read what exactly the problem was > and how you solved it it'd be even better. Geronimo1.2 will *fail* if: 1. From an application (outside Geronimo) trying to connect to a EJB in the server; 2. I try to get the InitialContext without explicitly passing the System properties: jndiCntx = new InitialContext(); [java] javax.naming.AuthenticationException: Cannot read the response from the server (OEJP/2.0) : null; nested exception is: [java] java.io.EOFException [java] at org.apache.openejb.client.JNDIContext.authenticate(JNDIContext.java:178) [java] at org.apache.openejb.client.JNDIContext.getInitialContext(JNDIContext.java:163) [java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) [java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) [java] at javax.naming.InitialContext.init(InitialContext.java:223) [java] at javax.naming.InitialContext.(InitialContext.java:175) If I use: InitialContext jndiCntx = new InitialContext(System.getProperties()); The code behaves as expected. I don't know for sure if this is Geronimo's fault or OpenEjb but it certainly happens, and is perfectly reproducible. Cheers, -- Francisco Borges