Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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..

 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!