I am new to ejb development. I have successfully deployed a helloworld ejb component on Jrun server, then I started running the ejb client to invoke the ejb method. But there are always errors.
When running the ejb client class on the local machine as follows:
java -Djava.security.policy=java.policy example1.HelloWorldClient
I got an exception of java.lang.NoClassDefFoundError: example1/HelloWorldClient. In the client class source code, the initialcontextfactory and providerurl properties are set to jrun.naming.JRunContextFactory and localhost:2918.
When running the ejb client class from a remote host as
above, I got another exception of java.lang.ClassNotFoundException: jrun.naming.JRunContextFactory.But the providerurl property has changed to 126.96.36.199:2918 which is the url of the Jrun server.
I really don't what hell is going on, please give me some hint.