JBPM and Seam on Glassfish
thegrunt Aug 24, 2009 11:15 PMHi everyone,
I'm trying to deploy Seam/JBPM onto Glassfish (by modifying the todo example) and not having success with the JBPM portion and I was wandering if anyone can help. When I click on "Create New Item" on this page http://localhost:8080/todo-war/todo.seam, it throws this exception:
WARNING: executePhase(INVOKE_APPLICATION 5,com.sun.faces.context.FacesContextImpl@63447a) threw exception
javax.faces.FacesException: {todoList.createTodo}: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpmContext
...
Caused by: javax.faces.FacesException: {todoList.createTodo}: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpmContext
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
...
Caused by: javax.faces.el.EvaluationException: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpmContext
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
...
Caused by: java.lang.IllegalStateException: jBPM transaction management is enabled, disable in jbpm.cfg.xml
I've tried placing jbpm.cfg.xml in every single place imaginable, but nada. Here's the file contents.
<code>
<jbpm-configuration>
<jbpm-context>
<service name="persistence">
<factory>
<bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
<field name="isTransactionEnabled"><false/></field>
</bean>
</factory>
</service>
<service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
<service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
<service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
<service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
<service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
</jbpm-context>
<string name='resource.hibernate.cfg.xml' value='jbpm.hibernate.cfg.xml' />
</jbpm-configuration>
</code>
My environment:
J2EE Server: Glassfish 2.1 (bundled with Sun java installer, located in c:/Sun/SDK)
Seam Version: jboss-seam-2.1.2
Been over a year since I worked with Seam and I would love to promote it's usage in the current project I'm on. Would anyone know a remedy for this?
Also if anyone happens to have a complete example EAR deployment for SEAM/JBPM/DROOLS that one could just drop into Glassfish and be willing to send it to me, I would be so greatful.
Thanks!
I'm trying to deploy Seam/JBPM onto Glassfish (by modifying the todo example) and not having success with the JBPM portion and I was wandering if anyone can help. When I click on "Create New Item" on this page http://localhost:8080/todo-war/todo.seam, it throws this exception:
WARNING: executePhase(INVOKE_APPLICATION 5,com.sun.faces.context.FacesContextImpl@63447a) threw exception
javax.faces.FacesException: {todoList.createTodo}: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpmContext
...
Caused by: javax.faces.FacesException: {todoList.createTodo}: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpmContext
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:107)
...
Caused by: javax.faces.el.EvaluationException: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.bpm.jbpmContext
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
...
Caused by: java.lang.IllegalStateException: jBPM transaction management is enabled, disable in jbpm.cfg.xml
I've tried placing jbpm.cfg.xml in every single place imaginable, but nada. Here's the file contents.
<code>
<jbpm-configuration>
<jbpm-context>
<service name="persistence">
<factory>
<bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
<field name="isTransactionEnabled"><false/></field>
</bean>
</factory>
</service>
<service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
<service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
<service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
<service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
<service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
</jbpm-context>
<string name='resource.hibernate.cfg.xml' value='jbpm.hibernate.cfg.xml' />
</jbpm-configuration>
</code>
My environment:
J2EE Server: Glassfish 2.1 (bundled with Sun java installer, located in c:/Sun/SDK)
Seam Version: jboss-seam-2.1.2
Been over a year since I worked with Seam and I would love to promote it's usage in the current project I'm on. Would anyone know a remedy for this?
Also if anyone happens to have a complete example EAR deployment for SEAM/JBPM/DROOLS that one could just drop into Glassfish and be willing to send it to me, I would be so greatful.
Thanks!