Issue Details (XML | Word | Printable)

Key: OPENJPA-60
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: David Ezzio
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenJPA

Specifying the wrong persistence implementation in persistence.xml leads to misleading error message

Created: 27/Sep/06 06:49 PM   Updated: 01/Mar/07 02:13 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.9.7

Time Tracking:
Not Specified

Resolution Date: 06/Feb/07 03:03 AM


 Description  « Hide
If "kodo.persistence.PersistenceProviderImpl" is specified instead of "org.apache.openjpa.persistence.PersistenceProviderImpl", a misleading error message results that suggests that the persistence.xml file is missing or cannot be found.

enhance:
     [java] Exception in thread "main" java.util.MissingResourceException: org.apache.openjpa.persistence.PersistenceProductDerivation:java.util.MissingResourceException: The specified XML resource "META-INF/persistence.xml" for persistence unit "null" can't be found in your class path.
     [java] at org.apache.openjpa.lib.conf.ProductDerivations.reportErrors(ProductDerivations.java:217)
     [java] at org.apache.openjpa.lib.conf.ProductDerivations.load(ProductDerivations.java:135)
     [java] at org.apache.openjpa.lib.conf.Configurations.populateConfiguration(Configurations.java:198)
     [java] at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:3468)
     [java] at org.apache.openjpa.enhance.PCEnhancer.main(PCEnhancer.java:3441)


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Pinaki Poddar added a comment - 27/Sep/06 11:16 PM
Fix available on revision #450632.

Patrick Linskey added a comment - 06/Feb/07 03:03 AM
Resolving, assuming that Pinaki's change is correct.