[jboss-user] [jBPM] - Urgent problem: I can't find the java:/ProcessEngine jndi in Jboss5.1.0
jiang hongyu
do-not-reply at jboss.com
Mon Jul 2 22:47:18 EDT 2012
jiang hongyu [https://community.jboss.org/people/aquila_bj] created the discussion
"Urgent problem: I can't find the java:/ProcessEngine jndi in Jboss5.1.0"
To view the discussion, visit: https://community.jboss.org/message/745596#745596
--------------------------------------------------------------
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
[https://community.jboss.org/message/745596#745596]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120702/a07ea67b/attachment.html
More information about the jboss-user
mailing list