[jboss-user] [JBoss Cache Users] - Re: ClassCastExeption

2009-10-23 Thread pschmiel
I have re-deployed all hibernate related jars. Now I get the following error:

23.10.09 14:32:37 FATAL [s.OptimisticLockingInterceptor:  55] No transaction 
manager lookup class has been defined. Transactions cannot be used and thus 
OPTIMISTIC locking cannot be used!  Expect errors!! (main)

23.10.09 14:32:37 FATAL [s.OptimisticLockingInterceptor:  55] No transaction 
manager lookup class has been defined. Transactions cannot be used and thus 
OPTIMISTIC locking cannot be used!  Expect errors!! (main)

Relevant part of config:

org.hibernate.transaction.JOTMTransactionManagerLookup
  | 

JOTMTransactionManagerLookup.class is in $CLASSPATH

Matches in 
/usr/local/opt/tomcat/webapps/Joca-JCL-Handler/WEB-INF/lib/hibernate-core-3.3.2.GA.jar:
  |   1625 Wed Jun 24 01:55:44 CEST 2009 
org/hibernate/transaction/JOTMTransactionManagerLookup.class


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261855#4261855

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261855
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache Users] - Re: ClassCastExeption

2009-10-22 Thread pschmiel
Here are my library versions:

-rw-r--r-- 1 root root 2309955 22. Okt 16:44 hibernate-core-3.3.2.GA.jar
  | -rw-r--r-- 1 root root   60062 21. Aug 20:03 
hibernate-jbosscache2-3.3.2.GA.jar

/usr/local/lib64/java/jdk/bin/jar tvf hibernate-core-3.3.2.GA.jar | grep 
org.hibernate.cache.RegionFactory
  |939 Wed Jun 24 01:55:42 CEST 2009 org/hibernate/cache/RegionFactory.class

/usr/local/lib64/java/jdk/bin/jar tvf hibernate-jbosscache2-3.3.2.GA.jar | grep 
org.hibernate.cache.jbc2.MultiplexedJBossCacheRegionFactory
  |695 Wed Jun 24 01:57:18 CEST 2009 
org/hibernate/cache/jbc2/MultiplexedJBossCacheRegionFactory.class


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261761#4261761

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261761
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache Users] - ClassCastExeption

2009-10-22 Thread pschmiel
Hi,

I have configured JBossCache as 2nd lvl cache for Hibernate.
I use Tomcat 5.5 as servlet container, JOTM, Hibernate 3.3.2GA and JBoss Cache 
3.2.0.

When starting my app it dies with the following error:

Caused by: java.lang.ClassCastException: 
org.hibernate.cache.jbc2.MultiplexedJBossCacheRegionFactory cannot be cast to 
org.hibernate.cache.RegionFactory
  | at 
org.hibernate.cfg.SettingsFactory.createRegionFactory(SettingsFactory.java:384)

The relevant part of my configuration looks like this:


  | 
  | org.hibernate.dialect.MySQLDialect
  | true 1, false 
0
  | ${db.showSql}
  | true
  | true
  | auto
  | true
  | 
  | org.hibernate.transaction.JOTMTransactionManagerLookup
  | org.hibernate.transaction.JTATransactionFactory
  | org.hibernate.cache.jbc2.MultiplexedJBossCacheRegionFactory
  | 
  | true
  | false
  | 
  | 
  | org.apache.lucene.analysis.SimpleAnalyzer
  | org.hibernate.search.store.FSDirectoryProvider
  | ${db.searchIndexOptimizeAfterOperations}
  | ${db.searchIndexBase}
  | manual
  | 
  | 
  | 
  | ${hibernateStats}
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261753#4261753

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261753
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user