ReCom.org
Portal Page Forum Wiki Social Groups Scholarship Holders Infobase Site Map About
Go Back   ReCom.org > Forum > ReCom Activities Hub > ReCom Computer Lab > Programming and Web Development

Programming and Web Development Web monks and programmers welcomed

java.lang.NoClassDefFoundError: javax/persistence/spi/ProviderUtil

Reply
 
Thread Tools
Sandeepgowda Male
Super Junior Member
 
Join Date: Nov 2009
Posts: 1
  #1 Old 30-11-2009 Question java.lang.NoClassDefFoundError: javax/persistence/spi/ProviderUtil

hi,
i am using org.hibernate.ejb.HibernatePersistence as JPA provider, getting some exception as below,

Exception in thread "main" java.lang.NoClassDefFoundError: javax/persistence/spi/ProviderUtil
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Cla ss.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:30
at javax.persistence.Persistence.findAllProviders(Per sistence.java:112)
at javax.persistence.Persistence.createEntityManagerF actory(Persistence.java:79)
at javax.persistence.Persistence.createEntityManagerF actory(Persistence.java:60)
at SessionFactory.HibernateLogin.main(HibernateLogin. java:131)
Caused by: java.lang.ClassNotFoundException: javax.persistence.spi.ProviderUtil
at java.net.URLClassLoader$1.run(URLClassLoader.java: 200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:18
at java.lang.ClassLoader.loadClass(ClassLoader.java:3 03)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 4
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:316)
... 9 more

Can you please help me.

regards
Sandeep Gowda
Sandeepgowda is offline   Reply With Quote
vseehua
The Student
Administrator
 
vseehua's Avatar
 
Join Date: Jun 2004
Posts: 5,874
  #2 Old 30-11-2009 Default Re: java.lang.NoClassDefFoundError: javax/persistence/spi/ProviderUtil

Thread moved to the Programming section of the forum, in addition, I'll repeat my comments in past threads:
Quote:
pedjasmek, I think you may have come to the wrong forum for your querries. JPA, within the context of this forum, means Jabatan Perkhidmatan Awam in Malaysia, and usually usually used referring to the scholarships offered by that body.

As thus, I don't think many of us knows how to deal with Java Persistent API codes. I will leave this thread open, and see if anyone has the answers to your queries.
__________________
"Never argue with an idiot (or a troll)… they’ll just drag you down to their level and beat you to a pulp with their experience." -Internet 1:1

It is always good to be naive, for when we cease to be naive, it is the end of life as we know it!

Check out our ReCom wiki!
Do contribute by writing or editing the existing articles so that everyone now and in the future can benefit from it!
vseehua is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET v. Java masterof_none Programming and Web Development 1 23-11-2006 06:18 PM
java programming dyenne10 Programming and Web Development 3 31-01-2005 11:32 PM
Intro to Java masterof_none Programming and Web Development 15 13-05-2004 09:35 PM
HelloRC.java masterof_none Programming and Web Development 0 21-05-2003 10:58 PM
History of Java masterof_none Programming and Web Development 2 21-05-2003 03:13 AM


All times are GMT +8. The time now is 01:48 PM.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

ReCom stands for Reborn Community. It has no affiliation with other organizations that may share the same name. The views expressed in this website solely represent the authors point of view and do not necessarily reflect the views of ReCom Anchors and other ReCom users.


 

Page generated in 0.10981 seconds with 16 queries