[jboss-user] [JNDI/Naming/Network] - 4.0.4 to 4.0.5 = javax.naming.NameNotFoundException
iktuz
do-not-reply at jboss.com
Thu Oct 26 15:54:05 EDT 2006
Hi All,
I was using jboss-4.0.4.GA and today I have installed version .5 The problem is that I am having problems to make lookups. All the code below works fine with .4 version but crashs NameNotFoundException with .5
Here is the service interface/name definition:
| //...
| public interface UserService {
| public static final String NAME = "service.user.UserService";
| //...
|
Here is my Stateless EJB3:
| //...
| @Stateless(name = UserService.NAME)
| @Remote(UserRemote.class)
| @Local(UserLocal.class)
| public class UserServiceImpl implements UserRemote, UserLocal {
| //...
|
Here is my lookup call:
| //...
| InitialContext ctx = new InitialContext(prop);
| service = ctx.lookup("service/" + UserService.NAME + "/remote");
|
Finally my application.xml:
| <application>
| <display-name>MyApplication</display-name>
| <module>
| <web>
| <web-uri>service.war</web-uri>
| <context-root>/service</context-root>
| </web>
| </module>
| <module>
| <web>
| <web-uri>MyApplication.war</web-uri>
| <context-root>/MyApplication</context-root>
| </web>
| </module>
| <module>
| <ejb>service.jar</ejb>
| </module>
| <module>
| <java>lib/Connection.jar</java>
| </module>
| <module>
| <java>lib/ojdbc14.jar</java>
| </module>
| <module>
| <java>lib/persistence.jar</java>
| </module>
|
| </application>
|
Here is the more detailed error:
| 2006-10-26 16:31:37,159 INFO [STDOUT] 26/10/06 16:31:37 ERROR [http-0.0.0.0-8080-1] org.apache.commons.logging.impl.Log4JLogger (Log4JLogger.java:119) - Servlet.service() for servlet action threw exception
| javax.naming.NameNotFoundException: service not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
| at sun.rmi.transport.Transport$1.run(Transport.java:153)
| at java.security.AccessController.doPrivileged(Native Method)
| at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
| at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
| at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
| at java.lang.Thread.run(Thread.java:595)
| at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
| at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
| at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
| at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
|
What have I missed here? Please, help me to fix that!
Best Regards,
iktuz
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981118#3981118
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981118
More information about the jboss-user
mailing list