-
1. Re: Startup problem cause java.lang.ClassNotFoundException: org.drools.persistence.processinstance.WorkItemInfo
pierx83 Aug 12, 2011 9:46 AM (in response to pierx83)I just found out there is a persistence.xml file in the folder jbpm-gwt-console-server.war\WEB-INF\classes\META-INF containing the following rows (as provided by the jBPM installation):
<class>org.drools.persistence.session.SessionInfo</class>
<class>org.drools.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.drools.persistence.processinstance.WorkItemInfo</class>
<class>org.jbpm.process.audit.ProcessInstanceLog</class>
<class>org.jbpm.process.audit.NodeInstanceLog</class>
<class>org.jbpm.process.audit.VariableInstanceLog</class>Of course the SessionInfo and WorkItemInfo are specified in a bad path.
I modified this file and now I have only two rows:
<class>org.drools.persistence.info.SessionInfo</class>
<class>org.drools.persistence.info.WorkItemInfo</class>
I started JBoss removing all of the Drools5.0.1 jars I added before and no error occurs like before but another error arose:
org.hibernate.hql.ast.QuerySyntaxException: ProcessInstanceInfo is not mapped [select processInstanceInfo.processInstanceId from Proc
essInstanceInfo processInstanceInfo where :type in elements(processInstanceInfo.eventTypes)]I think the problem is the missing of a row related to the ProcessInstanceInfo but actually I cannot find it in the Drools jars.
What did you change in this file according to Drools5.2?
Thanks,
Pierpaolo
-
2. Re: Startup problem cause java.lang.ClassNotFoundException: org.drools.persistence.processinstance.WorkItemInfo
pierx83 Aug 12, 2011 9:59 AM (in response to pierx83)Other update for you
I added the followinf rows in the file jboss-5.1.0.GA\server\default\deploy\jbpm-gwt-console-server.war\WEB-INF\classes\META-INF
<class>org.drools.persistence.info.SessionInfo</class>
<class>org.drools.persistence.info.WorkItemInfo</class>
<class>org.jbpm.process.audit.ProcessInstanceLog</class>
<class>org.jbpm.process.audit.NodeInstanceLog</class>
<class>org.jbpm.process.audit.VariableInstanceLog</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
and no error during startup
When I click for http://localhost:8080/gwt-console-server/rs/process/definitions I got the error:
15:55:08,229 WARNING [JDBCExceptionReporter] SQL Error: 23502, SQLState: 23502
15:55:08,229 SEVERE [JDBCExceptionReporter] NULL not allowed for column "DIRTY"; SQL statement:
insert into SessionInfo (id, lastModificationDate, rulesByteArray, startDate, OPTLOCK) values (null, ?, ?, ?, ?) [23502-158]
15:55:08,245 SEVERE [SingleSessionCommandService] Could not commit session
javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not insert: [org.drools.persisten
ce.info.SessionInfo]Why suck a behavior?
I hope this can help someone of you
Regards,
Pierpaolo