Java. lang. NoClassDefFoundError: org/jboss/util/file/ArchiveBrowser $ Filter
At org. hibernate. ejb. HibernatePersistence. createEntityManagerFactory (HibernatePersistence. java: 119)
At javax. persistence. Persistence. createEntityManagerFactory (Persistence. java: 83)
At javax. persistence. Persistence. createEntityManagerFactory (Persistence. java: 60)
At com. olay. junit. Test. test (Test. java: 11)
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: org. jboss. util. file. ArchiveBrowser $ Filter
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)
... 20 more
Problem: jboss jar package not introduced
Solution: Introduce the jboss-common.jar package
If an error is reported after the jboss-common.jar package is introduced
Java. lang. NoClassDefFoundError: org/apache/commons/logging/LogFactory
At org. hibernate. ejb. Ejb3Configuration. (Ejb3Configuration. java: 103)
At org. hibernate. ejb. HibernatePersistence. createEntityManagerFactory (HibernatePersistence. java: 119)
At javax. persistence. Persistence. createEntityManagerFactory (Persistence. java: 83)
At javax. persistence. Persistence. createEntityManagerFactory (Persistence. java: 60)
At com. olay. junit. Test. test (Test. java: 11)
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: org. apache. commons. logging. LogFactory
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)
... 21 more
Obviously this is the lack of a commons-logging.jar package, so the introduction of commons-logging.jar issues solved