[ 
https://issues.apache.org/jira/browse/OPENJPA-2607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15033968#comment-15033968
 ] 

Mark Struberg commented on OPENJPA-2607:
----------------------------------------

Would apreciate if you can send a fix with the new versions.
I'm not an OSGi guy but I assume the bits are in trunk/openjpa/pom.xml line 123

                        
<Import-Package>com.ibm.*;resolution:=optional,org.postgresql.*;resolution:=optional,org.apache.tools.ant.*;resolution:=optional,org.apache.log4j.*;resolution:=optional,org.slf4j.*;resolution:=optional,org.apache.commons.logging.*;resolution:=optional,javax.activation.xa*;resolution:=optional,javax.jms.*;version="[1.1.0,1.3)";resolution:=optional,javax.transaction.*;version="[1.1.0,2.0)";resolution:=optional,javax.validation.*;version="[1.0.0,1.2)";resolution:=optional,javax.xml.bind.*;resolution:=optional,serp.*;resolution:=optional,javax.persistence.*;version="[1.1.0,2.1)",*</Import-Package>

Just try out the upgraded version and attach the final pom to this ticket as 
patch plz. I'll apply it asap

> Import range for javax.transaction is to small
> ----------------------------------------------
>
>                 Key: OPENJPA-2607
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2607
>             Project: OpenJPA
>          Issue Type: Improvement
>          Components: osgi
>    Affects Versions: 2.2.2, 2.3.0, 2.4.0
>            Reporter: Christian Schneider
>             Fix For: 2.2.3, 2.3.1, 2.4.1
>
>
> Currently the import for javax.transaction looks like this:
> javax.transaction.*;version="[1.1.0,1.2)";resolution:=optional
> Unfortunately this makes openjpa incompatible with jta 1.2 which should be 
> compatible for a consumer. As the Aries blueprint transaction support now 
> uses jta 1.2 it does not work with openjpa.
> I just change the import range on trunk and tested using the aries itests. 
> It seems openjpa works fine with jta 1.2 if the import range is corrected 
> like below:
> javax.transaction.*;version="[1.1.0,2)";resolution:=optional
> I only tested with trunk (2.4.1-SNAPSHOT) but the increased range should work 
> for 2.3.x and 2.2.x too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to