[jboss-user] [JBoss jBPM] - Problem looking up JbpmConfiguration from JNDI

brado do-not-reply at jboss.com
Mon Aug 28 16:33:20 EDT 2006


jBPM 3.1.2: 

I have a sar that uses JbpmService to bind a new JbpmConfiguration instance to JNDI. I have another webapp which tries to look the JbpmConfiguration up from JNDI, but I receive the following Exception:

java.lang.RuntimeException: Unable to complete JNDI lookup on: java:jbpm/JbpmConfiguration.

I have confirmed that the object is being bound to JNDI in JbpmService, and that the JNDI name being looked up is the same as the one being bound. Has anyone encountered this problem? I have tried both sets of code:

InitialContext ctx = new InitialContext();
  | JbpmConfiguration jc = (JbpmConfiguration) ctx.lookup(jndiConfigName); 
  | 

and 

JndiUtil.lookup(jndiConfigName, JbpmConfiguration.class);

but both result in the same error. Help!  I think I am losing my mind...

Thanks,

Brad

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967918#3967918

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967918



More information about the jboss-user mailing list