[
https://issues.apache.org/jira/browse/KARAF-6715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17104534#comment-17104534
]
Zheng Feng commented on KARAF-6715:
-----------------------------------
[~ggrzybek] I think the removing of the javax.transaction.xa packages in JTA
1.3 since 2017 when working with Java 9 [1]
javax.transaction.xa supports XA transactions in JDBC.and is co-located with
JDBC in the java.sql module in Java SE 9. Because the java.sql module is not
upgradeable, it is not possible for a standalone version of JTA to override the
Java SE version of the XA package, but this is generally acceptable to
applications because the XA package has been stable for many years and the Java
SE version is identical to the Java EE version.
[1] https://javaee.groups.io/g/jta-spec/message/1
> 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)