[jBPM] - Issue in deploying JBPM5 Web Example in JBoss AS 7.0.2.Final , Oracle 11g
by Arun V G
Arun V G [https://community.jboss.org/people/arunvg] created the discussion
"Issue in deploying JBPM5 Web Example in JBoss AS 7.0.2.Final , Oracle 11g"
To view the discussion, visit: https://community.jboss.org/message/646603#646603
--------------------------------------------------------------
Go stuck with an error in modify and deploy JBPM5 Web Example ( http://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-exa... http://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-exa...)
in Jboss AS7, Oracle 11g environment .
javax.naming.NameNotFoundException: *unable to find a bound object at name 'jdbc/jbpm-ds'*
*But I am not referring 'jdbc/jbpm-ds' at any place in my code*
*My persistence.xml is pointing to java:jboss/datasources/testDS1*
Can anyone please give any hint. Is jdbc/jbpm-ds internally referred from some where ?
Attaching the detailed log below
10:05:00,905 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/services]] (MSC service thread 1-2) StandardWrapper.Throwable: java.lang.RuntimeException: can't start Mina server
at com.sample.taskserver.HumanTaskStartupServlet.init(HumanTaskStartupServlet.java:64) [classes:]
at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_21]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677) [hibernate-entitymanager-3.4.0.GA.jar:]
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) [hibernate-entitymanager-3.4.0.GA.jar:]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at com.sample.taskserver.HumanTaskStartupServlet.init(HumanTaskStartupServlet.java:42) [classes:]
... 11 more
Caused by: org.hibernate.HibernateException: Could not find datasource
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:79) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) [hibernate-entitymanager-3.4.0.GA.jar:]
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) [hibernate-annotations-3.4.0.GA.jar:]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) [hibernate-entitymanager-3.4.0.GA.jar:]
... 15 more
Caused by: *javax.naming.NameNotFoundException: unable to find a bound object at name 'jdbc/jbpm-ds'*
at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83) [btm-2.1.2.jar:]
at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_21]
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75) [hibernate-core-3.3.2.GA.jar:]
... 23 more
10:05:00,920 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/services]] (MSC service thread 1-2) Servlet /services threw load() exception: *javax.naming.NameNotFoundException: unable to find a bound object at name 'jdbc/jbpm-ds'*
at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83) [btm-2.1.2.jar:]
at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_21]
at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) [hibernate-entitymanager-3.4.0.GA.jar:]
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339) [hibernate-core-3.3.2.GA.jar:]
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867) [hibernate-annotations-3.4.0.GA.jar:]
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) [hibernate-entitymanager-3.4.0.GA.jar:]
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) [hibernate-entitymanager-3.4.0.GA.jar:]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
at com.sample.taskserver.HumanTaskStartupServlet.init(HumanTaskStartupServlet.java:42) [classes:]
at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844) [jbossweb-7.0.1.Final.jar:7.0.2.Final]
at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_21]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_21]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]
10:05:00,936 INFO [org.jboss.web] (MSC service thread 1-2) registering web context: /services
10:05:00,998 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployed "example.war"
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646603#646603]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months
[jBPM] - Re: Problem accessing Mapped Input Parameter in domain specific work item handler.
by Josh Kruck
Josh Kruck [https://community.jboss.org/people/krujos] created the discussion
"Re: Problem accessing Mapped Input Parameter in domain specific work item handler."
To view the discussion, visit: https://community.jboss.org/message/646538#646538
--------------------------------------------------------------
My goal is to map the process parameter boolResult into the workItem as a parameter named boolResult. I've tried changing the name of the paramater to something different than boolResult, but the result is the same.
The xml is generated by the eclipse plugin, is that trustworthy?
Here's the snip of the process variables decleration:
{code}
<process processType="Private" isExecutable="true" id="com....jbpm.select_examples" name="select_examples" tns:packageName="com....jbpm" >
<!-- process variables -->
<property id="boolResult" itemSubjectRef="_boolResultItem"/>
<property id="singleResult" itemSubjectRef="_singleResultItem"/>
<property id="multiResult" itemSubjectRef="_multiResultItem"/>
...
{code}
Is it not allowed / reccomended to use the same name in both places?
FWIW I'm able to use boolResult in a resultMapping in this fashion (i.e. boolResult => boolResult).
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646538#646538]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months
[jBPM] - Problem in JPAWorkItemManager when completing a task
by Juan Gago
Juan Gago [https://community.jboss.org/people/juan.gago] created the discussion
"Problem in JPAWorkItemManager when completing a task"
To view the discussion, visit: https://community.jboss.org/message/645997#645997
--------------------------------------------------------------
Hi all!
I'm trying to integrate jBPM 5.2 (workflow with human tasks) in a Spring application with JPA. I am using CommandBasedWSHumanTaskHandler for the persistence of tasks generated in the workflow. Everything works fine except when running the response handler to complete a task (GetCompletedTaskResponseHandler). The applicaton uses the JPAWorkItemManager, but when it tries to complete the task to continue with the flow, error occurs because the manager uses the context stored in the environment of the session (StatefulKnowledgeSessionImpl) to retrieve the WorItemInfo. The problem is because the context has a connection to the EntityManager closed.
What could be the problem?, Will I have misconfigured the session?, What class should be responsible for opening the connection to the EntityManager and store the context in the session environment for JPAWorkItemManager use?
Thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/645997#645997]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months
[jBPM] - Problem accessing Mapped Input Parameter in domain specific work item handler.
by Josh Kruck
Josh Kruck [https://community.jboss.org/people/krujos] created the discussion
"Problem accessing Mapped Input Parameter in domain specific work item handler."
To view the discussion, visit: https://community.jboss.org/message/646519#646519
--------------------------------------------------------------
Hello,
I'm having an isue accessing a mapped input parameter from my work item handler. I'm using jbpm 5.2. Reading the documentation & examples this seems like it should be straight forward, but I must have missed a step somewhere. Could someone please provide a pointer as to where I've gone wrong?
My .wid looks like this:
import org.drools.process.core.datatype.impl.type.StringDataType; [ [ "name" : "MyWorkItem", "parameters" : [ "Text" : new StringDataType(), "OptionXML" : new StringDataType(), ], "displayName" : "MyWorkItem", ] ]
The relevant bpmn looks like this:
When I try to access the mapped parameter boolResult from my workitem handler I do the following:
public final void executeWorkItem(WorkItem wi, WorkItemManager wim) { logger.info("Loading workitem: " + wi.getId()); for (String key : wi.getParameters().keySet()) { logger.info("Parameter: " + key); } logger.info("boolResult = " + wi.getParameter("boolResult"));
In my log I see the values of OptionXML and Text in the parameters hash, but boolResult is not in the hash. Is my expectation that mapped parameters should show up in the work item's parametrs correct? Does anyone see an error
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646519#646519]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months