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.RemoteInitialContex
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.