Issue Details (XML | Word | Printable)

Key: GERONIMO-4573
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Fredrik Jonson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Geronimo

OpenEJB tries to parse sun-ejb-jar.xml

Created: 05/Mar/09 05:31 PM   Updated: 12/Mar/09 08:24 PM
Return to search
Component/s: OpenEJB
Affects Version/s: 2.1.3
Fix Version/s: 2.1.4
Security Level: public (Regular issues)

Time Tracking:
Not Specified

Environment: Deiban 5.0, sun jdk1.6u12, geronimo-jetty6 2.1.3.
Issue Links:
Reference
 

Resolution Date: 12/Mar/09 08:24 PM


 Description  « Hide
I'm trying to create an application with a inbound rar connector implementation, and have the ear deploy properly on both Geronimo and Glassfish 2.1. To solve that I declare my resource adapter reference both in a openejb-jar.xml for the geronimo specific configuration and a sun-ejb-jar.xml for the glassfish specific configuration.

This solution works on glassfish, it ignores openejb-jar.xml as intended. In geronimo, openejb seems to pick up and try to parse the sun-ejb-jar.xml even though the ejb module also contains both a ejb-jar.xml and openejb-jar.xml.

Since sun-ejb-jar.xml is application server specific for Sun/Glassfish I expect Geronimo to stay away from it entirely.

This issue has been raised before, but I could not find anything relevant in jira. Check the following mail note:
http://marc.info/?l=geronimo-dev&m=118857105323864



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Fredrik Jonson made changes - 07/Mar/09 04:27 PM
Field Original Value New Value
Link This issue is related to OPENEJB-1006 [ OPENEJB-1006 ]
Fredrik Jonson added a comment - 07/Mar/09 04:27 PM

I've created a simplistic patch for openejb 3.0.x, and tested it successfully on geronimo 2.1.3, by replacing the openejb-core jar with a patched one. The patch is attached to OPENEJB-1006.

Fredrik Jonson added a comment - 12/Mar/09 08:24 PM
I can confirm that the solution in OPENEJB-1006 has resolved this issue too. When I replace the openejb-core snapshot jar with the latest release candidate in the repository of a geronimo 2.1.4-SNAPSHOT, and use the following environment setting:

JAVA_OPTS=-Dopenejb.vendor.config=GERONIMO

I no longer see the deployment failure caused by the existence of a sun-ejb-jar.xml in my ejb module.


Fredrik Jonson made changes - 12/Mar/09 08:24 PM
Resolution Fixed [ 1 ]
Fix Version/s 2.1.4 [ 12313380 ]
Status Open [ 1 ] Resolved [ 5 ]
Fredrik Jonson made changes - 12/Mar/09 08:24 PM
Status Resolved [ 5 ] Closed [ 6 ]