Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jta-dev] Intending to create a 2.0.1-RC1

Hi,

On Thu, Feb 3, 2022 at 5:42 PM Tom Jenkinson <tom.jenkinson@xxxxxxxxxx> wrote:
I have had a look inside a recent built version, I am wondering if it is this `Bundle-SymbolicName` which is jakarta.transaction-api that might be the difference?:

The bundle name is rarely important in this context, as the binding is on package names. However, this part doesn't seem quite right:

Export-Package: 
javax.transaction;uses:="javax.interceptor,javax.transaction.xa,javax.enterprise.util,javax.enterprise.context";version="1.2",
javax.transaction;uses:="javax.interceptor,javax.transaction.xa,javax.enterprise.util,javax.enterprise.context";version="1.3"

It should export jakarta.transaction, not javax.transaction. Additionally, it should not export the same package twice. And, it should export 2.0 or 2.0.1, not 1.x.

Looking at the 2.0 version;

unzip -p ../glassfish/modules/jakarta.transaction-api.jar META-INF/MANIFEST.MF

Manifest-Version: 1.0
Bundle-Description: Jakarta(TM) Transactions 2.0 API Design Specificat
 ion
Automatic-Module-Name: jakarta.transaction
Bundle-License: http://www.eclipse.org/legal/epl-2.0, https://www.gnu.
 org/software/classpath/license.html
Bundle-SymbolicName: jakarta.transaction-api
Implementation-Version: 2.0.0
Archiver-Version: Plexus Archiver
Built-By: jenkins
Bundle-ManifestVersion: 2
Bnd-LastModified: 1601380706017
Specification-Vendor: Oracle Corporation
Implementation-Vendor-Id: org.glassfish
Bundle-DocURL: https://github.com/eclipse-ee4j
Bundle-Vendor: EE4J Community
Import-Package: jakarta.enterprise.context,jakarta.enterprise.util,jak
 arta.interceptor,jakarta.transaction;version="2.0.0",javax.transactio
 n.xa
Tool: Bnd-0.0.255
Implementation-Vendor: EE4J Community
Export-Package: jakarta.transaction;uses:="javax.transaction.xa,jakart
 a.interceptor,jakarta.enterprise.context,jakarta.enterprise.util";ver
 sion="2.0.0"
Bundle-Version: 2.0.0
Bundle-Name: jakarta.transaction API
Extension-Name: jakarta.transaction
Created-By: 1.8.0_202 (Oracle Corporation)
Build-Jdk: 1.8.0_202
Specification-Version: 2.0




 

Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven Bundle Plugin
Built-By: jenkins
Build-Jdk: 11.0.2
Automatic-Module-Name: jakarta.transaction
Bnd-LastModified: 1643898344762
Build-Jdk-Spec: 11
Bundle-Description: Jakarta(TM) Transactions 2.0 API Design Specificatio
 n
Bundle-DocURL: https://github.com/eclipse-ee4j
Bundle-License: http://www.eclipse.org/legal/epl-2.0, https://www.gnu.or
 g/software/classpath/license.html
Bundle-ManifestVersion: 2
Bundle-Name: jakarta.transaction API
Bundle-SymbolicName: jakarta.transaction-api
Bundle-Vendor: EE4J Community
Bundle-Version: 2.0.1
Export-Package: javax.transaction;uses:="javax.interceptor,javax.transac
 tion.xa,javax.enterprise.util,javax.enterprise.context";version="1.2",j
 avax.transaction;uses:="javax.interceptor,javax.transaction.xa,javax.en
 terprise.util,javax.enterprise.context";version="1.3"
Extension-Name: jakarta.transaction
Implementation-Vendor: EE4J Community
Implementation-Vendor-Id: org.glassfish
Implementation-Version: 2.0.1
Import-Package: jakarta.enterprise.context;version="[3.0,4)",jakarta.ent
 erprise.util;version="[3.0,4)",jakarta.interceptor;version="[2.0,3)",ja
 vax.enterprise.context,javax.enterprise.util,javax.transaction.xa
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
Specification-Vendor: Oracle Corporation
Specification-Version: 2.0
Tool: Bnd-5.1.1.202006162103

On Thu, 3 Feb 2022 at 16:38, Tom Jenkinson <tom.jenkinson@xxxxxxxxxx> wrote:
Thank you, Arjan. I wonder if the OSGi information in the transaction jar isn't identifying itself as jakarta.transaction. I will take a look at that.

On Thu, 3 Feb 2022 at 16:33, arjan tijms <arjan.tijms@xxxxxxxxx> wrote:
If you pretty print the OSGi/Felix output it's a bit easier to see:

Unable to resolve
    org.glassfish.main.resources.mail-connector [207]
    missing requirement
        &(package = jakarta.resource) (version >= 2.0.0) (!(version >= 3.0.0))
        caused by:
            Unable to resolve
                jakarta.resource-api [148]
                missing requirement
                    &(package = jakarta.transaction) (version >= 2.0.0) (!(version >= 3.0.0)))]


This by itself looks somewhat strange, since 2.0.1 is obviously in that range. Might rather be that it's not found at all.

Kind regards,
Arjan Tijms


_______________________________________________
jta-dev mailing list
jta-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jta-dev
_______________________________________________
jta-dev mailing list
jta-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jta-dev

Back to the top