-
1. Re: Advice on jBPM without jBOSS AS (with Tomcat)
srbean Feb 5, 2014 1:26 PM (in response to srbean)I have made some progress, but it seems that I am unable to start the application. I have Tomcat 7.0.50, kie-wb-distribution-wars-6.0.1.Final-tomcat7.war in the webapps directory, I have added the jar files and updated the setup as pointed out here.
This is the exception I am getting: Any help will be appreciated
Feb 05, 2014 12:50:26 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.jboss.weld.environment.servlet.Listener
org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [UserGroupInfoProducer] with qualifiers [@Selectable] at injection point [[field] @Inject @Selectable private org.kie.workbench.backend.ApplicationScopedProducer.userGroupInfoProducer]. Possible dependencies [[Managed Bean [class org.jbpm.kie.services.cdi.producer.JAASUserGroupInfoProducer] with qualifiers [@Any @Selectable], Managed Bean [class org.jbpm.kie.services.cdi.producer.DefaultUserGroupInfoProducer] with qualifiers [@Any @Selectable]]]
at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:314)
.... snipped ....
ETA: Read some more about the ambiguous dependencies and updated the beans.xml and commented out class org.jbpm.kie.services.cdi.producer.DefaultUserGroupInfoProducer and now I have KIE workbench on tomcat. .. now for further experimentation
-
2. Re: Advice on jBPM without jBOSS AS (with Tomcat)
srbean Feb 5, 2014 5:57 PM (in response to srbean)It feels like I am talking to myself Anyway, this will help someone else if I don't get any answers!
So I tried to run unit test in eclipse and tried to create a process instance on the kie-wb. (That is another question, the tomcat war, is that kie-workbench as the name suggests or is that jbpm-console? Salaboy's post here has made some differentiation between the two.)
I tried to add the plugins to eclipse using the blog post -> Eclipse plug-in Installation for jBPM5
Of course I used latest jar files. So I can see the bpmn file in bpmn2 process editor. I imported evaluation sample in eclipse, added external jars to the project (all the jar files from jbpm.final.1.0.1.bin.zip) and all errors went away. However, when I run the unit test, I get an error -
2014-02-05 17:12:50,795 [main] ERROR Wed Feb 05 17:12:50 EST 2014: Error when creating task on task server for work item id 1. Error reported by task server: Unknown entity: org.jbpm.services.task.audit.TaskEventImpl
java.lang.IllegalArgumentException: Unknown entity: org.jbpm.services.task.audit.TaskEventImpl
at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:878) ~[hibernate-entitymanager-4.2.0.SP1.jar:4.2.0.SP1]
at org.jbpm.services.task.persistence.JPATaskPersistenceContext.persist(JPATaskPersistenceContext.java:450) ~[jbpm-human-task-core-6.0.1.Final.jar:6.0.1.Final]
So then I tried to deploy the process evaluation on my jbpm console. I was successful in that. Then I tried to create a process instance. Here it failed. An errors comes up for a second and goes away .. It says "Process Instances failed to start org.hibernate.exception.genericJDBCexception .could not prepare statement
On the tomcat window, it spits out an error.
[05/02/14 05:55:36:036 EST] ERROR spi.SqlExceptionHelper: error enlisting a Jdbc
ConnectionHandle of a JdbcPooledConnection from datasource jdbc/jbpm in state AC
CESSIBLE with usage count 1 wrapping a JDBC LrcXAConnection on conn1778: url=jdb
c:h2:file:~/jbpm user=SA on a JDBC LrcConnectionHandle on a JDBC LrcXAResource i
n state NO_TX
So neither example works for me. As always any help is greatly appreciated!
-
3. Re: Advice on jBPM without jBOSS AS (with Tomcat)
swiderski.maciej Feb 7, 2014 1:25 AM (in response to srbean)when it comes to tomcat there are no special needs for the application itself. You can take a look at jbpm console (kie-wb) that provides tomcat 7 version of the application that provides complete modeling and execution environment. See details about configuration for kie-wb on tomcat here.
HTH
-
4. Re: Advice on jBPM without jBOSS AS (with Tomcat)
swiderski.maciej Feb 7, 2014 1:27 AM (in response to srbean) -
5. Re: Advice on jBPM without jBOSS AS (with Tomcat)
zhoushaohe Mar 26, 2014 10:47 PM (in response to srbean)Have you resolved ? I encontered this problem too , any help , thank you