geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: EJB lookup problem..
Date Wed, 15 Feb 2006 19:27:03 GMT
I doubt the <module>TestEJB/TestEJB</module> is correct.  Is this  
really the J2EEModule key of the ejb's object name?  I always end up  
looking in geronimo.log for the correct name.  You might try  
<module>*</module>

We are planning to make this easier in the configid branch so you  
only have to specify the <name>HelloWorld</name> part.

thanks
david jencks

On Feb 15, 2006, at 11:09 AM, Sachin Patel wrote:

> 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