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)論排行榜

          主站蜘蛛池模板: 贺兰县| 灵丘县| 定西市| 星子县| 岳普湖县| 神农架林区| 洛阳市| 神木县| 洞头县| 洛宁县| 改则县| 红桥区| 丹江口市| 噶尔县| 潮安县| 简阳市| 万宁市| 延川县| 康马县| 镇雄县| 酒泉市| 新竹市| 镇宁| 高雄市| 会理县| 辉县市| 巴彦淖尔市| 西丰县| 江华| 边坝县| 乌拉特前旗| 离岛区| 乐平市| 宁夏| 黑河市| 凤冈县| 乌兰浩特市| 保靖县| 井陉县| 承德市| 永清县|