[
https://issues.apache.org/jira/browse/OPENJPA-1130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718093#action_12718093
]
Donald Woods commented on OPENJPA-1130:
---------------------------------------
I'm trying to enhance classes in a new
openjpa-integration/validation/src/test/main directory for my validation
specific testing (as the entities will be using bean validation annotations
that are not available in the normal openjpa-persistence-jdbc builds.)
The enhancer error I'm seeing, is due to existing entities in the test jar -
. . .
628 WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for
"class org.apache.openjpa.persistence.jdbc.order.BaseTestElement3". Ignoring.
629 TRACE [main] openjpa.MetaData - Parsing class
"org.apache.openjpa.persistence.jdbc.order.BaseTestEntity3".
629 WARN [main] openjpa.MetaData - Found duplicate metadata or mapping for
"class org.apache.openjpa.persistence.jdbc.order.BaseTestEntity3". Ignoring.
629 TRACE [main] openjpa.MetaData - Finished parsing metadata resource
"jar:file:/Users/drwoods/.m2/repository/org/apache/openjpa/openjpa-persistence-jdbc/2.0.0-SNAPSHOT/openjpa-persistence-jdbc-2.0.0-SNAPSHOT-tests.jar!/org/apache/openjpa/persistence/jdbc/order/order-orm-3.xml".
629 TRACE [main] openjpa.MetaData - Set persistence-capable superclass of
"org.apache.openjpa.persistence.access.xml.XMLMixedMappedSuper" to "null".
631 TRACE [main] openjpa.MetaData - Resolving metadata for
"org.apache.openjpa.persistence.access.xml.xmlmixedmappedsu...@353678091".
631 TRACE [main] openjpa.MetaData - Resolving field
"org.apache.openjpa.persistence.access.xml.xmlmixedmappedsu...@353678091.id".
639 TRACE [main] openjpa.MetaData - Resolving field
"org.apache.openjpa.persistence.access.xml.xmlmixedmappedsu...@353678091.mid".
639 TRACE [main] openjpa.MetaData - Resolving field
"org.apache.openjpa.persistence.access.xml.xmlmixedmappedsu...@353678091.name".
641 TRACE [main] openjpa.MetaData - Preparing mapping for
"org.apache.openjpa.persistence.access.xml.XMLMixedMappedSuper".
641 TRACE [main] openjpa.MetaData - Resolving mapping for
"org.apache.openjpa.persistence.access.xml.xmlmixedmappedsu...@353678091".
641 INFO [main] openjpa.Enhance - Enhancing type "class
org.apache.openjpa.persistence.access.xml.XMLMixedMappedSuper".
java.io.FileNotFoundException:
file:/Users/drwoods/.m2/repository/org/apache/openjpa/openjpa/2.0.0-SNAPSHOT/openjpa-2.0.0-SNAPSHOT.jar!/org/apache/openjpa/persistence/access/xml/XMLMixedMappedSuper.class
(No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
at serp.bytecode.BCClass.write(BCClass.java:179)
at org.apache.openjpa.enhance.PCEnhancer.record(PCEnhancer.java:595)
at org.apache.openjpa.enhance.PCEnhancer.record(PCEnhancer.java:581)
at org.apache.openjpa.enhance.PCEnhancer.run(PCEnhancer.java:4602)
. . .
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: The following error occurred while
executing this line:
/Users/drwoods/openjpa/trunk/openjpa-integration/validation/src/main/ant/enhancer.xml:51:
The following error occurred while executing this line:
/Users/drwoods/openjpa/trunk/openjpa-integration/validation/src/main/ant/enhancer.xml:79:
java.io.FileNotFoundException:
file:/Users/drwoods/.m2/repository/org/apache/openjpa/openjpa/2.0.0-SNAPSHOT/openjpa-2.0.0-SNAPSHOT.jar!/org/apache/openjpa/persistence/access/xml/XMLMixedMappedSuper.class
(No such file or directory)
> Create a openjpa-testsupport module to share base TestCase classes across
> modules
> ---------------------------------------------------------------------------------
>
> Key: OPENJPA-1130
> URL: https://issues.apache.org/jira/browse/OPENJPA-1130
> Project: OpenJPA
> Issue Type: Test
> Components: build / infrastructure
> Reporter: Donald Woods
> Assignee: Donald Woods
> Fix For: 2.0.0
>
> Attachments: OPENJPA-1130-tests-classifier.patch.txt,
> OPENJPA-1130.patch
>
>
> Propose moving
> openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/*
> base testcase classes to a openjpa-testsupport JAR which can be shared
> between o-p-j, openjpa-slice and new ones being added to openjpa-integration
> for bean validation and eventually OSGi.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.