geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DevIn <dri...@free.fr>
Subject configuring Geronimo's EJB port
Date Thu, 19 Jul 2007 09:48:26 GMT

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.RemoteInitialContextFactory");

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 
http://www.ibm.com/developerworks/opensource/library/os-ag-swing/#configuring
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: http://www.nabble.com/configuring-Geronimo%27s-EJB-port-tf4109008s134.html#a11684752
Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.

Mime
View raw message