Hi all.
I've just moved my beans over to xdoclet, and now when I try my most
basic test client (essentially just an "are you there" lookup), I get
the following exception:
javax.naming.NotContextException
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:133)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:445)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at
fn2.farina.clients.Test.main(Test.java:16)
The lines of code in question are
Context ini = new InitialContext();
Object ref = ini.lookup(LookupHome.JNDI_NAME);
LookupHome home = (LookupHome) PortableRemoteObject.narrow(ref,
LookupHome.class);
where the second line is the one throwing the exception.
I've looked in the generated jboss.xml and ejb-jar.xml, and I can't see
anything obviously wrong. My jndi.properties file is
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=<my host name>:1099/
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.iterfaces
Again, this was working before I moved to xdoclet. Can anyone point me
in the right direction? I've read through the NamingServer code, but I
wasn't familiar enough with the architecture for it to be much help.
Please let me know if you need more information; I'm not sure what else
to provide.
Thanks in advance,
Beau
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Gadgets, caffeine, t-shirts, fun stuff.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user