You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "David Ezzio (JIRA)" <ji...@apache.org> on 2006/09/27 20:49:50 UTC
[jira] Created: (OPENJPA-60) Specifying the wrong persistence
implementation in persistence.xml leads to misleading error message
Specifying the wrong persistence implementation in persistence.xml leads to misleading error message
----------------------------------------------------------------------------------------------------
Key: OPENJPA-60
URL: http://issues.apache.org/jira/browse/OPENJPA-60
Project: OpenJPA
Issue Type: Bug
Reporter: David Ezzio
Priority: Minor
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (OPENJPA-60) Specifying the wrong persistence
implementation in persistence.xml leads to misleading error message
Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/OPENJPA-60?page=comments#action_12438249 ]
Pinaki Poddar commented on OPENJPA-60:
--------------------------------------
Fix available on revision #450632.
> Specifying the wrong persistence implementation in persistence.xml leads to misleading error message
> ----------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-60
> URL: http://issues.apache.org/jira/browse/OPENJPA-60
> Project: OpenJPA
> Issue Type: Bug
> Reporter: David Ezzio
> Priority: Minor
>
> 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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (OPENJPA-60) Specifying the wrong persistence
implementation in persistence.xml leads to misleading error message
Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-60?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470436 ]
Patrick Linskey commented on OPENJPA-60:
----------------------------------------
Resolving, assuming that Pinaki's change is correct.
> Specifying the wrong persistence implementation in persistence.xml leads to misleading error message
> ----------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-60
> URL: https://issues.apache.org/jira/browse/OPENJPA-60
> Project: OpenJPA
> Issue Type: Bug
> Reporter: David Ezzio
> Priority: Minor
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (OPENJPA-60) Specifying the wrong persistence
implementation in persistence.xml leads to misleading error message
Posted by "Patrick Linskey (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Linskey resolved OPENJPA-60.
------------------------------------
Resolution: Fixed
> Specifying the wrong persistence implementation in persistence.xml leads to misleading error message
> ----------------------------------------------------------------------------------------------------
>
> Key: OPENJPA-60
> URL: https://issues.apache.org/jira/browse/OPENJPA-60
> Project: OpenJPA
> Issue Type: Bug
> Reporter: David Ezzio
> Priority: Minor
>
> 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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.