[
https://jira.jboss.org/jira/browse/EJBTHREE-1754?page=com.atlassian.jira....
]
jaikiran pai updated EJBTHREE-1754:
-----------------------------------
Attachment: EJBTHREE-1754.patch
The deployment errors are related to the <jar-file>../util.jar</jar-file> used
in the persistence.xml of these deployments. The contents of the factory-test.ear are as
follows:
META-INF/
META-INF/MANIFEST.MF
session1.jar
session2.jar
util.jar
META-INF/application.xml
META-INF/jboss-app.xml
The session1.jar and session2.jar are both persistence units having their persistence.xml
as follows:
...
<jta-data-source>java:/DefaultDS</jta-data-source>
<jar-file>../util.jar</jar-file>
...
</persistence-unit>
</persistence>
As per the spec, the "Such JAR files are specified relative to the root of the
persistence unit". Also, based on one of the mails from Carlo,
"If I have URL vfszip:/somedir/ejb3_pkg_scope.ear/ejb3_pkg_scope.jar then URL(url,
"lib/common.jar") must become:
vfszip:/somedir/ejb3_pkg_scope.ear/lib/common.jar"
In this test case, the util.jar is at factory-test.ear/util.jar and hence the
<jar-file> should be changed to
<jar-file>util.jar</jar-file>
Attached is the patch to fix the tests.
Fix the "factory" tests in testsuite
------------------------------------
Key: EJBTHREE-1754
URL:
https://jira.jboss.org/jira/browse/EJBTHREE-1754
Project: EJB 3.0
Issue Type: Task
Components: testsuite
Affects Versions: 1.1.1
Environment: AS Branch_5_x
Reporter: jaikiran pai
Assignee: jaikiran pai
Attachments: EJBTHREE-1754.patch
During the testing of new release for EJB3, it was observed that the "factory"
tests failing against the Branch_5_x of AS. The failures were because of the deployment
ERRORs of the ears used for these tests:
Caused by: java.io.IOException: Using reverse path on top file handler:
ZipEntryHandler@425886940[path=
context=file:/home/alrubinger/business/jboss/wc/jbossas/projects/ejb3/trunk/testsuite/target/test-lib/factory-test.ear
real=vfszip:/home/alrubinger/business/jboss/wc/jbossas/projects/ejb3/trunk/testsuite/target/test-lib/factory-test.ear],
../util.jar
at
org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:667)
at
org.jboss.virtual.plugins.context.zip.ZipEntryHandler.getChild(ZipEntryHandler.java:165)
at org.jboss.virtual.VirtualFile.getChild(VirtualFile.java:481)
at
org.jboss.jpa.deployment.PersistenceUnitDeployment.getRelativeURL(PersistenceUnitDeployment.java:201)
... 96 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira