jaikiran:
I made minor change to my deployment. The EJB jar used to be deployed to JBoss 4.2.2GA as
jar file. Now it is deployed as exploded tree directory structure. I tested the whole
process. Again, for jndi remote lookup, everything is fine, while for jnid local lookup it
has run time error. How ever the error is slightly different:
10:13:40,932 INFO [STDOUT] [2008-06-27 10:13:40,932] ERROR (LocalJndiCallAction.java:76)
- javax.ejb.EJBException: java.lang.RuntimeException:
java.lang.ExceptionInInitializerError
////Here is our jndi.properties file
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost:8080/BessyWeb
/////Here is ServiceLocator.java
public class ServiceLocator {
private ServiceLocator() {
}
public static Object getEJB(String jndiName) {
Object object = null;
try {
InitialContext ctx = new InitialContext();
object = ctx.lookup(jndiName);
} catch (Exception e) {
e.printStackTrace();
}
return object;
}
}
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4161267#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...