[jBPM Users] - Jbpm/MySQL not working on linux, but fine on Windows
by dleerob
Hi,
I have Jbpm 3.2.6 running on a Windows 2008 server, with Tomcat 5.0.28 and MySQL 5.0.27 as the DB running on local windows machine. It works perfectly.
As soon as I use MySQL 5.0.67 on a separate linux server (SLES11), and use that as my db/datasource with the exact same data/permissions, I get exception saying that tables cannot be found. Basically, it says no tables exist, even when I can see that they do. Tomcat shows me the following exception:
WARN JbpmJobExecutor@10.11.5.61:1 org.hibernate.util.JDBCExceptionReporter - SQL Error: 1146, SQLState: 42S02
| ERROR JbpmJobExecutor@10.11.5.61:1 org.hibernate.util.JDBCExceptionReporter - Table 'jbpm3.JBPM_JOB' doesn't exist
| ERROR JbpmJobExecutor@10.11.5.61:1 org.jbpm.job.executor.JobExecutorThread - exception in job executor thread. waiting 5000 milliseconds
| org.jbpm.JbpmException: could not get first acquirable job
| at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:59)
| at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:115)
| at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58)
| Caused by: org.hibernate.exception.SQLGrammarException: could not execute query
| at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
| at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
| at org.hibernate.loader.Loader.doList(Loader.java:2223)
| at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
| at org.hibernate.loader.Loader.list(Loader.java:2099)
| at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:378)
| at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
| at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
| at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
| at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
| at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
| at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:52)
| ... 2 more
| Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'jbpm3.JBPM_JOB' doesn't exist
| at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
| at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
| at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
| at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1665)
| at com.mysql.jdbc.Connection.execSQL(Connection.java:3124)
| at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1149)
| at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1262)
| at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
| at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
| at org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
| at org.hibernate.loader.Loader.doQuery(Loader.java:674)
| at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
| at org.hibernate.loader.Loader.doList(Loader.java:2220)
| ... 11 more
And it's not just 'jbpm3.JBPM_JOB' that apparently doesn't exist, it happens everywhere jbpm tries to access the db.
Does anyone know why JBPM 3.2.6 is not working on MySQL 5.0.67 when its running on a linux operating system?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260249#4260249
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260249
16 years, 5 months
[jBPM Users] - Re: Question and remark about mail-templates
by sebastian.s
Sorry for the mess. By accident I pushed Submit and not preview. Editing posts is really a feature I would highly appreciate.
Okay, how to define mail templates in the configuration for the Tomcat demo setup:
1. Grab the jbpm.cfg.jar which was created during the run of ant demo.setup.tomcat. It's in the lib-Folder of the Tomcat installation.
2. Put it in an empty directory and unjar it by using the command:
| jar -xfv jbpm.cfg.jar
|
3. Create a file named jbpm.mail.templates.xml
4. Create your template or templates in the following form inside this file:
| <jbpm-configuration>
| <process-engine-context>
| <mail-template name="template1">
| ..
| </mail-template>
| </process-engine-context>
| </jbpm-configuration>
|
5. Add the following line in the jbpm.cfg.xml:
| <import resource="jbpm.mail.templates.xml" />
|
6. Create a new version of jbpm.cfg.jar by using the command:
| jar -cfmv jbpm.cfg.jar *.* ./META-INF/MANIFEST.MF
|
7. Replace the jbpm.cfg in your Tomcat lib-Folder with the newly created one. Don't forget to restart Tomcat.
Is there a better way to specify additional configuration settings before the jbpm.cfg.jar is created by the ant task? In build.xml you can set the property mail.smtp.host but not the from-address for example.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4260242#4260242
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4260242
16 years, 5 months