This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PersistenceException occured : [PersistenceUnit: jpablogPUnit] class or package not found  RSS feed

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to connect play 1.2.5 framework with multiple connection and it is not support multiple connections: I am using below code to get new entity manager having property of 2nd database. But while doing it I am getting "PersistenceException occured : [PersistenceUnit: jpablogPUnit] class or package not found" error which is because in persistence.xml in <class> tag I am mentioning my model class name eg app.com.Answers. and it is not able to find that class ... Answer class is in the same package... still don't understand this error message kindly help..

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!