geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin Patel <sppat...@gmail.com>
Subject EJB lookup problem..
Date Wed, 15 Feb 2006 19:09:03 GMT
Ok, I know I'm missing something but can't seem to find what... I've  
deployed a standalone ejbjar and standalone war that contains and  
ejbref.  When launching the servlet the lookup to my ejb fails...

javax.naming.NameNotFoundException: HelloWorld
	at com.sun.jndi.rmi.registry.RegistryContext.lookup 
(RegistryContext.java:90)
	at com.sun.jndi.rmi.registry.RegistryContext.lookup 
(RegistryContext.java:98)
	at javax.naming.InitialContext.lookup(InitialContext.java:347)

What am I missing??????

In my openejb-jar.xml I have:

<enterprise-beans>
   <session>
    <ejb-name>HelloWorld</ejb-name>
    <jndi-name>HelloWorld</jndi-name>
   </session>
</enterprise-beans>

In my web.xml I have:

<ejb-ref>
     	<ejb-ref-name>ejb/HelloWorld</ejb-ref-name>
     	<ejb-ref-type>Session</ejb-ref-type>
     	<home>org.apache.test.HelloWorldHome</home>
     	<remote>org.apache.test.HelloWorld</remote>
</ejb-ref>

In my geronimo-web.xml I have:

<sys:import>
     <sys:uri>TestEJB/TestEJB</sys:uri>
</sys:import>

<nam:ejb-ref>
     <nam:ref-name>ejb/HelloWorld</nam:ref-name>
     <nam:domain>geronimo.server</nam:domain>
     <nam:server>geronimo</nam:server>
     <nam:application>null</nam:application>
     <nam:module>TestEJB/TestEJB</nam:module>
     <nam:type>StatelessSessionBean</nam:type>
     <nam:name>HelloWorld</nam:name>
</nam:ejb-ref>


- sachin


Mime
View raw message