tag:blogger.com,1999:blog-28228406.post115411464320678146..comments2024-03-27T00:44:17.190-04:00Comments on Java How To ...: HelloWorld with JPA, Hibernate and MySqlUnknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-28228406.post-19332471542105311162009-04-03T10:23:00.000-04:002009-04-03T10:23:00.000-04:00Anonymous:http://www.findjar.com/search org/slf4j/...Anonymous:<BR/><BR/>http://www.findjar.com/<BR/><BR/>search org/slf4j/LoggerFactory<BR/><BR/>download jar and include into your projectUnknownhttps://www.blogger.com/profile/01225469484358581806noreply@blogger.comtag:blogger.com,1999:blog-28228406.post-29516115183061456632009-01-14T00:28:00.000-05:002009-01-14T00:28:00.000-05:00i have added all the jar files mention but I get a...i have added all the jar files mention but I get an error as below<BR/><BR/>Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory<BR/> at org.hibernate.cfg.Configuration.(Configuration.java:151)<BR/> at org.hibernate.ejb.Ejb3Configuration.Ejb3Configuration.java:107)<BR/> at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:124)<BR/> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)<BR/> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)<BR/> at com.foo.HelloWorld.initEntityManager(HelloWorld.java:21)<BR/> at com.foo.HelloWorld.main(HelloWorld.java:14)<BR/>Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory<BR/> at java.net.URLClassLoader$1.run(Unknown Source)<BR/> at java.security.AccessController.doPrivileged(Native Method)<BR/> at java.net.URLClassLoader.findClass(Unknown Source)<BR/> at java.lang.ClassLoader.loadClass(Unknown Source)<BR/> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)<BR/> at java.lang.ClassLoader.loadClass(Unknown Source)<BR/> at java.lang.ClassLoader.loadClassInternal(Unknown Source)<BR/> ... 7 moreAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-28228406.post-51756163230572766482007-12-04T17:13:00.000-05:002007-12-04T17:13:00.000-05:00Sorry, I figured it out after I posted this commen...Sorry, I figured it out after I posted this comment. Your example works great! Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-28228406.post-88571535951204055912007-12-04T16:36:00.000-05:002007-12-04T16:36:00.000-05:00I get this error:Exception in thread "main" javax....I get this error:<BR/>Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: hello_world] class or package not found<BR/><BR/>Am I supposed to have a mapping file? If I change the persistence unit name I get "not found by this name", so I know it is at least finding "hello_world" in the persistence.xml.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-28228406.post-1154541966091958422006-08-02T14:06:00.000-04:002006-08-02T14:06:00.000-04:00Not a big improvement but you should be able to pi...Not a big improvement but you should be able to pin down the number of jars to 12 by:<BR/> - using javassist for you bytecode provider: this remove cglib and the 2 asms<BR/> - using the JDK logger, this remove log4j<BR/> - I don't think JTA is mandatory if you don't use JTA, but if you use it, you probably have a JTA provider which bundle it alreadyAnonymoushttps://www.blogger.com/profile/13441809988487585009noreply@blogger.com