Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 47607 invoked from network); 5 Jul 2007 13:07:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jul 2007 13:07:10 -0000 Received: (qmail 61440 invoked by uid 500); 5 Jul 2007 13:07:10 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 61256 invoked by uid 500); 5 Jul 2007 13:07:09 -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 61241 invoked by uid 99); 5 Jul 2007 13:07:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 06:07:09 -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.29] (HELO smtp-vbr9.xs4all.nl) (194.109.24.29) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 06:07:03 -0700 Received: from masalembu.xhive.archipel (x-hive.xs4all.nl [80.126.178.42]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id l65D6dm4078521 for ; Thu, 5 Jul 2007 15:06:40 +0200 (CEST) (envelope-from francisco@x-hive.com) From: Francisco Borges To: user@geronimo.apache.org Subject: Geronimo & JUnit problems Date: Thu, 5 Jul 2007 15:08:10 +0200 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707051508.10477.francisco@x-hive.com> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org Hello, I'm trying to add Geronimo support to this database we have. I've started with Geronimo1.2. I'm already able to run our sample application, but I couldn't get any of the unittests to run. Is there some special setup to run junitejb with Geronimo? They all invariably fail with: ============================================== Cannot read the response from the server (OEJP/2.0) : null; nested exception is: java.io.EOFException: javax.naming.AuthenticationException: Cannot read the response from the server (OEJP/2.0) : null; nested exception is: java.io.EOFException at org.apache.openejb.client.JNDIContext.authenticate(JNDIContext.java:178) at org.apache.openejb.client.JNDIContext.getInitialContext(JNDIContext.java:163) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.(InitialContext.java:175) at net.sourceforge.junitejb.EJBTestCase.getEJBTestRunner(EJBTestCase.java:85) at net.sourceforge.junitejb.EJBTestCase.runBare(EJBTestCase.java:59) at net.sourceforge.junitejb.EJBTestCase.run(EJBTestCase.java:48) =============================================== Would this be cause by the fact that with Geronimo I need to explicitly pass the System properties in order to log in, and that JUnitEJB is perhaps not doing that? Would Geronimo2.0 be any better regarding JUnit integration? Cheers, -- Francisco Borges