JBoss Community

Urgent problem: I can't find the java:/ProcessEngine jndi in Jboss5.1.0

created by jiang hongyu in jBPM - View the full discussion

Hi all:

 

    I want to integrate JBPM4.4 and JBoss5.1 and I did the installation base on JBPM 4.4 install guide, but when I finished all steps and start JBoss5.1 application server, I can't find the JNDI binding message for java:/ProcessEngine. After I finished these, I wrote java codes to lookup java:/ProcessEngine and I can't find its jnid from sever.

 

   The JBoss5.1 application started no any error and I also found "2012-07-03 10:19:58,921 331515 INFO  [org.jbpm.jboss.internal.JbpmService] (main:) JbpmService started"

 

   Can anynoe help to identify what's wrong with JBPM and JBoss5.1 integration?

 

Below is error message :

An exception occurred while testing HelloPublisher25: javax.naming.NameNotFoundException: ProcessEngine not bound

javax.naming.NameNotFoundException: ProcessEngine not bound

          at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)

          at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)

          at org.jnp.server.NamingServer.getObject(NamingServer.java:785)

          at org.jnp.server.NamingServer.lookup(NamingServer.java:443)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)

          at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

          at com.lunway.service.client.jms.LunwayBPMExampleLocal.main(LunwayBPMExampleLocal.java:30)

 

 

the source codes:

 



try {



Hashtable<String, String> props = new Hashtable<String, String>();



props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");



props.put(Context.PROVIDER_URL, "127.0.0.1:1099");



props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");



Context context = new InitialContext(props);



ProcessEngine queueFactory = (ProcessEngine)context.lookup("java:/ProcessEngine");




} catch (Exception ex) {



System.err.println("An exception occurred while testing HelloPublisher25: "+ ex);



ex.printStackTrace();


}finally{


}

Reply to this message by going to Community

Start a new discussion in jBPM at Community