[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-3858) Creating jBPM process with a jboss tools created Seam project doesn't work, Hibernate problems
Juan Ignacio S?nchez Lara (JIRA)
jira-events at lists.jboss.org
Tue Dec 23 08:23:54 EST 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juan Ignacio S?nchez Lara closed JBSEAM-3858.
---------------------------------------------
Resolution: Rejected
I'm really sorry. It's perfectly documented at the reference manual (@29.7). Quite embarrasing...
> Creating jBPM process with a jboss tools created Seam project doesn't work, Hibernate problems
> ----------------------------------------------------------------------------------------------
>
> Key: JBSEAM-3858
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3858
> Project: Seam
> Issue Type: Bug
> Components: BPM
> Affects Versions: 2.1.0.SP1, 2.1.1.CR1
> Environment: JBoss Application Server 4.2.3 GA, Eclipse Ganymede, JBoss Tools 3.0.0.beta1
> Reporter: Juan Ignacio S?nchez Lara
>
> I've created a Seam Web Project at Eclipse with JBoss Tools 3.0.0.beta1. I can deploy and run it at JBoss Application Server ok, I can even create a new entity CRUD perfectly.
> My problem comes when I create a jBPM process. I create it with JBoss Tools also and insert it at components.xml with the following code:
> <bpm:jbpm>
> <bpm:process-definitions>
> <value>proyecto/processdefinition.xml</value>
> </bpm:process-definitions>
> </bpm:jbpm>
> When I do it it first asked for a missing hibernate.cfg.xml. I created an almost empty one:
> <?xml version='1.0' encoding='utf-8'?>
> <!DOCTYPE hibernate-configuration PUBLIC
> "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
> "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
> <hibernate-configuration>
> <session-factory>
> <property name="connection.datasource">java:/incidosDatasource</property>
> <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml" />
> </session-factory>
> </hibernate-configuration>
> The mapping was also needed. Without it Hibernate couldn't find a jBPM named query.
> Nevertheless it keeps throwing an exception I can't fix:
> Caused by: java.lang.RuntimeException: could not deploy a process definition
> at org.jboss.seam.bpm.Jbpm.installProcessDefinitions(Jbpm.java:296)
> ...
> Caused by: java.lang.IllegalArgumentException: Parameter name does not exist as a named parameter in [
>
> select pd
> from org.jbpm.graph.def.ProcessDefinition as pd
> where pd.name = :name
> order by pd.version desc
>
> ]
> at org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:356)
> at org.hibernate.impl.AbstractQueryImpl.setString(AbstractQueryImpl.java:643)
> at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:151)
> ... 154 more
> 17:55:17,859 ERROR [StandardContext] Error listenerStart
> I've tried both 2.1.1.CR1 and 2.1.0.SP1, same result. It happens both with testing and at deploy time.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list