Hi,
I am new to
EJB. I tried the advice example in HFEJB book. The remote
interface works as expected, but when I try the local interface, the
local client cannot find the JNI name. I specified the name in deploytool
as AdviceLocal. I wonder if anybody else got the same problem. I the
tried the program on WinNT and WinXP Pro and get the same result.
Here is the message:
C:\Java\ejb\projects\advice>
java -cp %CLASSPATH%;AdviceLocalAppClient.jar AdviceLocalClient
javax.naming.NameNotFoundException: AdvisorLocal not found
at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.java:174)
at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.java:146)
at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:63)
at org.omg.stub.com.sun.enterprise.naming._SerialContextProviderImpl_Tie._invoke(Unknown Source)
at com.sun.corba.ee.internal.corba.ServerDelegate.dispatch(ServerDelegate.java:355)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:255)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:84)
at com.sun.corba.ee.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.java:99)
Exception in
thread "main" java.lang.NullPointerException
at AdviceLocalClient.go(AdviceLocalClient.java:29)
at AdviceLocalClient.main(AdviceLocalClient.java:10)