This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA program with EntityManager - struggling with java.lang.NoClassDefFoundError 's

 
Vick Chak
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to run a basic JPA program using createEntityManagerFactory, EntityManager and persistence.xml.....Everything compiling fine. I'm running it as a standalone Java application on Weblogic 10.3. First I got this error on running.

Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/kernel/KernelLogManager, after that I did some search on the net and created the wlfullclient.jar and included it. After that I'm getting the below error.

Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/logging/LogEntryFormatter.

Tried removing wlcommons-logging.jar whenever facing an issue, but it doesnt help, it gives some other help when it is removed.

Can some one help please.

Thanks,
Vick.
 
Vick Chak
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For folks who are struggling with this error, I'm posting a solution after

When you face this error java.lang.NoClassDefFoundError: weblogic/kernel/KernelLogManager, first remove the weblogic system libraries, then generate the wlfullclient.jar file(steps are in the net) and add it to classpath.

This error is gone, but will get other errors if jar files are not included .

Vickram.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic