tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John_canada <>
Subject deployed in tomcat, remote client : Cannot connect to server
Date Sun, 19 Jul 2009 22:37:03 GMT


This topic is similar as "deploy EJB on tomcat" in

However applying the above solution could not make a change in my case.

I use tomcat 6, openejb 3.1.1, then copy openejb.war and myejb.jar into
tomcat6\webapps, also copy a file named (it just contains
"openejb.embedded.remotable=true") into tomcat6\conf and myejb.jar\META-INF

the remote client (in same machine) as:

Properties props = new Properties();           
new InitialContext(props).lookup("myejb");

The exception is:

WARNING: Failover: Cannot connect to server(s): ejbd://
Exception: Cannot connect to server 'ejbd://'.  Check that the
server is started and that the specified serverURL is correct..  Trying
javax.naming.NamingException: Cannot lookup '/myejb'. [Root exception is
java.rmi.RemoteException: Unable to connect; nested exception is: 
	java.rmi.RemoteException: Cannot connect to any servers: Server #0:
	at org.apache.openejb.client.JNDIContext.lookup(
	at javax.naming.InitialContext.lookup(

from http://localhost:8080/openejb/viewjndi.jsp, I know the ejb deployed and
it can be invoked (via the web-console and a my servlet deployed in same

Can any one know how to fix it?

View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message