You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Grzegorz Grzybek (Jira)" <ji...@apache.org> on 2021/02/09 12:33:00 UTC

[jira] [Comment Edited] (KARAF-6715) Wrong exports of javax.transaction package from jre.properties

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

Grzegorz Grzybek edited comment on KARAF-6715 at 2/9/21, 12:32 PM:
-------------------------------------------------------------------

FWIW

h4. JTA 1.3 vs JTA 1.2
* added {{serialVersionUID}} to some exception classes
* {{xa}} package removed, quoting JTA spec:
{quote}
Remove the javax.transaction.xa types as they have been subsumed by Java SE.
{quote}

h4. JTA 1.2 vs JTA 1.1
* annotations added

h4. JTA 1.1 vs JTA 1.0
* some methods have different {{throws}} clause

But it's not official list of changes. I checked the PDF from JTA spec and actual sources of JTA Jars from Maven Central.



was (Author: gzres):
FWIW

h4. JTA 1.3 vs JTA 1.2
* added {{serialVersionUID}} to some exception classes
* {{xa}} package removed, quoting JTA spec:
{quote}
Remove the javax.transaction.xa types as they have been subsumed by Java SE.
{quote}

h4. JTA 1.2 vs JTA 1.1
* annotations added

h4. JTA 1.1 vs JTA 1.0
* some methods have different {{throws}} clause

But it's not official list of changes. I checked the PDF from JTA spec and actual sources of JTA Jars from Maven Central.

Strange thing is that javax.transaction/javax.transaction-api/1.3 doesn't have {{xa}} package...

> Wrong exports of javax.transaction package from jre.properties
> --------------------------------------------------------------
>
>                 Key: KARAF-6715
>                 URL: https://issues.apache.org/jira/browse/KARAF-6715
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>            Reporter: Grzegorz Grzybek
>            Assignee: Grzegorz Grzybek
>            Priority: Major
>             Fix For: 4.3.0, 4.2.9
>
>
> For example, for JDK8 there's:
> {noformat}
>  javax.transaction; javax.transaction.xa; partial=true; mandatory:=partial, \
> {noformat}
> while it should rather be:
> {noformat}
>  javax.transaction; partial=true; mandatory:=partial, \
>  javax.transaction.xa; partial=true; mandatory:=partial, \
> {noformat}
> I have problem with DBCP2 2.7:
> {noformat}
> Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.apache.commons.commons-dbcp2/2.7.0: missing requirement [org.apache.commons.commons-dbcp2/2.7.0] osgi.wiring.package; mandatory:=partial; filter:="(&(osgi.wiring.package=javax.transaction.xa)(version>=1.1.0)(partial=true))"
> 	at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343)
> 	... 14 more
> {noformat}
> Even if I have {{mvn:javax.transaction/javax.transaction-api/1.2}} bundle installed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)