Skip to main content

[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: "sawamura.hiroki@xxxxxxxxxxx" <sawamura.hiroki@xxxxxxxxxxx>
  • Date: Thu, 12 Mar 2020 01:39:08 +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=T/j8EZAzatAn69bh3gO2r0vp3Y4FonrgqYBMGGw1Wf8=; b=nfBHgnzXzXAiFWNnBUoXrhn/MKT1Yax6M11pjS3MKVPGxB0DFUBAjWx2cbzOSGRCAFVQAHZLBvfrdOC+gpjxA+L5lRJjJnivZS8yJJbJ0S/K1XfqrrX8Iqg7IuGx6d0ufuoXeKr4KN8fyie5BqmWxoSel28VArsEa9i6bFUapv+GP5m1CEV5OLKiJu6H1cbjS4gV8pl0agkERTNsYgN7998PhZtuVOhpkXUk3TgyJiMzbwmqYfu4cj/Ut5fwr7enK1ZrbHomF1pWByW0C8Kz198cMtwog738btMUvAH8BSkpzOw8vdQazIa80nbcDR26GjVvlm7F83da05obdDWXSg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SCElHdQsT89gsjJ9FlJIX6JA+sJ8iGpg6M5/iTmxh+Re2AUAieO5J5CL+XXtgtgLlENumFAbBRQHw3cN5tB6BXkLqGaQ3C2iGPgRw2Yt6ORKYZTLc+KysDlJSgoOTL9cd9nEFKoUjU2hz8tTJspeg8G22qUr/jV/S5GMuUjjvq0BUWm3w0gRz4ISbgP8HzqwdIQVKAteVwWCZSnYKhuWePR4/C7Tguabb5SPkUh/M1j0Ha7UJ34RNMt7gQvjnOe3lucDYAjr1FZAY5ILUV/oa8JzMLdPOZ4E6rDosWkWnoAOXvoBhlPFmCjKfEgD7CjNRWXPEtYG8+bmzAsbcy2MxA==
  • Delivered-to: glassfish-dev@xxxxxxxxxxx
  • Ironport-sdr: abonXHjPcfBZjpW6HJ+FkOTcth5vtHKEpGOHRnY+Pjay0twrajCYbsaJNdjiDBGZUgttCbtTgl v0UrJ3NzbjfbFu/6QvHwxUSQzZO1QtAVGeXkyTGFD4DVvIRTuG1CMccADMHks+vH9T4k/whkVu ICdvaT6ZI0UeYAJitIObpUloworkSqSqzMMxCXenJa1cUEOHNOb+9Lfqo+JHkp20KREojPdOVR oSV5xpSc7MaiagEy7GbQPayJWBq3kx+uKXqPPQDCjQH+Y0+/8ftwO+qxlyFNPPLtXQT9teFhsL P5U=
  • 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+Aq34H82X7Q0RkKqSVZJkePQbahEKlyQ
  • Thread-topic: [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

Back to the top