[jboss-user] [JBoss jBPM] - deployment problem with additional hibernate classes
Hi, with jbpm-3.2.6.SP1, JBoss AS 4.2.3.GA I got a simple process working in a unit test and on the application server where it can be examined in the jbpm-console. Problems arise however as soon as I try to use my own hibernate classes with the jbpm hibernate session like this: | Session session = context.getJbpmContext().getSession(); | UrlLock lock = new UrlLock(url.toString(), this, new Date()); | session.save(lock); | After adding an appropriate hibernate mapping to a local hibernate.extra.hbm.xml this works in my unit tests (run from within Eclipse) but it's not working on the server since when the process gets to this line an exception is thrown: anonymous wrote : | Error signalling token: An exception of type org.jbpm.graph.def.DelegationException was thrown. The message is: Unknown entity: testprocess.UrlLock | I tried the following fixes: 1) add hibernate.extra.hbm.xml to the deployed par archive: Did not work since it is obviously ignored by hibernate. 2) copy hibernate.extra.hbm.xml to jbpm/jbpm-service.sar/ in the JBoss deploy directory: Results in the following error: anonymous wrote : | DEBUG [javax.enterprise.resource.webcontainer.jsf.renderkit] Value to be rendered Error loading process list | DEBUG [javax.enterprise.resource.webcontainer.jsf.renderkit] component.getValue() returned : An exception of type org.hibernate.InvalidMappingException was thrown. The message is: Could not parse mapping document from resource hibernate.extra.hbm.xml | Unfortunately there are no more detailed logs from the renderkit. I do not believe that it's a simple parse error since the same hibernate.extra.hbm.xml did work in the unit test. Might this error occur due to the fact that hibernate has no access to the UrlLock.class file (although the table jbpm_bytearray contains an entry classes/testprocess/UrlLock.class)? What is the best approach for using additional hibernate classes from within a process? Any advice is appreciated. Regards Volker View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4219177#4219177 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4219177 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Deployment Problem From Example
hi all, i am newbie with jbpm, i found this http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmGettingStarted for example, i have done everything but i can't deploy project anonymous wrote : | Right click on the StartersProcess?.par folder in the left hand project window, and select Deploy Process Archive option. The Process Deployment dialog is displayed (Figure 55). | i can't found Deploy Process Archive option. environment : 1. jbpm-jpdl-3.2.GA 2.JBoss Eclipse IDE 2.0.0.Beta2 3. OS - Suse Linux is this eclipse bug or i did something incorrect ? _ Regards, Paata. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4059818#4059818 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059818 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Deployment problem
Hello, I encounter a problem : I use jBoss IDE 1.0.6 GA and jBPM 3.2b When i try to deploy my process, eclipse try on : localhost:8080/jbpm/upload i want to have : localhost:8080/jbpm-console/upload On the jBoss IDE 1.6.0 GA, i don't find the Server Deployer field... Thanks. PS : Sorry for my bad english, i'm not english ;) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4044978#4044978 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4044978 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - deployment problem
If some one can help me, I have a problem when I try to deploy my process using this code public static void main(String[] args){ jbpmConfiguration = JbpmConfiguration.parseResource(hibernate.cfg); ProcessDefinition P = ProcessDefinition.parseXmlResource(simple/processdefinition.xml); JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); try { jbpmContext.deployProcessDefinition(P); } finally { jbpmContext.close(); } I have this error xception in thread main org.jbpm.jpdl.JpdlException: [[ERROR] couldn't parse process definition] at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163) at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172) at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153) at deploypackage.deploy.main(deploy.java:38) 15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.msg.wait.timout' 15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size' 15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'mail.smtp.host' 15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory' 15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver' 15:39:50,171 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver' 15:39:50,171 [main] DEBUG JbpmConfiguration : loading specific configuration... 15:39:50,249 [main] ERROR JpdlXmlReader : couldn't parse process definition org.dom4j.DocumentException: null Nested exception: null at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:57) at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:138) at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172) at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153) at deploypackage.deploy.main(deploy.java:38) Nested exception: View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4019396#4019396 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019396 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Deployment problem after changing workflow in process design
The process was modified to simply add an additional node in the workflow. The old workflow would deploy just fine. But once we added in this new node, we get the errors below. I have attached the workflow after the error log. If we revert back to the old work flow, it deploys fine. In addition, it deploys fine on a local machine, but not on a remote machine. But the old workflow deploys perfectly on both. anonymous wrote : 2007-01-22 12:17:43,315 564132 INFO [STDOUT] (http-0.0.0.0-8080-Processor25:) org.hibernate.MappingException: Named query not known: GraphSession.findLatestProcessDefinitionQuery | at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:48) | at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1203) | at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:150) | at org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:67) | at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173) | at org.jbpm.webapp.servlet.UploadServlet.doDeployment(UploadServlet.java:94) | at org.jbpm.webapp.servlet.UploadServlet.handleRequest(UploadServlet.java:81) | at org.jbpm.webapp.servlet.UploadServlet.service(UploadServlet.java:50) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:55) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) | at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) | at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) | at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) | at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:66) | at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:162) | at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) | at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) | at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) | at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) | at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) | at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) | at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) | at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) | at