[arquillian-issues] [JBoss JIRA] (ARQ-593) glassfish-resources.xml (application scoped resources) not loaded with glassfish-remote
Aslak Knutsen (JIRA)
jira-events at lists.jboss.org
Mon Apr 29 17:47:53 EDT 2013
[ https://issues.jboss.org/browse/ARQ-593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aslak Knutsen closed ARQ-593.
-----------------------------
> glassfish-resources.xml (application scoped resources) not loaded with glassfish-remote
> ---------------------------------------------------------------------------------------
>
> Key: ARQ-593
> URL: https://issues.jboss.org/browse/ARQ-593
> Project: Arquillian
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: GlassFish Containers
> Affects Versions: 1.0.0.Alpha5
> Environment: MacOSX Lion, Maven 3, arquillian 1.0.0.Alpha5, arquillian-glassfish-remote-3.1 1.0.0.Alpha5, Glassfish 3.1.1, Java 1.6.0_26 64bits
> Reporter: Hugo de Paix de Coeur
> Assignee: Vineet Reynolds
>
> An EJB Jar with an glassfish-resources.xml references an jdbc/rt JNDI resource.
> It's correctly read as java:app/jdbc/rt by the EJB package generated by maven but failed with Arquillian/ShrinkWrap targeting glassfish-remote-3.1
> ShrinkWrap :
> JavaArchive archive =
> ShrinkWrap.create(JavaArchive.class, "Project-ejb-1.0.0-SNAPSHOT.jar")
> .addPackages(true, "com.company.project.ejb.entities")
> .addPackages(true, "com.company.project.ejb.model")
> .addAsManifestResource("META-INF/ejb-jar.xml", ArchivePaths.create("ejb-jar.xml"))
> .addAsManifestResource("META-INF/sun-ejb-jar.xml", ArchivePaths.create("sun-ejb-jar.xml"))
> .addAsManifestResource("META-INF/glassfish-resources-test.xml", ArchivePaths.create("glassfish-resources.xml"))
> .addAsManifestResource("META-INF/persistence-test.xml", ArchivePaths.create("persistence.xml"));
> persistence.xml :
> <?xml version="1.0" encoding="UTF-8"?>
> <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> <persistence-unit name="RTUnit" transaction-type="JTA">
> <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
> <jta-data-source>java:app/jdbc/rt</jta-data-source>
> <exclude-unlisted-classes>false</exclude-unlisted-classes>
> </persistence-unit>
>
> </persistence>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list