[JBoss jBPM] - Re: Problem deploying on JBoss 5
by gchanteb
Hi.
Rogerio, your solution doesn't work :-(.
I use JBPM 3.3.1.GA with JBoss 5.0.1.GA.
I have changed jsf-facelet in order to have jbpm console working.
When i want to "examine" a process, i have this error:
"java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean"
With your solution, i can "examine" a process.
BUT... when i examine process and when i want to "delete" one which is running (5 Running Mar 5, 2009 3:02:20 PM Examine Delete End Suspend ), i have this problem:
/app/t_processinstances.xhtml @69,88 value="#{filter_running=='true'}": Illegal Syntax for Set Operation
| /app/t_processinstances.xhtml @71,92 value="#{filter_suspended=='true'}": Illegal Syntax for Set Operation
| /app/t_processinstances.xhtml @73,84 value="#{filter_ended=='true'}": Illegal Syntax for Set Operation
How could i do ?
Thx.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215367#4215367
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215367
17 years, 1 month
[JBoss jBPM] - Deploy Processdefinition via Ant
by MikeSchulze
Hi - I am having some problems deploying my process-definition. I have looked at the reference-documentation but it didn't helped me much because it's quite incomplete and out of date.
My problem:
| [deploypar] WARNUNG: Could not bind factory to JNDI
| [deploypar] javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
| [deploypar] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
| [deploypar] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| [deploypar] at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
| [deploypar] at javax.naming.InitialContext.getNameParser(InitialContext.java:439)
| [deploypar] at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52)
| [deploypar] at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
| [deploypar] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306)
| [deploypar] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
| [deploypar] at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
| [deploypar] at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
| [deploypar] at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99)
| [deploypar] at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:345)
| [deploypar] at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571)
| [deploypar] at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
| [deploypar] at org.jbpm.ant.DeployProcessTask.deploy(DeployProcessTask.java:93)
| [deploypar] at org.jbpm.ant.DeployProcessTask.execute(DeployProcessTask.java:58)
| [deploypar] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
| [deploypar] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
| [deploypar] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [deploypar] at java.lang.reflect.Method.invoke(Method.java:585)
| [deploypar] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
| [deploypar] at org.apache.tools.ant.Task.perform(Task.java:348)
| [deploypar] at org.apache.tools.ant.Target.execute(Target.java:357)
| [deploypar] at org.apache.tools.ant.Target.performTasks(Target.java:385)
| [deploypar] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
| [deploypar] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
| [deploypar] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
| [deploypar] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
| [deploypar] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
| [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
| [deploypar] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
|
| BUILD FAILED
| C:\eclipse_workspace\saporo-util\build\build.xml:422: java.lang.NoClassDefFoundError: antlr/ANTLRException
|
this is my ant-taget:
| <target name="deploy-process">
| <taskdef name="deploypar" classname="org.jbpm.ant.DeployProcessTask">
| <classpath id="process-classpath">
| <fileset dir="${util.dir}/build/deploy-process"/>
| <pathelement location="${ejb.project.dir}/target/my.jar/com/myproject/common/sql/SolarfixDB2Dialect.class"/>
| </classpath>
| </taskdef>
| <deploypar process="${util.dir}/build/deploy-process/process.par"/>
| </target>
|
Within the classpath i have the following jars:
| bsh.jar
| cglib.jar
| commons-collections.jarr
| commons-logging.jar
| hibernate3.jar
| jbpm-jpdl.jar
| log4j.xml
|
|
| My hibernate.cfg.xml and my jbpm.cfg.xml are included within my Process-Archive, because it wasn't sufficient ti just add them to the classpath. This is a part of my 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.DB2Dialect</property>
| |
| | <!-- JDBC connection properties (begin) -->
| | <property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>
| | <property name="hibernate.connection.url">jdbc:db2://localhost:50000/MYDB:currentSchema=SCHEMA;</property>
| | <property name="hibernate.connection.username">user</property>
| | <property name="hibernate.connection.password">password</property>
| | <!-- JDBC connection properties (end) -->
| |
| | <!-- JTA transaction properties (begin)
| | <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
| | <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
| | JTA transaction properties (end) -->
| |
|
| Does anybody have an idea, what i've done wrong? Why do i have to declare JNDI - when i just want to deploy my processdefinition?
|
| Thx - Mike
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215293#4215293
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215293
17 years, 1 month
[JBoss jBPM] - Re: 3.2.1 Datasource Change
by robro99
That is my problem. I am using 3.2.1. The only hibernate.cfg.xml file I have is in C:\jbpm-jpdl-3.2.1\config. Changing that does not appear to affect anything. I am guessing only things under the deploy directory affect the system?
Is there an equivalent file somewhere in the 3.2.1 deploy directory structure?
>From all the stuff I have read/searched it would seem that I need to change the datasource in jboss-service.xml and then change the dialect in hibernate.cfg.xml, but the 3.2.1 zip that I downloaded does not have these files in the deploy section.
Perhaps I need to give up on 3.2.1 and go with a newer release. The only reason I was using 3.2.1 was because jbpm-jpdl-suite-3.2.1.zip comes prepped and ready to run. I am a noob on this stuff and I have not been able to get 3.3x working without the quickstart. If someone knows of a step by step guide for 3.3x I could try that, but I have not found anything that detailed. The main page for jBPM links to the 4x documentation which is not finished at this time.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215292#4215292
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215292
17 years, 1 month