[JBoss jBPM] - jBPM BPEL Hello example
by brunoduarte
I'm having some problems deploying BPEL Hello example!
I get this exception:18:44:36,440 INFO [[/jbpm-bpel]] processDeployServlet: deploying process definition: file=file:/C:/workspace/jbpm-bpel-1.1.Beta2/
| doc/examples/hello/output/hello-process.zip
| 18:44:36,846 INFO [BpelReader] read wsdl definitions: hello.wsdl
| 18:44:36,971 INFO [BpelReader] read bpel process: hello.bpel
| 18:44:37,096 INFO [[/jbpm-bpel]] processDeployServlet: deployed process definition: HelloWorld
| 18:44:53,675 INFO [TomcatDeployer] deploy, ctxPath=/hello, warUrl=.../tmp/deploy/tmp5554hello-exp.war/
| 18:44:54,019 ERROR [[/hello]] Servlet /hello threw load() exception
| org.jbpm.bpel.xml.BpelException: could not retrieve jms destination: caller
| at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.getDestination(PartnerLinkEntriesBuilder.java:148)
| at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.buildEntry(PartnerLinkEntriesBuilder.java:134)
| at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.visit(PartnerLinkEntriesBuilder.java:90)
| at org.jbpm.bpel.integration.jms.PartnerLinkEntriesBuilder.visit(PartnerLinkEntriesBuilder.java:70)
| at org.jbpm.bpel.integration.jms.IntegrationControl.createPartnerLinkEntries(IntegrationControl.java:424)
| at org.jbpm.bpel.integration.jms.IntegrationControl.enableInboundMessageActivities(IntegrationControl.java:295)
| at org.jbpm.bpel.integration.jms.IntegrationServlet.init(IntegrationServlet.java:54)
| at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
| at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
| at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
I don't find anything in the wiki and in the forum! Anyone have any clues?
Thanks in advance,
Bruno
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005949#4005949
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005949
19 years, 3 months
[Advanced Documentation] - JBoss 4.0.4.GA HomeHandle NoInitialContext
by margiorgi
We use some kind of cache of HomeHandle objects in a remote JVM that obtains the Home object using the following code:
Hashtable environment = new Hashtable();
environment.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
environment.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
environment.put(Context.PROVIDER_URL, "jnp://localhost:1099");
InitialContext context;
try {
context = new InitialContext(environment);
Object obj = context.lookup("ejb/EJBTest"); //ejb-name
EJBHome home = (EJBHome)PortableRemoteObject.narrow(obj,EJBTestHome.class); // (1)
...
} catch (NamingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
After (1) we store the HomeHandle of the EJBHome object in that way we can use it in a latter time saving the overhead of the lookup opeartion. BUT we get the following error when we invoke getEJBHome() on the stored HomeHandle object.
Caused by: java.rmi.ServerException: Could not get EJBHome; nested exception is:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at org.jboss.proxy.ejb.handle.HomeHandleImpl.getEJBHome(HomeHandleImpl.java:107)
at communication.serviceLocator.EJBServiceLocator.getService(EJBServiceLocator.java:68)
... 2 more
Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.proxy.ejb.handle.HomeHandleImpl.getEJBHome(HomeHandleImpl.java:102)
... 3 more
Anyone know why it is not working ? Anyone knows if there is a problem using a remote client (that lives outside de Jboss JVM) that stores/retrieve the HomeHandle of an EJBHome object that resides in the JBoss JVM.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005947#4005947
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005947
19 years, 3 months