Hi I got the same error !
Well i was missing few jars in the class path . But it took hell lot of time for me as it is was not complaining about the missing Jars but it keep saying
"No Persistence provider for EntityManager named helloworld".
So I assume if you are trying this sample from the previous one you obvioulsly missed the following jars like me.
Jars files required (which i missed in my classpath.)
javaassit -
jboss-archiving-
hibernate-entitymanager-
if we still getting error u can download the source code and in the lib directory u can find all these jars..
I too downloaed from there but i was tryign to add the jars only when required.And the error message obviously did not helped in any way.
Hope this will solve your problem.
Regards,
Vinodh..[[/b]
All Jars required are as shown below
\antlr-2.7.6.jar
\asm.jar
\asm-attrs.jar
\c3p0-0.9.0.jar
\cglib-2.1.3.jar
\commons-collections-2.1.1.jar
\commons-logging-1.0.4.jar
\dom4j-1.6.1.jar
\ejb3-persistence.jar
\hibernate3.jar
\hibernate-annotations.jar
\hibernate-entitymanager.jar
\hibernate-tools.jar
\hsqldb.jar
\javassist.jar
\jboss-archive-browsing.jar
\jta.jar
\lgpl.txt
\log4j-1.2.13.jar