[
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 04:43:37 +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=53vRHcRTjm4oH8Y4zgYOBKYwCx48GlotkqQE+MSvy2o=; b=a7DnOgAG7thNTRmKsUQBDBl8nZFSNLOsT6MxEM/sxdC45B0Yfvs4Iqg1juLA+ry1/NNueanx8mcSFiJxOcF9SrMYB4Z6fnhoOJw6zK5wmci7DQI/TNWD8njtZ1WsXeXL4SHf+OX/v2Aowp2NCoQUEdG2soR8VV8sJSGXaEhKr4rO16Q3QZ5zhglR2FqNTe8+xJjY1dJcVRq81aK1Wb6HZoQb2iMlPU9uCF2KGGFBZad60+RHLypGbuiIH1dSK5oBq70ZxMG/setWXUDF9aF4XT6d5ZEtMMUsIJPbcmNa43AXGHwNKELZKCiF5D9AJGDUU2flArZT9y0GHPVJUfYd/w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oaReewTneG9l4k/o3gdVbnNExmNi8eblZkkDae1z6goajH6g4koqwBOIusaQPValDg7zR2Saqk/eBKx6i8uWKM5Eqjrtz0WEJXztg7vvchJb1AfR9la+rPWRz1Ihtf6SRMx+p+lFz7bzJRxyEZal26xWntmCBOq7tupxfkgt6O+8Dmg9b4OCRQx0EKDx60IoEViijegn8+Ucg5TU2lHL0vjuOOygIEhTEckhZy0OiDQJkxQf8/fjoLY4O34OeyYQ4mpB2EoYAtNr5nDLKi28IGSCY1hHNo6zvqT6hJ7MJhyM78Dv7ZFszS136PNgd0klcXPpf6RRWuzn6odTMHUJdg==
- Delivered-to: glassfish-dev@xxxxxxxxxxx
- Ironport-sdr: lAlch1nLcIdubjWb6jefh2DGP9PqPivL6p60MfrH87wTXH2r4aVss82lff6fxgrPY1x1J+4cGf Cw9RU1tyIbOlLe4zkj6LfXY5EiRV8FX2a4AtRtwNHE5EZrua3B3TSp5n8R2jm0su6tlumsMp/e AqX5wVkBsjDesrI8RLMrso2Cb8uD9kuVBgnOyWjt+dpdNkYi49G0vnJUQbNqX2TfQgNkEv4Z3b /9MrP3LRvfbQzKG74IMqqkB9sREd6vVVGCqF+lptE1CVuXSrVl8KB59dxMlS8ZaJ134ID6ybwr suE=
- 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+Aq34H82X7Q0RkKqSVZJkePQbahEYPaQ
- Thread-topic: [glassfish-dev] OSGi help - GlassFish won't start with Jakarta Mail 2.0.0-RC3
Are there any discrepancies in the following build artifacts?
## org.glassfish.main.webservices.connector
Ref) appserver/webservices/connector/target/classes/META-INF/MANIFEST.MF
```
Class-Path: dol.jar jakarta.servlet-api.jar jakarta.annotation-api.jar j
(snip)
amework.jar grizzly-portunif.jar grizzly-http.jar grizzly-http2.jar gri
zzly-http-server.jar grizzly-config.jar management-api.jar internal-api
.jar config-types.jar config-api.jar ★web-glue.jar web-cli.jar amx-javae
e.jar jakarta.management.j2ee-api.jar amx-core.jar glassfish-mbeanserve
r.jar flashlight-framework.jar asm-commons.jar stats77.jar war-util.jar
(snip)
Import-Package:
com.sun.enterprise.config.serverbeans;version="[6.0,7)",
(snip)
org.glassfish.internal.deployment;version="[6.0,7)",
★org.glassfish.web.deployment.descriptor;version="[6.0,7)",
org.glassfish.webservices.connector,
(snip)
```
## org.glassfish.web.deployment.descriptor
Ref) appserver/web/web-glue/target/classes/META-INF/MANIFEST.MF
```
Export-Package:
(snip)
★org.glassfish.web.deployment.descriptor;version="6.0.0";uses:="com.sun.
enterprise.deployment,com.sun.enterprise.deployment.runtime.web,com.sun
.enterprise.deployment.types,com.sun.enterprise.deployment.util,com.sun
.enterprise.deployment.web,javax.servlet,javax.servlet.descriptor,org.g
lassfish.api.deployment.archive,org.glassfish.deployment.common",
org.glassfish.web.deployment.io;version="6.0.0";uses:="com.sun.enterpri
se.deployment.io,com.sun.enterprise.deployment.node,org.glassfish.deplo
yment.common,org.glassfish.web.deployment.descriptor",
```
-----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