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

Freeman Yue Fang commented on KARAF-6715:
-----------------------------------------

This is right.

Because javax.transaction.xa package also exists in standard jdk jigsaw 
modules. So this comes with a problem if javax.transaction.xa package also 
exists in JTA spec. Just like OSGi, this so called split-package issue will 
cause JTA spec can't be loaded in other modules(normally the unnamed module in 
traditional classpath pattern). So before JTA 1.3, to be able to use JTA with 
JDK9+, we have to use something like "--patch-module" to package JTA into the 
standard jdk jigsaw module which also has javax.transaction.xa package, 
something pretty much like we do in Apache Servicemix Bundles project to 
overcome split-package issues between different 3rd jars.

Freeman

> 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)

Reply via email to