当前位置: 代码迷 >> JBoss >> 贴! 大侠们看看这个有关问题
  详细解决方案

贴! 大侠们看看这个有关问题

热度:3700   发布时间:2013-02-26 00:00:00.0
求救贴! 大侠们看看这个问题
Java code
2011-11-23 19:58:22,390 INFO  [STDOUT] (main) 19:58:22,390 INFO [main] SettingsFactory:225 - Query language substitutions: {}2011-11-23 19:58:22,390 INFO  [STDOUT] (main) 19:58:22,390 INFO [main] SettingsFactory:230 - JPA-QL strict compliance: disabled2011-11-23 19:58:22,390 INFO  [STDOUT] (main) 19:58:22,390 INFO [main] SettingsFactory:235 - Second-level cache: enabled2011-11-23 19:58:22,390 INFO  [STDOUT] (main) 19:58:22,390 INFO [main] SettingsFactory:239 - Query cache: enabled2011-11-23 19:58:22,390 INFO  [STDOUT] (main) 19:58:22,390 INFO [main] SettingsFactory:373 - Cache provider: net.sf.ehcache.hibernate.SingletonEhCacheProvider2011-11-23 19:58:22,421 ERROR [STDERR] (main) SLF4J: Class path contains multiple SLF4J bindings.2011-11-23 19:58:22,421 ERROR [STDERR] (main) SLF4J: Found binding in [vfszip:/D:/soft/jboss-5.1.0.GA/server/default/deploy/nwcdm.war/WEB-INF/lib/slf4j-log4j12-1.6.1.jar/org/slf4j/impl/StaticLoggerBinder.class]2011-11-23 19:58:22,421 ERROR [STDERR] (main) SLF4J: Found binding in [vfszip:/D:/soft/jboss-5.1.0.GA/common/lib/slf4j-jboss-logging.jar/org/slf4j/impl/StaticLoggerBinder.class]2011-11-23 19:58:22,421 ERROR [STDERR] (main) SLF4J: See http://www.slf4j.org/codes#multiple_bindings for an explanation.2011-11-23 19:58:22,437 INFO  [STDOUT] (main) 19:58:22,421 INFO [main] SettingsFactory:254 - Optimize cache for minimal puts: enabled2011-11-23 19:58:22,437 INFO  [STDOUT] (main) 19:58:22,437 INFO [main] SettingsFactory:263 - Structured second-level cache entries: disabled2011-11-23 19:58:22,437 INFO  [STDOUT] (main) 19:58:22,437 INFO [main] SettingsFactory:360 - Query cache factory: org.hibernate.cache.StandardQueryCacheFactory2011-11-23 19:58:22,453 INFO  [STDOUT] (main) 19:58:22,453 INFO [main] SettingsFactory:290 - Statistics: disabled2011-11-23 19:58:22,453 INFO  [STDOUT] (main) 19:58:22,453 INFO [main] SettingsFactory:294 - Deleted entity synthetic identifier rollback: disabled2011-11-23 19:58:22,453 INFO  [STDOUT] (main) 19:58:22,453 INFO [main] SettingsFactory:309 - Default entity-mode: pojo2011-11-23 19:58:22,468 INFO  [STDOUT] (main) 19:58:22,453 INFO [main] SettingsFactory:313 - Named query checking : enabled2011-11-23 19:58:22,515 INFO  [STDOUT] (main) 19:58:22,515 INFO [main] SessionFactoryImpl:161 - building session factory2011-11-23 19:58:23,171 INFO  [STDOUT] (main) 19:58:23,171 INFO [main] SessionFactoryObjectFactory:82 - Not binding factory to JNDI, no JNDI name configured2011-11-23 19:58:23,171 INFO  [STDOUT] (main) 19:58:23,171 INFO [main] NamingHelper:26 - JNDI InitialContext properties:{}2011-11-23 19:58:23,171 INFO  [STDOUT] (main) 19:58:23,171 ERROR [main] BaseHibernateDAO:67 - 初始化Hiberate SessionFactory失败java.lang.ClassCastException: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate cannot be cast to javax.transaction.TransactionManager    at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)    at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:325)    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)    at com.adcc.module.basic.BaseHibernateDAO.<clinit>(BaseHibernateDAO.java:65)    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)    at java.security.AccessController.doPrivileged(Native Method)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
  相关解决方案