After trying every conceivable combination of JVM parameters and JNDI
name-guess permutations, I'm at the end of my rope looking for the gotchya
that's got me.
So far, the best I've been able to do is as follows:
java -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory -
Djava.library.path=/<path-to>/jni/ -Xmx512m -Xms512m -
Djava.naming.provider.url=iiop://<app-server-host>:3700 -jar
/<path-to>/myjar.jar
Following nc, it's apparent that the connection is being received by GF, but
the server logs no information about what goes wrong next despite setting
the "naming" log level to "FINEST".
Here's the StackTrace:
Exception in thread "main" javax.naming.NameNotFoundException [Root
exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:
omg.org/CosNaming/NamingContext/NotFound:1.0]
at com.sun.jndi.cosnaming.ExceptionMapper.mapException(
ExceptionMapper.java:44)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:484)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:523)
at com.sun.jndi.cosnaming.CNCtx.lookup(CNCtx.java:501)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at dev.prolinks.client.MethodProcessorAbst.<init>(
MethodProcessorAbst.java:72)
at dev.prolinks.client.FastProcessor.<init>(FastProcessor.java:25)
at dev.prolinks.client.FastCalculatorClient.main(
FastCalculatorClient.java:37)
Caused by: org.omg.CosNaming.NamingContextPackage.NotFound: IDL:
omg.org/CosNaming/NamingContext/NotFound:1.0
at org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read(
NotFoundHelper.java:72)
at org.omg.CosNaming._NamingContextExtStub.resolve
(_NamingContextExtStub.java:406)
at com.sun.jndi.cosnaming.CNCtx.callResolve(CNCtx.java:470)
... 6 more
I've found a bit of info in the SJAS 7.1 bugtracker, but nothing recent.
Thanks in advance for any interest.