Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 42403 invoked from network); 19 Jul 2007 17:11:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jul 2007 17:11:24 -0000 Received: (qmail 28748 invoked by uid 500); 19 Jul 2007 17:10:57 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 28692 invoked by uid 500); 19 Jul 2007 17:10:57 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 28681 invoked by uid 99); 19 Jul 2007 17:10:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2007 10:10:57 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [69.147.95.85] (HELO smtp122.plus.mail.sp1.yahoo.com) (69.147.95.85) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 19 Jul 2007 10:10:54 -0700 Received: (qmail 83375 invoked from network); 19 Jul 2007 17:10:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=sf9NheAwT2uyQWZzXNcADP5p7jBI3mVR9002aVXOeztlRGrBYV8iUxrgTDyZFTm96bhP6/GCF71B/UtklqQ7CoL5NALxq6bdqzUpo3Xxnlh8Sa1EJsgJL834J0xI1ZW5iQDFTz4ZSAITvE6ko5TfzHO8+pCIyY7Evu06vALcqAU= ; Received: from unknown (HELO ?192.168.1.101?) (david_jencks@67.102.173.8 with plain) by smtp122.plus.mail.sp1.yahoo.com with SMTP; 19 Jul 2007 17:10:33 -0000 X-YMail-OSG: n1E2bksVM1lZHZdzl46t_B39Z2j_XFx2hxOnkYOS6Ywl3VtijJEnPptml3_ACh8YoCEPbGX.vQFMWIiNymGKqrgjRaCMmywNPoeEF_rPbGyNHG2dzA-- Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <11693317.post@talk.nabble.com> References: <11684752.post@talk.nabble.com> <5F8888CF-EDF5-4263-876E-2FEF4E0B9AA3@yahoo.com> <11693317.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <46BE0AD7-515B-4FD2-AB2F-178CE74EB15E@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: configuring Geronimo's EJB port Date: Thu, 19 Jul 2007 10:10:34 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On Jul 19, 2007, at 9:49 AM, DevIn wrote: > > I got the source using the command > svn co https://svn.apache.org/repos/asf/geronimo/server/trunk server > > I've modified the config-substitutions.properties file to add the > local IP > and the display is now OK at start up in the console but I've the > same > error trying to use the JNDI port to look up a ressource. > Perhaps a bad jndi factory is used on the client side (from > openejb-core-2.1.1.jar). I think you should be using the openejb-client jar that's in your geronimo repository in the client, it probably has a version like 3.0- SNAPSHOT I've asked the openejb folks if an openejb 2.x jar should work, I don't know whether or not its expected to, but using the same one as in the server ought to work. thanks david jencks > > This post should be moved in the user forum now. > > Thank for your help. > > > > > djencks wrote: >> >> Did you compile geronimo + openejb from trunk or from the tags used >> in M6-rc1? If you recompiled openejb or are using snapshot versions >> I think your client library is out of sync with the server library. >> >> In any case you can change this port just by editing var/config/ >> config-substitutions.properties, you don't need to recompile >> anything. >> >> thanks >> david jencks >> >> >> On Jul 19, 2007, at 2:48 AM, DevIn wrote: >> >>> Hi there, I've a problem with the latest release (M6-rc1)/jetty, >>> EJB port on 4201 seems to be closed, I'm unable to connect using >>> the folowing code : System.setProperty >>> ("java.naming.factory.initial","org.openejb.client.RemoteInitialCont >>> ex >>> tFactory"); >>> System.setProperty >>> ("java.naming.factory.url.pkgs","org.apache.geronimo.naming"); >>> System.setProperty("java.naming.provider.url","localhost:4201"); >>> InitialContext initialContext = new InitialContext(); >>> System.out.println(initialContext.lookup("java:comp/env/ejb/ >>> TestPersistanceFrameworkEntity")); >>> >>> The following error occurs : >>> javax.naming.AuthenticationException: Cannot deternmine server >>> protocol version: Received null/0.0; nested exception is: >>> java.io.IOException: Unable to read protocol version. >>> Reached the end of the stream. at >>> org.openejb.client.JNDIContext.authenticate(JNDIContext.java:196) >>> Here is my server startup console : Listening on Ports: >>> 1050 127.0.0.1 CORBA Naming Service >>> 1099 0.0.0.0 RMI Naming >>> 1527 0.0.0.0 Derby Connector >>> 2001 127.0.0.1 OpenEJB ORB Adapter >>> 4201 0.0.0.0 OpenEJB Daemon >>> 6882 127.0.0.1 OpenEJB ORB Adapter >>> 8009 0.0.0.0 Jetty Connector AJP13 >>> 8080 0.0.0.0 Jetty SelectChannel Connector HTTP >>> 8443 0.0.0.0 Jetty Connector HTTPS >>> 9999 0.0.0.0 JMX Remoting Connector >>> 61613 0.0.0.0 ActiveMQ Transport Connector >>> 61616 0.0.0.0 ActiveMQ Transport Connector >>> I read in this article Configuring Geronimo's EJB Port that I must >>> recompile the geronimo server to configure this feature, I've >>> sucessfully recompiled the server (note that i had to add xerces in >>> the endorsed lib to run admin console) but I'm not able to find the >>> file 'j2ee-server-plan.xml' to make any change. >>> Thank by advance for your help. >>> View this message in context: configuring Geronimo's EJB port >>> Sent from the Apache Geronimo - Dev mailing list archive at >>> Nabble.com. >> >> >> > > -- > View this message in context: http://www.nabble.com/configuring- > Geronimo%27s-EJB-port-tf4109008s134.html#a11693317 > Sent from the Apache Geronimo - Dev mailing list archive at > Nabble.com. >