[jBPM] New message: "Does jpdl support boolean operations"
by Andrew Rampulla
User development,
A new message was posted in the thread "Does jpdl support boolean operations":
http://community.jboss.org/message/522796#522796
Author : Andrew Rampulla
Profile : http://community.jboss.org/people/xandrewrampulla
Message:
--------------------------------------------------------------
I was trying to do something very simple. I wanted one of the conditions in my workflow to be a logical and of a couple of things. When I put this in, the workflow seemed to abort, but I can't tell why. Does anything look wrong with the following? And if not, does anyone have any suggestions on the best way to turn on logging to find the problem?
<decision name="useX">
<transition name="IsXAllocated" to="IsXAllocated">
<condition>#{(true==true) && (false==false)}</condition>
</transition>
<transition to="BuildResponse" name="BuildResponse"></transition>
</decision>
Thanks
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522796#522796
14 years, 4 months
[JBoss Tools] New message: "Re: getting up and running with Eclipse Galileo + JBoss Tool for seam project"
by Chris Eska
User development,
A new message was posted in the thread "getting up and running with Eclipse Galileo + JBoss Tool for seam project":
http://community.jboss.org/message/522794#522794
Author : Chris Eska
Profile : http://community.jboss.org/people/chec69
Message:
--------------------------------------------------------------
> snjeza wrote:
>
> The "information_schema.system_sequences" table/view doesn't exist in PostgreSQL.
> Check if your hibernate dialect is org.hibernate.dialect.PostgreSQLDialect (review your persistence.xml).
> Another problem could be caused by using the SEQUENCE generator in which case you need to create your SEQUENCE table.
Hey Thanks for sending me on the right path, just had to do a little more research and learned a bit more of how everything its connected on the back
Indeed it was the org.hibernate.dialect.PostgreSQLDialect I was using the default, but even modifying, the property I was getting the exception
after reading a bit more i decided to mod the whole persistence.xml file and looked for some examples at google and founded this
> http://stackoverflow.com/questions/1061091/persistence-xml-and-osgi-equinox
i know its not for jboss seam but it does contain info of how the persistence.xml should be
here is the result:
> ( ! this is with in the persistence.xml file)
>
> <properties>
>
> <property name="hibernate.hbm2ddl.auto" value="create-drop" /> <!-- drop/create tables @startup, drop tables @shutdown -->
>
>
> <!-- Database Connection Settings -->
>
> <property name="hibernate.connection.driver_class" value="org.postgresql.Driver" />
> <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
> <property name="hibernate.show_sql" value="true"/>
> <property name="hibernate.format_sql" value="true"/>
> <property name="jboss.entity.manager.factory.jndi.name" value="java:/-name of your proyect-EntityManagerFactory"/>
> <property name="hibernate.connection.username" value="AnyUserName" />
> <property name="hibernate.connection.password" value="YourPassWord" />
> <property name="hibernate.connection.url" value="jdbc:postgresql://-your psql server address -/-name of database-" />
>
> </properties>
Thanks to all
ill report any other inconvenience
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522794#522794
14 years, 4 months
[jBPM] New message: "Re: JBpm 4.3 + Spring 3 transaction problem at buildProcessEngine"
by Tom Meier
User development,
A new message was posted in the thread "JBpm 4.3 + Spring 3 transaction problem at buildProcessEngine":
http://community.jboss.org/message/522791#522791
Author : Tom Meier
Profile : http://community.jboss.org/people/tom42332
Message:
--------------------------------------------------------------
Stacktrace:
SEVERE: Error creating bean with name 'processEngine' defined in class path resource [jbpm/jbpm-spring-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [protected org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine()] threw exception; nested exception is org.jbpm.api.JbpmException: no jBPM DB schema: no JBPM4_EXECUTION table. Run the create.jbpm.schema target first in the install tool.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine' defined in class path resource [jbpm/jbpm-spring-config.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [protected org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine()] threw exception; nested exception is org.jbpm.api.JbpmException: no jBPM DB schema: no JBPM4_EXECUTION table. Run the create.jbpm.schema target first in the install tool.
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:551)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:964)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:868)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at org.jbpm.pvm.internal.processengine.SpringProcessEngine.create(SpringProcessEngine.java:77)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.buildProcessEngine(ConfigurationImpl.java:92)
at com.test.WorkflowService.initialiseJbpmEngineServices(WorkflowService.java:90)
at com.test.WorkflowService.startService(WorkflowService.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy6.startService(Unknown Source)
at com.test.Server.startService(Server.java:402)
at com.test.Server.startWorkflowService(Server.java:592)
at com.test.Server.run(Server.java:161)
at com.test.Server.main(Server.java:906)
at com.test.Service.main(Service.java:17)
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [protected org.jbpm.api.ProcessEngine org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine()] threw exception; nested exception is org.jbpm.api.JbpmException: no jBPM DB schema: no JBPM4_EXECUTION table. Run the create.jbpm.schema target first in the install tool.
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:158)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:540)
... 39 more
Caused by: org.jbpm.api.JbpmException: no jBPM DB schema: no JBPM4_EXECUTION table. Run the create.jbpm.schema target first in the install tool.
at org.jbpm.pvm.internal.cmd.CheckDbCmd.execute(CheckDbCmd.java:50)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)
at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:152)
at org.jbpm.pvm.internal.processengine.SpringProcessEngine.create(SpringProcessEngine.java:70)
at org.jbpm.pvm.internal.cfg.ConfigurationImpl.buildProcessEngine(ConfigurationImpl.java:92)
at org.jbpm.pvm.internal.processengine.SpringHelper.createProcessEngine(SpringHelper.java:47)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:146)
... 40 more
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522791#522791
14 years, 4 months
[jBPM] New message: "JBpm 4.3 + Spring 3 transaction problem at buildProcessEngine"
by Tom Meier
User development,
A new message was posted in the thread "JBpm 4.3 + Spring 3 transaction problem at buildProcessEngine":
http://community.jboss.org/message/522788#522788
Author : Tom Meier
Profile : http://community.jboss.org/people/tom42332
Message:
--------------------------------------------------------------
When starting up JBPM using Configuration.buildProcessEngine() I get an exception
org.jbpm.api.JbpmException: no jBPM DB schema: no JBPM4_EXECUTION table. Run the create.jbpm.schema target first in the install tool.
at org.jbpm.pvm.internal.cmd.CheckDbCmd.execute(CheckDbCmd.java:50)
I put a breakpoint at CheckDbCmd at that line and found out that there is an underlying exception:
org.hibernate.HibernateException: createQuery is not valid without active transaction
However transactions are definitely enabled (Spring transactions, see stacktrace below). I've also tried a multitude of variations of configuring transaction management in jbpm, such as <hibernate-session current="true" /> and changing current to false and lots of other variations.I somehow have the impression it could be related to Tom Baeyens http://community.jboss.org/thread/145924.
Has anyone any idea how to solve this?
Using JBPM 4.3, Spring 3.0.0, Hibernate 3.3.1, MSSQL Server.
jbpm.cfg.xml:
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration spring="enabled">
<import resource="jbpm.jobexecutor.cfg.xml" />
<import resource="jbpm.jpdl.cfg.xml"/>
<import resource="jbpm.bpmn.cfg.xml" />
<process-engine-context>
<repository-service />
<repository-cache />
<execution-service />
<history-service />
<management-service />
<identity-service />
<task-service />
<string name="spring.cfg" value="jbpm/jbpm-spring-config.xml" />
<types resource="jbpm.variable.types.xml" />
<object class="org.jbpm.pvm.internal.id.DatabaseDbidGenerator">
<field name="commandService"><ref object="newTxRequiredCommandService" /></field>
</object>
<object class="org.jbpm.pvm.internal.id.DatabaseIdComposer" init="eager" />
<command-service name="txRequiredCommandService">
<skip-interceptor />
<retry-interceptor />
<environment-interceptor />
<spring-transaction-interceptor />
</command-service>
<command-service name="newTxRequiredCommandService">
<retry-interceptor />
<environment-interceptor policy="requiresNew" />
<spring-transaction-interceptor policy="requiresNew" />
</command-service>
</process-engine-context>
<transaction-context>
<repository-session />
<db-session />
<message-session />
<timer-session />
<identity-session />
<history-sessions>
<object class="org.jbpm.pvm.internal.history.HistorySessionImpl" />
</history-sessions>
<transaction type="spring" />
<hibernate-session current="true" />
.
jbpm/spring application context:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<import resource="../properties-config.xml"/>
<bean id="springHelper" class="org.jbpm.pvm.internal.processengine.SpringHelper">
<property name="jbpmCfg" value="jbpm/jbpm.cfg.xml"/>
</bean>
<bean id="processEngine" factory-bean="springHelper" factory-method="createProcessEngine" />
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory" />
<property name="dataSource" ref="dataSource" />
</bean>
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation" value="classpath:/jbpm/jbpm.hibernate.cfg.xml" />
<property name="dataSource" ref="dataSource" />
</bean>
<bean id="dataSource" class="org.springframework.jdbc.datasource.SimpleDriverDataSource">
<property name="driverClass" value="net.sourceforge.jtds.jdbc.Driver" />
<property name="url" value="jdbc:jtds:sqlserver://${Database.server}:${Database.port}/${Database.database}" />
<property name="username" value="${Database.user}" />
<property name="password" value="${Database.password}" />
</bean>
</beans>
.
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">org.hibernate.dialect.SQLServerDialect</property>
<property name="hibernate.current_session_context_class">thread</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>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/522788#522788
14 years, 4 months