jpa support issue

1 view
Skip to first unread message

ferjon

unread,
Sep 25, 2010, 8:07:01 AM9/25/10
to xaloon
When starting application, this occurs :


... 76 more
Caused by: java.lang.ClassNotFoundException:
javax.persistence.spi.ProviderUtil
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1645)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1491)
... 85 more
09 25, 10 7:53:14 PM org.apache.catalina.core.StandardContext start


Any one have a persitence-api.jar that has ProviderUtil class in it.
I've looked to persistence-api.jar version 1.0 and it doesn't have
this artifact.


Thanks,

Vytautas

unread,
Sep 25, 2010, 1:03:46 PM9/25/10
to xaloon
Hi,
what hibernate and persistence jars are in your classpath? xaloon by
default uses JPA 2 and hibernate 3.5.x
you might be missing persistence 2 api jar in such case.

ferjon

unread,
Sep 25, 2010, 10:30:27 PM9/25/10
to xaloon
The problem was it was using hibernate 3.5.6-FInal which is the
latest. I change the parent POM to only use the 3.5.1-FInal and
everything worked fine again.


Thanks,

Vytautas

unread,
Sep 26, 2010, 2:14:36 AM9/26/10
to xaloon
Thanks for sharing solution, I'll keep in mind it ;)
Reply all
Reply to author
Forward
0 new messages