[ 
https://issues.apache.org/jira/browse/OPENJPA-2244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Helen Xu updated OPENJPA-2244:
------------------------------

    Attachment: OPENJPA-2244.patch

new patch attached to load context classloader only when it is needed.
                
> Nested classpath ignored in mapping tool ant task
> -------------------------------------------------
>
>                 Key: OPENJPA-2244
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2244
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.0.1, 2.1.1, 2.2.0
>            Reporter: Helen Xu
>            Assignee: Helen Xu
>         Attachments: OPENJPA-2244.patch
>
>
> The nested classpath element inside the mappingtool ant task are ignored when 
> loading the persistent configuration file. User got the following error:
> <openjpa-2.0.2-SNAPSHOT-r422266:1361284M fatal user error> 
> org.apache.openjpa.util.MetaDataException: MetaDataFactory could not be 
> configured (conf.newMetaDataFactoryInstance() returned null). This might mean 
> that no configuration properties were found. Ensure that you have a 
> META-INF/persistence.xml file, that it is available in your classpath, or 
> that the properties file you are using for configuration is available. If you 
> are using Ant, please see the <properties> or <propertiesFile> attributes of 
> the task's nested <config> element. This can also occur if your OpenJPA 
> distribution jars are corrupt, or if your security policy is overly strict.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to