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

          主站蜘蛛池模板: 铜梁县| 鄂托克前旗| 镇巴县| 彰化县| 台中县| 东至县| 昆明市| 三江| 隆德县| 灯塔市| 杨浦区| 巫山县| 定州市| 监利县| 双桥区| 兖州市| 湘阴县| 玛曲县| 怀来县| 左贡县| 郴州市| 江孜县| 海阳市| 晋州市| 新化县| 南汇区| 洛川县| 永修县| 邯郸市| 莱芜市| 兰西县| 柘城县| 乐东| 长子县| 永城市| 麻城市| 泽普县| 定州市| 西城区| 建湖县| 繁昌县|