[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [glassfish-dev] OSGi help - GlassFish won't start with Jakarta Mail 2.0.0-RC3
|
- From: "kzr@xxxxxxxxxxx" <kzr@xxxxxxxxxxx>
- Date: Thu, 12 Mar 2020 02:00:53 +0000
- Accept-language: ja-JP, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NAHU1NGypgw+J8Oyz0SIDNVumdIIKlK7eXR/pnU0fw8=; b=CF2xq9OKkSgO538QG+0xHH9osOEEWYkTonCUGLZouICWCg8Z5sLdWgu3VDagkgveQc+iQHq77HBHBluUzm8cE0Xun8yIEBWoUaHsgW08kHwJsr83wVgWwVobmU9lbgKSebiSaqXMOtPaPZjZOUZG4rJxRzJtHYkXeLDcJu9p9zQD9ny3qyhdr5fepiF/1yoM3dZ+Uoe3YZnHYS0vPbCpHg4DaWhTsQtp9uTl7+RUhG5TdTV8B8odELGWp8yIi3ur8KJJuU7WB3PvKJtLgzL89ikgwlOSlhPqmSlSrXUYzpiLx8MJOnRYIqKPMrTSsFz9F2xv8MbjJWbujxKB2GsEyw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J7uunB1VyfBcty+bkzFmc6uh39ut+q2kylr5jAOKK92G1yCBZAVPJHSdUBQ1sleCnkjKJIfBuM1juxx7JA1ArvNrRmIgvc5V5bzmqQ1mW6ACdJqdfr04MFC0x551nkrxXYdNFXhnLwUmigVomCSj1JJEwJmSz6BQBiF2obZwBmxncSgSFdYJtvqNjTX7uD1qL74Kf04mMIxKB6sh6K2ZzhAsMxSnkpFhcJJwNcijZndh6jmIPdkRAbMt1aNZb9CacsFU5gaw+8c0vj+5Y+1vrZ1H3HGSvmZiNtHchLaOtUmofO9i84P6N8q1r4cCwsLkVZREchZ9hPMF0q5t2+TKbw==
- Delivered-to: glassfish-dev@xxxxxxxxxxx
- Ironport-sdr: ymtDeQUHLTUkaZ2V4Xq9SKSVyt7r6q+Rikx69P6jTsH/VpYQPJu5RbpyIVpV5hk4D1V0wzMd5e AdfB6rb1wbsqkWMtsXj8Td3BG5Dppn56vJfqSwNhVhECIesGQZuqB+FTksJUEaEIvfXtrtqZoB JrTpQyPhDcUYFQ2swHOdLwF1ZHwqiNg7H/ZU4eIAVLc4KbncB5NwpLa9wRyJyvvEwCntnA3pNs iIAwgxsz0pOJQzycxPMEYSaxI5oQvCML4/VefHwjzCbakUPQAAli6OsMQ+FhyPJGuVQsXK3D/v zxg=
- List-archive: <https://www.eclipse.org/mailman/private/glassfish-dev>
- List-help: <mailto:glassfish-dev-request@eclipse.org?subject=help>
- List-subscribe: <https://www.eclipse.org/mailman/listinfo/glassfish-dev>, <mailto:glassfish-dev-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://www.eclipse.org/mailman/options/glassfish-dev>, <mailto:glassfish-dev-request@eclipse.org?subject=unsubscribe>
- Thread-index: AQHV+Aq3uKt/oe8WA0eI+1WzT/5Kf6hELfUAgAAFRKA=
- Thread-topic: [glassfish-dev] OSGi help - GlassFish won't start with Jakarta Mail 2.0.0-RC3
https://osgi.org/specification/osgi.core/7.0.0/framework.module.html#d0e3477
It says:
Versions are comparable. Their comparison is done numerically and sequentially
on the major, minor, and micro components and
lastly using the String class compareTo method for the qualifier.
So , 2.0.0.RC3 is younger than 2.0.0.
> -----Original Message-----
> From: glassfish-dev-bounces@xxxxxxxxxxx <glassfish-dev-bounces@xxxxxxxxxxx> On Behalf Of
> sawamura.hiroki@xxxxxxxxxxx
> Sent: Thursday, March 12, 2020 10:39 AM
> To: glassfish developer discussions <glassfish-dev@xxxxxxxxxxx>
> Subject: Re: [glassfish-dev] OSGi help - GlassFish won't start with Jakarta Mail 2.0.0-RC3
>
> Hi Bill,
>
> > I believe OSGi considers a version like 2.0.0.RC3 to be greater than version 2.0.0, so it seems like the manifest
> should match the requirement.
>
> I'm not familiar with the OSGi version format, but the RC version means a release candidate, so it should be older
> than the released version. If not, that seems to be an issue...
>
> Regards,
> Hiroki
>
> -----Original Message-----
> From: glassfish-dev-bounces@xxxxxxxxxxx <glassfish-dev-bounces@xxxxxxxxxxx> On Behalf Of Bill Shannon
> Sent: Thursday, March 12, 2020 10:04 AM
> To: glassfish developer discussions <glassfish-dev@xxxxxxxxxxx>
> Subject: [glassfish-dev] OSGi help - GlassFish won't start with Jakarta Mail 2.0.0-RC3
>
> I've updated my fork of GlassFish to use the jakarta.* versions of Jakarta Activation and Jakarta Mail. The build went
> fine, but unfortunately GlassFish fails to start. Here's the relevant error:
>
> [exec] Caused by: org.osgi.framework.BundleException: Unable to resolve
> org.glassfish.main.webservices.connector [111](R 111.0): missing requirement
> [org.glassfish.main.webservices.connector [111](R 111.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.glassfish.web.deployment.descriptor)(version>=6.0.0)(!(version>=7.0.0)))
> [caused by: Unable to resolve org.glassfish.main.web.glue [189](R 189.0):
> missing requirement [org.glassfish.main.web.glue [189](R 189.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.catalina)(version>=6.0.0)(!(version>=7.0.0)))
> [caused by: Unable to resolve org.glassfish.main.web.core [119](R 119.0):
> missing requirement [org.glassfish.main.web.core [119](R 119.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.apache.naming.factory)(version>=6.0.0)(!(version>=7.0.0)))
> [caused by: Unable to resolve org.glassfish.main.web.naming [104](R 104.0):
> missing requirement [org.glassfish.main.web.naming [104](R 104.0)] osgi.wiring.package;
> (&(osgi.wiring.package=jakarta.mail.internet)(version>=2.0.0)(!(version>=3.0.0)))
> [caused by: Unable to resolve com.sun.mail.jakarta.mail [195](R 195.0): missing requirement
> [com.sun.mail.jakarta.mail [195](R 195.0)] osgi.wiring.package; (osgi.wiring.package=jakarta.activation)]]]]
> Unresolved requirements:
> [[org.glassfish.main.webservices.connector [111](R 111.0)] osgi.wiring.package;
> (&(osgi.wiring.package=org.glassfish.web.deployment.descriptor)(version>=6.0.0)(!(version>=7.0.0)))]
>
> There's some stuff in there about jakarta.mail so I assume that's the source of the problem since that's the thing that
> I changed. It looks like it wants version 2.0.0 or newer of the package, which is correct.
>
> Here's the manifest file from the Jakarta Mail jar file:
>
> Manifest-Version: 1.0
> Automatic-Module-Name: jakarta.mail
> Bnd-LastModified: 1583795629871
> Build-Jdk: 11.0.4
> Built-By: shannon
> Bundle-Description: Jakarta Mail API
> Bundle-DocURL: http://www.oracle.com
> Bundle-License: http://www.eclipse.org/legal/epl-2.0, https://www.gnu.or g/software/classpath/license.html,
> http://www.eclipse.org/org/documents
> /edl-v10.php
> Bundle-ManifestVersion: 2
> Bundle-Name: Jakarta Mail API
> Bundle-SymbolicName: com.sun.mail.jakarta.mail
> Bundle-Vendor: Oracle
> Bundle-Version: 2.0.0.RC3
> Created-By: Apache Maven Bundle Plugin
> DynamicImport-Package: *
> Export-Package:
> jakarta.mail;version="2.0";uses:="jakarta.activation,jakarta.mail.event
> ,jakarta.mail.search",
> jakarta.mail.event;version="2.0";uses:="jakarta.mail",
> jakarta.mail.internet;version="2.0";uses:="jakarta.activation,jakarta.m
> ail",
> jakarta.mail.search;version="2.0";uses:="jakarta.mail",
> jakarta.mail.util;version="2.0";uses:="jakarta.activation,jakarta.mail.
> internet",
> com.sun.mail.imap;version="2.0.0";uses:="com.sun.mail.iap,com.sun.mail.
> imap.protocol,com.sun.mail.util,jakarta.activation,jakarta.mail,jakarta
> .mail.event,jakarta.mail.internet,jakarta.mail.search",
> com.sun.mail.imap.protocol;version="2.0.0";uses:="com.sun.mail.iap,com.
> sun.mail.imap,com.sun.mail.util,jakarta.mail,jakarta.mail.internet,jaka
> rta.mail.search",
> com.sun.mail.iap;version="2.0.0";uses:="com.sun.mail.util",
> com.sun.mail.pop3;version="2.0.0";uses:="com.sun.mail.util,jakarta.mail
> ,jakarta.mail.internet",
> com.sun.mail.smtp;version="2.0.0";uses:="com.sun.mail.util,jakarta.mail
> ,jakarta.mail.internet",
> com.sun.mail.util;version="2.0.0";uses:="jakarta.mail,jakarta.mail.inte
> rnet,javax.net.ssl",
> com.sun.mail.util.logging;version="2.0.0";uses:="jakarta.mail",
> com.sun.mail.handlers;version="2.0.0";uses:="jakarta.activation"
> Extension-Name: jakarta.mail
> Implementation-Title: jakarta.mail
> Implementation-Vendor: Oracle
> Implementation-Vendor-Id: com.sun
> Implementation-Version: 2.0.0-RC3
> Import-Package:
> jakarta.activation,
> javax.security.sasl;resolution:=optional,
> com.sun.mail.iap;version="[2.0,3)",
> com.sun.mail.imap;version="[2.0,3)",
> com.sun.mail.util;version="[2.0,3)",
> jakarta.mail;version="[2.0,3)",
> jakarta.mail.event;version="[2.0,3)",
> jakarta.mail.internet;version="[2.0,3)",
> jakarta.mail.search;version="[2.0,3)",
> jakarta.mail.util;version="[2.0,3)",
> javax.crypto,
> javax.crypto.spec,
> javax.net,
> javax.net.ssl,
> javax.security.auth.callback,
> javax.security.auth.x500,
> javax.xml.transform,
> javax.xml.transform.stream,
> sun.security.util;resolution:=optional
> Probe-Provider-XML-File-Names: META-INF/gfprobe-provider.xml
> Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
> Specification-Title: Jakarta Mail API Design Specification
> Specification-Vendor: Oracle
> Specification-Version: 2.0
> Tool: Bnd-3.5.0.201709291849
>
>
> I believe OSGi considers a version like 2.0.0.RC3 to be greater than version 2.0.0, so it seems like the manifest
> should match the requirement.
>
> Can anyone see what's wrong with the manifest or the requirement that's causing it to fail?
> _______________________________________________
> glassfish-dev mailing list
> glassfish-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev
> _______________________________________________
> glassfish-dev mailing list
> glassfish-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev