posts - 93,  comments - 2,  trackbacks - 0

          1.缺少包c(diǎn)ommons-collections-3.1.jar
          java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap
           at org.hibernate.util.SimpleMRUCache.init(SimpleMRUCache.java:71)
           at org.hibernate.util.SimpleMRUCache.<init>(SimpleMRUCache.java:55)
           at org.hibernate.engine.query.QueryPlanCache.<init>(QueryPlanCache.java:76)
           at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:239)
           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:906)
           at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
           at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
           at com.rfcyber.rfcepayment.util.jpa.JPAHelper.init(Unknown Source)
           at test.TestDataPreparation.setUp(TestDataPreparation.java:52)
           at junit.framework.TestCase.runBare(TestCase.java:128)
           at junit.framework.TestResult$1.protect(TestResult.java:106)
           at junit.framework.TestResult.runProtected(TestResult.java:124)
           at junit.framework.TestResult.run(TestResult.java:109)
           at junit.framework.TestCase.run(TestCase.java:120)
           at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
           at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
          Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.map.LRUMap
           at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
           ... 22 more

          2.缺jta.jar

          java.lang.NoClassDefFoundError: javax/transaction/SystemException
           at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:112)
           at org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:107)
           at com.rfcyber.rfcepayment.util.jpa.JPAHelper.getEntityManager(Unknown Source)
           at com.rfcyber.rfcepayment.util.jpa.JPADAO.findByJPQL(Unknown Source)
           at com.richhouse.personal.service.DPZYTService.searchNextAvaiable(Unknown Source)
           at com.richhouse.personal.util.ZYTDPHandler.searchNextAvaiable(Unknown Source)
           at com.richhouse.personal.util.ZYTDataPreparation.prepareStoreData(Unknown Source)
           at test.TestDataPreparation.testOracleSearchNext(TestDataPreparation.java:91)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at junit.framework.TestCase.runTest(TestCase.java:164)
           at junit.framework.TestCase.runBare(TestCase.java:130)
           at junit.framework.TestResult$1.protect(TestResult.java:106)
           at junit.framework.TestResult.runProtected(TestResult.java:124)
           at junit.framework.TestResult.run(TestResult.java:109)
           at junit.framework.TestCase.run(TestCase.java:120)
           at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
           at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
           at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
          Caused by: java.lang.ClassNotFoundException: javax.transaction.SystemException
           at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
           ... 24 more 

          posted on 2014-01-15 10:44 Terry Zou 閱讀(303) 評(píng)論(0)  編輯  收藏 所屬分類: Tomcat+Eclipse
          <2014年1月>
          2930311234
          567891011
          12131415161718
          19202122232425
          2627282930311
          2345678

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          文章分類

          文章檔案

          相冊(cè)

          收藏夾

          Java

          搜索

          •  

          最新隨筆

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          主站蜘蛛池模板: 西丰县| 卓资县| 措美县| 龙南县| 朝阳区| 巴马| 奉化市| 利津县| 家居| 吉木萨尔县| 三河市| 昭平县| 迁西县| 广饶县| 普格县| 丽江市| 聂荣县| 北宁市| 平泉县| 黄浦区| 郁南县| 桑植县| 福州市| 阳信县| 响水县| 长白| 堆龙德庆县| 北川| 保康县| 桦南县| 金塔县| 湖北省| 威宁| 阳江市| 临城县| 南城县| 牟定县| 金山区| 邹平县| 绵阳市| 腾冲县|