[JBoss jBPM] - Switching the Database Backend
by b_
Hi all,
I followed the getting started guide to switch the database backend to mysql however when i start the jbpm-server i get the following stack trace:
|
| 12:58:48,046 INFO [STDOUT] java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
| 12:58:48,046 INFO [STDOUT] at java.lang.Class.getDeclaredConstructors0(Native Method)
| 12:58:48,062 INFO [STDOUT] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
| 12:58:48,062 INFO [STDOUT] at java.lang.Class.getConstructor0(Class.java:2671)
| 12:58:48,062 INFO [STDOUT] at java.lang.Class.newInstance0(Class.java:321)
| 12:58:48,062 INFO [STDOUT] at java.lang.Class.newInstance(Class.java:303)
| 12:58:48,062 INFO [NamingHelper] JNDI InitialContext properties:{}
| 12:58:48,062 INFO [STDOUT] at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:327)
| 12:58:48,062 INFO [DatasourceConnectionProvider] Using datasource: java:/JbpmDS
| 12:58:48,078 INFO [STDOUT] at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:219)
| 12:58:48,078 INFO [SettingsFactory] RDBMS: MySQL, version: 5.1.22-rc-community
| 12:58:48,078 INFO [STDOUT] at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1823)
| 12:58:48,078 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.7 ( $Date: 2005/01/25 19:11:41 $, $Revision: 1.27.4.54 $ )
| 12:58:48,078 INFO [STDOUT] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1143)
| 12:58:48,078 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
| 12:58:48,093 INFO [STDOUT] at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
| 12:58:48,093 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
| 12:58:48,093 INFO [STDOUT] at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:76)
| 12:58:48,093 INFO [STDOUT] at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:80)
| 12:58:48,109 INFO [STDOUT] at org.jbpm.persistence.db.DbPersistenceService.getMessagingSession(DbPersistenceService.java:252)
| 12:58:48,109 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
| 12:58:48,109 INFO [STDOUT] at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:523)
| 12:58:48,109 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
| 12:58:48,109 INFO [STDOUT] at org.jbpm.msg.db.DbMessageService.(DbMessageService.java:49)
| 12:58:48,109 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
| 12:58:48,109 INFO [STDOUT] at org.jbpm.msg.db.DbMessageServiceFactory.openService(DbMessageServiceFactory.java:32)
| 12:58:48,125 INFO [SettingsFactory] JDBC batch size: 15
| 12:58:48,125 INFO [STDOUT] at org.jbpm.svc.Services.getService(Services.java:136)
| 12:58:48,125 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
| 12:58:48,125 INFO [STDOUT] at org.jbpm.svc.Services.getMessageService(Services.java:172)
| 12:58:48,125 INFO [SettingsFactory] Scrollable result sets: enabled
| 12:58:48,125 INFO [STDOUT] at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:122)
| 12:58:48,140 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
| 12:58:48,140 INFO [STDOUT] at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:83)
|
|
|
| Am i missing something?
|
| Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133603#4133603
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133603
18 years, 1 month
[Messaging, JMS & JBossMQ] - Problem after switching to SQLServer from Hypersonic
by smada1980
Hi
We are having a problem with JBossMQ. We have recently switched from using the Hypersonic db to SQLSever 2000. Things run smoothly for a while but then we get the following error every time we try and receive/browse on any queue. To resolve we then have to restart JBoss.
Anybody any idea what the problem could be?
java.lang.RuntimeException: Can't add object '244 msg=51 STORED PERSISTENT queue=QUEUE.workingJobs priority=4 lateClone=false hashCode=27152951' to LRUCache that is already in cache.
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.server.MessageCache$LRUCache.addMostRecent(MessageCache.java:791)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.server.MessageCache.messageReferenceUsedEvent(MessageCache.java:403)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.server.MessageReference.getMessage(MessageReference.java:168)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.server.MessageReference.getMessageForDelivery(MessageReference.java:147)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.server.BasicQueue.browse(BasicQueue.java:433)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.server.JMSQueue.browse(JMSQueue.java:160)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.server.JMSDestinationManager.browse(JMSDestinationManager.java:566)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.server.JMSServerInterceptorSupport.browse(JMSServerInterceptorSupport.java:226)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.security.ServerSecurityInterceptor.browse(ServerSecurityInterceptor.java:99)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.server.TracingInterceptor.browse(TracingInterceptor.java:504)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.server.JMSServerInvoker.browse(JMSServerInvoker.java:227)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:113)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:396)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
INFO | jvm 1 | 2008/03/03 11:35:59.175 | at java.lang.Thread.run(Unknown Source)
Any help would be appreciated!
Thanks
Matt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133599#4133599
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133599
18 years, 1 month