geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin Patel <sppat...@gmail.com>
Subject Re: ejb NameNotFound exception?
Date Tue, 07 Mar 2006 19:19:49 GMT
I just cracked open the war, and it was still using the util class.   
If you change the servlet code to not use the util class and do the  
lookup yourself using COMP_NAME it should work.

- sachin



On Mar 7, 2006, at 1:55 PM, Kristian Rink wrote:

>
> Hi Sachin, world;
>
> and at first, again thanks a lot for the hints.
>
>
> Sachin Patel schrieb:
>> Take a look at the modules at people.apache.org/~sppatel/temp for an
>> xdoclet example.
>>
>
> I had a close eye on the examples you kindly provided me with; here's
> what happens: Both the TestEJB.jar and the TestWeb.war have been
> deployed the way it's supposed to (at least according to Geronimo
> console, they're installed and running). However, the Hello servlet  
> just
> prints out a "?", and geronimo.log hits me with something like that:
>
>
> 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)
>         at org.apache.test.HelloWorldUtil.lookupHome 
> (HelloWorldUtil.java:22)
>         at org.apache.test.HelloWorldUtil.getHome 
> (HelloWorldUtil.java:42)
>         at Hello.doGet(Hello.java:30)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java: 
> 595)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java: 
> 688)
>
>
> Same problem, I guess... :(
> Cheers,
> Kris
>
> -- 
> Kristian Rink   -- Programmierung/Systembetreuung
> planConnect GmbH * Strehlener Str. 12 - 14 * 01069 Dresden
> 0176 24472771 * krink@pm-planc.de


Mime
View raw message