Hi!

I can load an EJB Home from JBoss using jndi.lookup("myBean").

However, I can't do this with jndi.lookup("java:comp/env/ejb/myBean");

By browsing thru the old archive, I found that a file called jboss-web.xml
is required to do so.

So I embed a jboss-web.xml.

When I start tomcat up, it complains:

javax.naming.NameNotFoundException: comp not bound
        at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
        at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
        at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:295)
        at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
        at javax.naming.InitialContext.lookup(InitialContext.java:350)
        at
org.jboss.tomcat.naming.JbossWebXmlReader.processJbossWebXmlFile(JbossWebXmlReader.java:72)
        at
org.jboss.tomcat.naming.JbossWebXmlReader.contextInit(JbossWebXmlReader.java:58)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

Can any help me?

Thanks

Arion


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to