[jBPM] New message: "Re: JBPM 4.3 and JPA/Hibernate integration question"
by Flavio Donzé
User development,
A new message was posted in the thread "JBPM 4.3 and JPA/Hibernate integration question":
http://community.jboss.org/message/523318#523318
Author : Flavio Donzé
Profile : http://community.jboss.org/people/flavio.donze
Message:
--------------------------------------------------------------
Hello
I'm having the same problems as Christian stated. We are using JPA transations which worked in version 4.1 and I can't get it running in 4.3 because of the mentioned NPE.
We also have an EntityManager and using the following configurations we provided the connection and transations manager to jBPM:
*jbpm.hibernate.cfg.xml*
<?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="hibernate.dialect">${hibernate.dialect}</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<property name="hibernate.jdbc.batch_size">2000</property>
<property name="javax.persistence.transactionType">JTA</property>
<property name="hibernate.transaction.manager_lookup_class">com.softmodeler.server.persistence.SoftmodelerTransactionManagerLookup</property>
<property name="hibernate.connection.provider_class">com.softmodeler.server.persistence.SoftmodelerConnectionProvider</property>
<mapping resource="jbpm.repository.hbm.xml" />
<mapping resource="jbpm.execution.hbm.xml" />
<mapping resource="jbpm.history.hbm.xml" />
<mapping resource="jbpm.task.hbm.xml" />
<mapping resource="jbpm.identity.hbm.xml" />
</session-factory>
</hibernate-configuration>
Notice the "hibernate.transaction.manager_lookup_class" and the "hibernate.connection.provider_class" properties.
The Spring configuration looked like this, no sessionFactory bean is defined:
<osgi:reference id="transactionManager" interface="org.jencks.GeronimoPlatformTransactionManager"/>
<bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.cfg.SpringConfiguration">
<constructor-arg value="jbpm.cfg.xml"/>
</bean>
<bean id="jbpmProcessEngine" factory-bean="jbpmConfiguration" factory-method="buildProcessEngine"/>
<bean id="jbpmRepositoryService" factory-bean="jbpmProcessEngine" factory-method="getRepositoryService" />
<bean id="jbpmExecutionService" factory-bean="jbpmProcessEngine" factory-method="getExecutionService" />
<bean id="jbpmTaskService" factory-bean="jbpmProcessEngine" factory-method="getTaskService" />
I tried to hack around the code to get it working, made my own SpringProcessEngine without using LocalSessionFactoryBean.
public static ProcessEngine create(ConfigurationImpl configuration) {
MySpringProcessEngine springProcessEngine = null;
ApplicationContext applicationContext = null;
applicationContext = (ApplicationContext) configuration.getApplicationContext();
springProcessEngine = new MySpringProcessEngine();
springProcessEngine.applicationContext = applicationContext;
springProcessEngine.initializeProcessEngine(configuration);
// do not create session, hibernate configuration is set in jbpm.cfg.xml
springProcessEngine.checkDb(configuration);
return springProcessEngine;
}
Well now I'm getting a different NPE, jBPM is trying to access org.springframework.transaction.PlatformTransactionManager, but I'm using org.apache.geronimo.transaction.manager.GeronimoTransactionManager.
What would be the correct way to hock in my TransationManager?
greets and thanks
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523318#523318
14 years, 11 months
[JBoss Tools] New message: "Re: Smooks xml-to-java mapping using wizard"
by Atte Heino
User development,
A new message was posted in the thread "Smooks xml-to-java mapping using wizard":
http://community.jboss.org/message/523307#523307
Author : Atte Heino
Profile : http://community.jboss.org/people/aheino
Message:
--------------------------------------------------------------
Hi again!
I finally got it working. I had to change the compiler compliance level to "1.5". Previously I had 1.6 there as it is the default.
Once changing that setting, everything started to work smoothly.
Also upgrading the JBT to CR2 was pretty interesting process I actually started clean from a new eclipse installation as upgrading hit the brick wall every time.. Well I'm kinda new to eclipse so it's my fault
But now my environment is up and running and I can get back to evaluating this great piece of software!
Thanks for your help and keep up the good work!
-Atte
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523307#523307
14 years, 11 months
[JBoss Portal Development] New message: "Error while installing in the JBOSS tools in 'Available Software'"
by Aiswarya Srinivasan
User development,
A new message was posted in the thread "Error while installing in the JBOSS tools in 'Available Software'":
http://community.jboss.org/message/523301#523301
Author : Aiswarya Srinivasan
Profile : http://community.jboss.org/people/Aiswarya
Message:
--------------------------------------------------------------
While installing in the JBOSS tools in 'Available Software', I am getting the following error:
"
An error occurred while collecting items to be installed
No repository found containing: org.eclipse.datatools.enablement.finfo/osgi.bundle/1.5.1.v200906161800
No repository found containing: org.eclipse.datatools.enablement.oracle/osgi.bundle/1.0.0.v200908130544
No repository found containing: org.eclipse.datatools.enablement.oracle.dbdefinition/osgi.bundle/1.0.100.v200906161800
No repository found containing: org.eclipse.datatools.enablement.oracle.feature/org.eclipse.update.feature/1.7.0.v200908280400-548aAkF77g7XAO9aBB
No repository found containing: org.eclipse.datatools.enablement.oracle.ui/osgi.bundle/1.0.1.v200906020900
No repository found containing: org.apache.oro/osgi.bundle/2.0.8.v200903061218
No repository found containing: org.eclipse.datatools.enablement.ingres/osgi.bundle/1.0.0.v200906111150
No repository found containing: org.eclipse.datatools.enablement.ingres.dbdefinition/osgi.bundle/1.0.0.v200906161800
No repository found containing: org.eclipse.datatools.enablement.ingres.feature/org.eclipse.update.feature/1.7.0.v200908280400-540AkF77g7VBLBPH7
No repository found containing: org.eclipse.datatools.enablement.ingres.ui/osgi.bundle/1.0.0.v200906111150
No repository found containing: org.eclipse.datatools.enablement.sqlite/osgi.bundle/1.0.0.v200906020900
No repository found containing: org.eclipse.datatools.enablement.sqlite.dbdefinition/osgi.bundle/1.0.1.v200906161800
No repository found containing: org.eclipse.datatools.enablement.sqlite.feature/org.eclipse.update.feature/1.7.0.v200908280400-541AkF77g7V9N9e77
No repository found containing: org.eclipse.datatools.enablement.sqlite.ui/osgi.bundle/1.0.0.v200906020900
No repository found containing: org.eclipse.datatools.sqltools.editor.core.ui/osgi.bundle/1.0.0.v200906022302
No repository found containing: org.eclipse.datatools.sqltools.routineeditor.ui/osgi.bundle/1.0.0.v200906022302
No repository found containing: org.eclipse.datatools.sqltools.sql.ui/osgi.bundle/1.0.0.v200906022302
No repository found containing: org.eclipse.equinox.concurrent/osgi.bundle/1.0.0.v20090520-1800"
Could anyone please provide the solution for this error?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/523301#523301
14 years, 11 months