[JBoss jBPM] - Re: jbpm3.2 on jboss 4.0.5
by rishikumarsharma
Hi gogoasa,
I have setup everything, but now I ma having problem
I looked everywhere and tried but not able to sort this out.
if anyone know please let me know..
13:23:45,750 INFO [HbmBinder] Mapping subclass: org.jbpm.command.TaskInstanceEndC
| ommand -> JBPM_MESSAGE
| 13:23:45,750 ERROR [JobExecutorThread] exception in job executor thread. waiting 5
| 000 milliseconds
| org.hibernate.MappingException: Could not read mappings from resource: org/jbpm/co
| mmand/TaskInstanceEndCommand.hbm.xml
| at org.hibernate.cfg.Configuration.addResource(Configuration.java:476)
| at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:
| 1414)
| at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:
| 1382)
| at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1363)
| at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1339)
| at org.hibernate.cfg.Configuration.configure(Configuration.java:1259)
| at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelp
| er.java:91)
| at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(Db
| PersistenceServiceFactory.java:69)
| at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(D
| bPersistenceServiceFactory.java:91)
| at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersis
| tenceService.java:94)
| at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceSe
| rvice.java:98)
| at org.jbpm.persistence.db.DbPersistenceService.getJobSession(DbPersistenc
| eService.java:281)
| at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:526)
| at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.j
| ava:109)
| at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56)
| Caused by: org.hibernate.PropertyNotFoundException: field not found: taskInstance
| at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAc
| cessor.java:97)
| at org.hibernate.property.DirectPropertyAccessor.getField(DirectPropertyAc
| cessor.java:104)
| at org.hibernate.property.DirectPropertyAccessor.getGetter(DirectPropertyA
| ccessor.java:112)
| at org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:89)
| at org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.j
| ava:77)
| at org.hibernate.mapping.ToOne.setTypeUsingReflection(ToOne.java:58)
| at org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:2022)
| at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:2007)
| at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1897)
| at org.hibernate.cfg.HbmBinder.bindSubclass(HbmBinder.java:779)
| at org.hibernate.cfg.HbmBinder.handleSubclass(HbmBinder.java:2068)
| at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:118)
| at org.hibernate.cfg.Configuration.add(Configuration.java:379)
| at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:418)
| at org.hibernate.cfg.Configuration.addResource(Configuration.java:473)
| ... 14 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040939#4040939
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040939
17 years, 8 months
[JBoss jBPM] - Re: jbpm-console: conditions not working in jBPM 3.2
by dario.oliveros
"kukeltje" wrote :
| You tried his unit test but depoloyed your process to the AS. Did you try to turn his process in an xml and run it in the AS?
|
Not actually. The main reason to run his test case was to double check whether condition from his first test, def 1, would work appropriately. I thought that if I used the same syntax for condition, mine would work as well.
"kukeltje" wrote :
| Besides that. If you think it is a problem in the console, please provide the forms as well. It could even be that the GPD that is used generates a 'corrupt form'.
|
Below are the generated forms.
- task1.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
|
| <!-- the DOCTYPE means we are required to use html for a root element -->
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:tf="http://jbpm.org/jsf/tf"
| xmlns:jbpm="http://jbpm.org/jsf">
|
| <ui:component>
|
| <jbpm:dataform>
|
| <f:facet name="header">
| <h:outputText value="#{taskName}"/>
| </f:facet>
|
| <!-- TASKFORM ROWS -->
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="var1"/>
| </f:facet>
| <h:inputText value="#{var['var1']}" />
| </jbpm:datacell>
|
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Actions"/>
| </f:facet>
| <!-- TASKFORM BUTTONS -->
| <tf:saveButton value="Save"/>
| <tf:cancelButton value="Cancel"/>
| <tf:transitionButton transition="t1" value="t1"/>
| </jbpm:datacell>
|
| </jbpm:dataform>
|
| </ui:component>
|
| </html>
- task2.xhtml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
|
| <!-- the DOCTYPE means we are required to use html for a root element -->
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:tf="http://jbpm.org/jsf/tf"
| xmlns:jbpm="http://jbpm.org/jsf">
|
| <ui:component>
|
| <jbpm:dataform>
|
| <f:facet name="header">
| <h:outputText value="#{taskName}"/>
| </f:facet>
|
| <!-- TASKFORM ROWS -->
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="var1"/>
| </f:facet>
| <h:inputText value="#{var['var1']}" />
| </jbpm:datacell>
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="var2"/>
| </f:facet>
| <h:inputText value="#{var['var2']}" />
| </jbpm:datacell>
|
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Actions"/>
| </f:facet>
| <!-- TASKFORM BUTTONS -->
| <tf:saveButton value="Save"/>
| <tf:cancelButton value="Cancel"/>
| <tf:transitionButton value="Save and Close"/>
| </jbpm:datacell>
|
| </jbpm:dataform>
|
| </ui:component>
|
| </html>
|
"kukeltje" wrote :
| did you compare it with the forms for the example that comes with the starterkit?
|
Nope. If I am not mistaken the forms in the starters kit 3.1.3 are generated automatically. I do not remember generating them using the jPDL designer.
If you need any more info, please let me know.
In the mean time I will try to follow cristim1979 suggestions.
Thanks,
Dário
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040934#4040934
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040934
17 years, 8 months