Apache Sling Deployment Issues in Wildfly 24.0.1-Final - sling

We have developed custom Apache Sling application and deployed in Wildfly 13.0.0-Final and running successfully. We are planning to upgrade the Application Server to Wildfly 24.0.1Final version. While deploying custom Apache Sling application in Wildfly 24.0.1-Final receiving following deployment errors.
2021-09-08 15:23:13 ERROR servlet:392 - ERROR: Error starting slinginstall:d:\mnt\SlingFileSystem\data\sling\startup\1\org.apache.felix.http.bridge-3.0.18.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0))) Unresolved requirements: [[org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0))) Unresolved requirements: [[org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
We are tried Servlet version 3.1.0, 3.5.0 and 4.0.0, but still facing same issues while deploying the application.
Here is the complete error list
15:22:47,848 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 106) Initializing Mojarra 2.3.14.SP04 for context ''
2021-09-08 15:23:13 ERROR servlet:392 - ERROR: Error starting slinginstall:d:\mnt\SlingFileSystem\data\sling\startup\1\org.apache.felix.http.bridge-3.0.18.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0))) Unresolved requirements: [[org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0))) Unresolved requirements: [[org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:14 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/5/org.apache.felix.webconsole-4.3.4.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))] Unresolved requirements: [[org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))] Unresolved requirements: [[org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:14 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/5/org.apache.felix.webconsole.plugins.ds-2.0.6.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.felix.webconsole.plugins.ds [29](R 29.0): missing requirement [org.apache.felix.webconsole.plugins.ds [29](R 29.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole.i18n)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.felix.webconsole.plugins.ds [29](R 29.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole.i18n)(version>=1.0.0)(!(version>=2.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.felix.webconsole.plugins.ds [29](R 29.0): missing requirement [org.apache.felix.webconsole.plugins.ds [29](R 29.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole.i18n)(version>=1.0.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.felix.webconsole.plugins.ds [29](R 29.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole.i18n)(version>=1.0.0)(!(version>=2.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:14 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/5/org.apache.felix.webconsole.plugins.obr-1.0.4.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.felix.webconsole.plugins.obr [32](R 32.0): missing requirement [org.apache.felix.webconsole.plugins.obr [32](R 32.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.0.0)(!(version>=4.0.0))) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.felix.webconsole.plugins.obr [32](R 32.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.0.0)(!(version>=4.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.felix.webconsole.plugins.obr [32](R 32.0): missing requirement [org.apache.felix.webconsole.plugins.obr [32](R 32.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.0.0)(!(version>=4.0.0))) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.felix.webconsole.plugins.obr [32](R 32.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.0.0)(!(version>=4.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:14 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/5/org.apache.felix.webconsole.plugins.packageadmin-1.0.4.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.felix.webconsole.plugins.packageadmin [33](R 33.0): missing requirement [org.apache.felix.webconsole.plugins.packageadmin [33](R 33.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)(!(version>=4.0.0))) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.felix.webconsole.plugins.packageadmin [33](R 33.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)(!(version>=4.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.felix.webconsole.plugins.packageadmin [33](R 33.0): missing requirement [org.apache.felix.webconsole.plugins.packageadmin [33](R 33.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)(!(version>=4.0.0))) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.felix.webconsole.plugins.packageadmin [33](R 33.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)(!(version>=4.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:14 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/5/org.apache.sling.commons.log.webconsole-1.0.0.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.commons.log.webconsole [35](R 35.0): missing requirement [org.apache.sling.commons.log.webconsole [35](R 35.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)(!(version>=4.0.0))) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.sling.commons.log.webconsole [35](R 35.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)(!(version>=4.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.commons.log.webconsole [35](R 35.0): missing requirement [org.apache.sling.commons.log.webconsole [35](R 35.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)(!(version>=4.0.0))) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.sling.commons.log.webconsole [35](R 35.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)(!(version>=4.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:14 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/5/org.apache.sling.extensions.webconsolesecurityprovider-1.0.0.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.extensions.webconsolesecurityprovider [38](R 38.0): missing requirement [org.apache.sling.extensions.webconsolesecurityprovider [38](R 38.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.sling.extensions.webconsolesecurityprovider [38](R 38.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0))])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.extensions.webconsolesecurityprovider [38](R 38.0): missing requirement [org.apache.sling.extensions.webconsolesecurityprovider [38](R 38.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0)) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.sling.extensions.webconsolesecurityprovider [38](R 38.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.1.0))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:14 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/10/org.apache.felix.http.sslfilter-1.2.2.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.felix.http.sslfilter [41](R 41.0): missing requirement [org.apache.felix.http.sslfilter [41](R 41.0)] osgi.implementation; (&(osgi.implementation=osgi.http)(version=1.0)) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))] Unresolved requirements: [[org.apache.felix.http.sslfilter [41](R 41.0)] osgi.implementation; (&(osgi.implementation=osgi.http)(version=1.0))])
org.osgi.framework.BundleException: Unable to resolve org.apache.felix.http.sslfilter [41](R 41.0): missing requirement [org.apache.felix.http.sslfilter [41](R 41.0)] osgi.implementation; (&(osgi.implementation=osgi.http)(version=1.0)) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))] Unresolved requirements: [[org.apache.felix.http.sslfilter [41](R 41.0)] osgi.implementation; (&(osgi.implementation=osgi.http)(version=1.0))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:19 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/15/org.apache.sling.jcr.davex-1.3.8.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.jcr.davex [69](R 69.0): missing requirement [org.apache.sling.jcr.davex [69](R 69.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.api.resource)(version>=2.1.0)(!(version>=3.0.0))) [caused by: Unable to resolve org.apache.sling.api [121](R 121.0): missing requirement [org.apache.sling.api [121](R 121.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))] Unresolved requirements: [[org.apache.sling.jcr.davex [69](R 69.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.api.resource)(version>=2.1.0)(!(version>=3.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.jcr.davex [69](R 69.0): missing requirement [org.apache.sling.jcr.davex [69](R 69.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.api.resource)(version>=2.1.0)(!(version>=3.0.0))) [caused by: Unable to resolve org.apache.sling.api [121](R 121.0): missing requirement [org.apache.sling.api [121](R 121.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))] Unresolved requirements: [[org.apache.sling.jcr.davex [69](R 69.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.sling.api.resource)(version>=2.1.0)(!(version>=3.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:19 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/15/org.apache.sling.jcr.jackrabbit.accessmanager-3.0.0.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.jcr.jackrabbit.accessmanager [70](R 70.0): missing requirement [org.apache.sling.jcr.jackrabbit.accessmanager [70](R 70.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0))) Unresolved requirements: [[org.apache.sling.jcr.jackrabbit.accessmanager [70](R 70.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.jcr.jackrabbit.accessmanager [70](R 70.0): missing requirement [org.apache.sling.jcr.jackrabbit.accessmanager [70](R 70.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0))) Unresolved requirements: [[org.apache.sling.jcr.jackrabbit.accessmanager [70](R 70.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:19 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/15/org.apache.sling.jcr.jackrabbit.usermanager-2.2.6.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.jcr.jackrabbit.usermanager [71](R 71.0): missing requirement [org.apache.sling.jcr.jackrabbit.usermanager [71](R 71.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0))) Unresolved requirements: [[org.apache.sling.jcr.jackrabbit.usermanager [71](R 71.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.jcr.jackrabbit.usermanager [71](R 71.0): missing requirement [org.apache.sling.jcr.jackrabbit.usermanager [71](R 71.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0))) Unresolved requirements: [[org.apache.sling.jcr.jackrabbit.usermanager [71](R 71.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:19 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/15/org.apache.sling.jcr.webconsole-1.0.2.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.jcr.webconsole [74](R 74.0): missing requirement [org.apache.sling.jcr.webconsole [74](R 74.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.0.0)(!(version>=4.0.0))) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.sling.jcr.webconsole [74](R 74.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.0.0)(!(version>=4.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.jcr.webconsole [74](R 74.0): missing requirement [org.apache.sling.jcr.webconsole [74](R 74.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.0.0)(!(version>=4.0.0))) [caused by: Unable to resolve org.apache.felix.webconsole [28](R 28.0): missing requirement [org.apache.felix.webconsole [28](R 28.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))]] Unresolved requirements: [[org.apache.sling.jcr.webconsole [74](R 74.0)] osgi.wiring.package; (&(osgi.wiring.package=org.apache.felix.webconsole)(version>=3.0.0)(!(version>=4.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)
2021-09-08 15:23:19 ERROR servlet:392 - ERROR: Error starting launchpad:/resources/install/15/org.apache.sling.jcr.webdav-2.3.8.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.sling.jcr.webdav [75](R 75.0): missing requirement [org.apache.sling.jcr.webdav [75](R 75.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))] Unresolved requirements: [[org.apache.sling.jcr.webdav [75](R 75.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0)))])
org.osgi.framework.BundleException: Unable to resolve org.apache.sling.jcr.webdav [75](R 75.0): missing requirement [org.apache.sling.jcr.webdav [75](R 75.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0))) [caused by: Unable to resolve org.apache.felix.http.bridge [7](R 7.0): missing requirement [org.apache.felix.http.bridge [7](R 7.0)] osgi.wiring.package; (&(osgi.wiring.package=javax.servlet)(version>=3.1.0)(!(version>=4.0.0)))] Unresolved requirements: [[org.apache.sling.jcr.webdav [75](R 75.0)] osgi.wiring.package; (&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0)))]
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4148)
at org.apache.felix.framework.Felix.startBundle(Felix.java:2118)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372)
at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
at java.lang.Thread.run(Thread.java:748)

Related

Karaf unable to install jena

I'm trying to install jena (as a requirement of Islandora), running Karaf 4.2.11, however when I run the command to install, /opt/karaf/bin/client feature:install jena, an error is returned. I got the full text of the error, located below, from the Karaf log.
2021-09-14T11:10:00,610 | ERROR | Thread-57 | ShellUtil | 38 - org.apache.karaf.shell.core - 4.2.11 | Exception caught while executing command
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=jena; type=karaf.feature; version="[4.1.0,4.1.0]"; filter:="(&(osgi.identity=jena)(type=karaf.feature)(version>=4.1.0)(version<=4.1.0))" [caused by: Unable to resolve jena/4.1.0: missing requirement [jena/4.1.0] osgi.identity; osgi.identity=org.apache.jena.osgi; type=osgi.bundle; version="[4.1.0,4.1.0]"; resolution:=mandatory [caused by: Unable to resolve org.apache.jena.osgi/4.1.0: missing requirement [org.apache.jena.osgi/4.1.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[?:?]
at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:392) ~[?:?]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:378) ~[?:?]
at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:332) ~[?:?]
at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:257) ~[?:?]
at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:401) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1063) ~[?:?]
at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:998) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_292]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_292]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_292]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve jena/4.1.0: missing requirement [jena/4.1.0] osgi.identity; osgi.identity=org.apache.jena.osgi; type=osgi.bundle; version="[4.1.0,4.1.0]"; resolution:=mandatory [caused by: Unable to resolve org.apache.jena.osgi/4.1.0: missing requirement [org.apache.jena.osgi/4.1.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[?:?]
... 12 more
Caused by: org.apache.felix.resolver.reason.ReasonException: Unable to resolve org.apache.jena.osgi/4.1.0: missing requirement [org.apache.jena.osgi/4.1.0] osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=11))"
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[?:?]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1343) ~[?:?]
... 12 more
I've not used Karaf before, but I've looked through a lot of issues and can't seem to decipher the error, though I think it has to do with the Java version? I'm running version 11.0.11 of openJDK. It seems to me like that's the version it's asking for, though. Is there some configuration I'm missing?
I'm happy to supply any other troubleshooting info, I just can't find where to go from here, not having worked with Karaf before.
The issue here is that Karaf is being run with Java 8. You can see evidence of that in the line:
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_292]
(The execution environment is Java 1.8.0_292)
Jena 4.x requires Java 11+
In order to use Java 11, be sure to set the JAVA_HOME environment value to point to the correct installation. On linux-based environments, this can often be handled with the update-alternatives --config java command

neo4j : "Parse Generalized time, invalid format"

neo4j: Database failed to start: DB
I installed Neo4j Destop 1.1.8 in window10 but could not start the database, including I could not access the page. localhost: 7474, browser Notify that this site can not be accessed.
I have installed Zulu and java 8.
Screen says
Database failed to start: DB [database-*****-****-***-*****-*******] 'v3.4.6' exited with status 'KILLED'. Check the logs
And here are my logs.
2018-08-25 08:45:11.051+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#2f17e30d' was successfully initialized, but failed to start. Please see the attached cause exception "Parse Generalized time, invalid format". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#2f17e30d' was successfully initialized, but failed to start. Please see the attached cause exception "Parse Generalized time, invalid format".
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#2f17e30d' was successfully initialized, but failed to start. Please see the attached cause exception "Parse Generalized time, invalid format".
at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:220)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:111)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:79)
at com.neo4j.server.enterprise.CommercialEntryPoint.main(CommercialEntryPoint.java:22)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase#2f17e30d' was successfully initialized, but failed to start. Please see the attached cause exception "Parse Generalized time, invalid format".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:466)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:212)
... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory, C:\Users\Sarandar\.Neo4jDesktop\neo4jDatabases\database-3d6b2a11-4a4c-4be3-9270-cbe4e3e639f0\installation-3.4.6\data\databases\graph.db
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:212)
at org.neo4j.kernel.enterprise.EnterpriseGraphDatabase.<init>(EnterpriseGraphDatabase.java:39)
at org.neo4j.server.enterprise.OpenEnterpriseNeoServer.lambda$static$1(OpenEnterpriseNeoServer.java:78)
at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:88)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:445)
... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.extension.KernelExtensions#2dd80673' failed to initialize. Please see the attached cause exception "Parse Generalized time, invalid format".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:427)
at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:62)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:98)
at org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:208)
... 9 more
Caused by: java.lang.RuntimeException: Failed to initialize SSL encryption support, which is required to start this connector. Error was: Failed to load public certificate chain: C:\Users\Sarandar\.Neo4jDesktop\neo4jDatabases\database-3d6b2a11-4a4c-4be3-9270-cbe4e3e639f0\installation-3.4.6\certificates\neo4j.cert
at org.neo4j.bolt.BoltKernelExtension.createSslContext(BoltKernelExtension.java:243)
at org.neo4j.bolt.BoltKernelExtension.lambda$createConnectors$0(BoltKernelExtension.java:204)
at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1321)
at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at org.neo4j.bolt.BoltKernelExtension.createConnectors(BoltKernelExtension.java:188)
at org.neo4j.bolt.BoltKernelExtension.newInstance(BoltKernelExtension.java:165)
at org.neo4j.bolt.BoltKernelExtension.newInstance(BoltKernelExtension.java:84)
at org.neo4j.kernel.extension.KernelExtensions.newInstance(KernelExtensions.java:78)
at org.neo4j.kernel.extension.KernelExtensions.init(KernelExtensions.java:61)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406)
... 12 more
Caused by: java.lang.RuntimeException: Failed to load public certificate chain: C:\Users\Sarandar\.Neo4jDesktop\neo4jDatabases\database-3d6b2a11-4a4c-4be3-9270-cbe4e3e639f0\installation-3.4.6\certificates\neo4j.cert
at org.neo4j.kernel.configuration.ssl.SslPolicyLoader.loadCertificateChain(SslPolicyLoader.java:293)
at org.neo4j.kernel.configuration.ssl.SslPolicyLoader.loadOrCreateLegacyPolicy(SslPolicyLoader.java:161)
at org.neo4j.kernel.configuration.ssl.SslPolicyLoader.getOrCreateLegacyPolicy(SslPolicyLoader.java:137)
at org.neo4j.kernel.configuration.ssl.SslPolicyLoader.getPolicy(SslPolicyLoader.java:118)
at org.neo4j.bolt.BoltKernelExtension.createSslContext(BoltKernelExtension.java:238)
... 27 more
Caused by: java.security.cert.CertificateParsingException: java.io.IOException: Parse Generalized time, invalid format
at sun.security.x509.X509CertInfo.<init>(X509CertInfo.java:169)
at sun.security.x509.X509CertImpl.parse(X509CertImpl.java:1804)
at sun.security.x509.X509CertImpl.<init>(X509CertImpl.java:195)
at sun.security.provider.X509Factory.parseX509orPKCS7Cert(X509Factory.java:471)
at sun.security.provider.X509Factory.engineGenerateCertificates(X509Factory.java:356)
at java.security.cert.CertificateFactory.generateCertificates(CertificateFactory.java:462)
at org.neo4j.ssl.PkiUtils.loadCertificates(PkiUtils.java:161)
at org.neo4j.kernel.configuration.ssl.SslPolicyLoader.loadCertificateChain(SslPolicyLoader.java:289)
... 31 more
Caused by: java.io.IOException: Parse Generalized time, invalid format
at sun.security.util.DerInputBuffer.getTime(DerInputBuffer.java:385)
at sun.security.util.DerInputBuffer.getGeneralizedTime(DerInputBuffer.java:271)
at sun.security.util.DerInputStream.getGeneralizedTime(DerInputStream.java:541)
at sun.security.x509.CertificateValidity.construct(CertificateValidity.java:96)
at sun.security.x509.CertificateValidity.<init>(CertificateValidity.java:128)
at sun.security.x509.X509CertInfo.parse(X509CertInfo.java:656)
at sun.security.x509.X509CertInfo.<init>(X509CertInfo.java:167)
... 38 more
How can I solve this problem? Thanks for the help.
Now I can solve the problem.
Just change my location computer to US

Grails - Failed to read artifact descriptor for org.grails.plugins:tomcat:zip:8.0.33

Since this morning I seem to have an issue with grails plugins repo (Using Grails 2.4.4). Getting - Hostname in certificate didn't match: != <.jfrog.io> OR <.jfrog.io> OR .
BuildConfig has: build 'org.grails.plugins:tomcat:8.0.33' under plugins
Anyone have encountered similar issue or have a solution for it?
Resolve error obtaining dependencies: Failed to read artifact descriptor for org.grails.plugins:tomcat:zip:8.0.33 (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.grails.plugins:tomcat:zip:8.0.33
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:335)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217)
at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:525)
at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:509)
at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409)
at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)
at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)
at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316)
at grails.util.BuildSettings.doResolve(BuildSettings.groovy:514)
at grails.util.BuildSettings.doResolve(BuildSettings.groovy)
at grails.util.BuildSettings$_getDefaultBuildDependencies_closure19.doCall(BuildSettings.groovy:775)
at grails.util.BuildSettings$_getDefaultBuildDependencies_closure19.doCall(BuildSettings.groovy)
at grails.util.BuildSettings.getDefaultBuildDependencies(BuildSettings.groovy:769)
at grails.util.BuildSettings.getBuildDependencies(BuildSettings.groovy:674)
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.grails.plugins:tomcat:pom:8.0.33 from/to grailsCentral (https://repo.grails.org/grails/plugins): hostname in certificate didn't match: <repo.grails.org> != <*.jfrog.io> OR <*.jfrog.io> OR <jfrog.io>
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:320)
... 14 more
Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.grails.plugins:tomcat:pom:8.0.33 from/to grailsCentral (https://repo.grails.org/grails/plugins): hostname in certificate didn't match: <repo.grails.org> != <*.jfrog.io> OR <*.jfrog.io> OR <jfrog.io>
at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:43)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:355)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:67)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:581)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:249)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:520)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
... 17 more
Caused by: javax.net.ssl.SSLException: hostname in certificate didn't match: <repo.grails.org> != <*.jfrog.io> OR <*.jfrog.io> OR <jfrog.io>
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:227)
at org.apache.http.conn.ssl.BrowserCompatHostnameVerifier.verify(BrowserCompatHostnameVerifier.java:54)
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:147)
at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:439)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
at org.apache.http.impl.client.DecompressingHttpClient.execute(DecompressingHttpClient.java:137)
at org.eclipse.aether.transport.http.HttpTransporter.execute(HttpTransporter.java:279)
at org.eclipse.aether.transport.http.HttpTransporter.implGet(HttpTransporter.java:235)
at org.eclipse.aether.spi.connector.transport.AbstractTransporter.get(AbstractTransporter.java:59)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:447)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:350)
... 22 more
Central repository is back. A DNS change was done so may need time to propagate. Thanks to #jfrog for collaborating on restoring service
Use https://grails.jfrog.io/grails/core/ for Grails3 and
https://grails.jfrog.io/grails/plugins for Grails2 until all issues
are resolved

Grails 3 mail: Must issue a STARTTLS command first

I know this question has been asked many times in many different places, but for some reason, I can't seem to get it to work. I realize what the issue is, I just can't seem to figure out the yaml syntax or something simple like that.
I'm using Grails 3 with the "mail" plugin (2.0.0.RC6).
Here is a snippet of my application.yml:
grails:
serverURL: <url>
mail:
host: <host>
port: 587
username: <username>
password: <password>
props:
? "mail.smtp.auth" : true
? "mail.smtp.starttls.enable" : true
? "mail.smtp.starttls.required" : true
? "mail.smtp.socketFactory.class" : "javax.net.ssl.SSLSocketFactory"
? "mail.smtp.socketFactory.fallback" : false
? "mail.smtp.port" : 587
I've tried many combinations of quotes with no luck. The ? instead of a - indicates a map, which is what I want I think.
Here is the specific error message if it helps:
Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first
. Stacktrace follows:
java.lang.reflect.InvocationTargetException: null
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.mail.MailSendException: Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first
at grails.plugins.mail.MailMessageBuilder.sendMessage(MailMessageBuilder.groovy:130)
at grails.plugins.mail.MailService.sendMail(MailService.groovy:53)
at grails.plugins.mail.MailService.sendMail(MailService.groovy:57)
at website.UserController.register(UserController.groovy:60)
... 3 common frames omitted
This is a custom mail server running Postfix (first time setting it up). I am able to connect to it and send mail with Thunderbird. Thunderbird is using STARTTLS and port 587 to connect. As far as I know, I haven't been able to do just SSL/TLS.
update:
I've removed the factory config and fixed the yaml map stuff. Now I'm getting another error.
grails:
serverURL: https://test.neonorb.com
mail:
host: test.neonorb.com
port: 587
username: neonorb
password: pass
props:
mail.smtp.starttls.enable: true
mail.smtp.port: 587
Here is the exception:
unable to find valid certification path to requested target. Stacktrace follows:
java.lang.reflect.InvocationTargetException: null
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. Failed messages: javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at grails.plugins.mail.MailMessageBuilder.sendMessage(MailMessageBuilder.groovy:130)
at grails.plugins.mail.MailService.sendMail(MailService.groovy:53)
at grails.plugins.mail.MailService.sendMail(MailService.groovy:57)
at website.UserController.register(UserController.groovy:60)
... 3 common frames omitted
Caused by: javax.mail.MessagingException: Could not convert socket to TLS
at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:2046)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:711)
at javax.mail.Service.connect(Service.java:366)
... 7 common frames omitted
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:598)
at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:525)
at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:2041)
... 9 common frames omitted
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
... 12 common frames omitted
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
... 12 common frames omitted
According to Google, this is because the certificate is self-signed, and Java doesn't trust it. My certificate is not self-signed, and is made from Let's Encrypt.
Get rid of the socket factory properties, they're long since obsolete.

How should I approach this "ant deploy" error("unable to add listener...")?

Here's my error, in picture format in case it's easier to read:
http://i.imgur.com/k5GUB.png
I appreciate any tips or advice. Here's the text of the error(by the way, ignore the first 4 comments below this):
C:\LatestPS\trunk\ws\apps\petstore>ant deploy
Buildfile: C:\LatestPS\trunk\ws\apps\petstore\build.xml
check:
tools:
-pre-deploy:
deploy:
[exec] remote failure: Error occurred during deployment: Exception while lo
ading the app : java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java
.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: com.sun
.javaee.blueprints.petstore.model.CatalogFacade, because it does not implement a
ny of the required ServletContextListener, ServletContextAttributeListener, Serv
letRequestListener, ServletRequestAttributeListener, HttpSessionListener, or Htt
pSessionAttributeListener interfaces. Please see server.log for more details.
[exec] Command deploy failed.
BUILD FAILED
C:\LatestPS\trunk\ws\bp-project\app-server-ant.xml:379: exec returned: 1
A meaty stack trace, but here goes:
[#|2011-09-19T14:18:13.160-0500|SEVERE|glassfish3.1.1|org.apache.catalina.core.ContainerBase|_ThreadID=18;_ThreadName=Thread-2;|ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: com.sun.javaee.blueprints.petstore.model.CatalogFacade, because it does not implement any of the required ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5332)
at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2000)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1651)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:294)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: com.sun.javaee.blueprints.petstore.model.CatalogFacade, because it does not implement any of the required ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces
at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2743)
at org.apache.catalina.core.StandardContext.addApplicationListener(StandardContext.java:1966)
at com.sun.enterprise.web.TomcatDeploymentConfig.configureApplicationListener(TomcatDeploymentConfig.java:235)
at com.sun.enterprise.web.TomcatDeploymentConfig.configureWebModule(TomcatDeploymentConfig.java:94)
at com.sun.enterprise.web.WebModuleContextConfig.start(WebModuleContextConfig.java:274)
at com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:172)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5329)
... 38 more
Caused by: java.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: com.sun.javaee.blueprints.petstore.model.CatalogFacade, because it does not implement any of the required ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces
at org.apache.catalina.core.StandardContext.createListener(StandardContext.java:2846)
at org.apache.catalina.core.StandardContext.loadListener(StandardContext.java:4806)
at com.sun.enterprise.web.WebModule.loadListener(WebModule.java:1599)
at org.apache.catalina.core.StandardContext.addListener(StandardContext.java:2740)
... 45 more
|#]
[#|2011-09-19T14:18:13.163-0500|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=18;_ThreadName=Thread-2;|java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: com.sun.javaee.blueprints.petstore.model.CatalogFacade, because it does not implement any of the required ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: com.sun.javaee.blueprints.petstore.model.CatalogFacade, because it does not implement any of the required ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:921)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2000)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1651)
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:294)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:619)
|#]
[#|2011-09-19T14:18:13.166-0500|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=18;_ThreadName=Thread-2;|Exception while invoking class com.sun.enterprise.web.WebApplication start method
java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: com.sun.javaee.blueprints.petstore.model.CatalogFacade, because it does not implement any of the required ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces
at com.sun.enterprise.web.WebApplication.start(WebApplication.java:138)
at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:294)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:459)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:238)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:619)
|#]
[#|2011-09-19T14:18:13.168-0500|SEVERE|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=18;_ThreadName=Thread-2;|Exception while loading the app|#]
[#|2011-09-19T14:18:13.207-0500|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=18;_ThreadName=Thread-2;|Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: PWC1430: Unable to add listener of type: com.sun.javaee.blueprints.petstore.model.CatalogFacade, because it does not implement any of the required ServletContextListener, ServletContextAttributeListener, ServletRequestListener, ServletRequestAttributeListener, HttpSessionListener, or HttpSessionAttributeListener interfaces|#]
Thank You Very Much
I've just actually built and deployed this project on Glassfish 3.1 without any problems. I just had to tweak some properties, since I was using my own server (not from Java EE SDK) but that shouldn't matter.
So, building and running this project actually requires 3 steps. Let's call the ws folder ${samples-root}. Then you have to:
Correctly set properties in ${samples-root}/bp-project/build.properties
Change to ${samples-root}/apps/petstore and issue ant setup from command prompt
Issue ant run command.
That's it. Now you can open http://localhost:8080/petstore in your web browser and explore this application.
As for your post, I see you issued ant deploy command which should be automatically called from run target, so you don't have to do that.
Actually there's quite a good tutorial on how to build and run this app included. You can find it in ${samples-root}/apps/petstore/index.html.
Also I saw from your previous posts that you tried to deploy it manually via admin console. I don't recommend you doing it unless you clearly understand the build process since you might have missed something.
Important: before you do anything, don't forget to start glassfish and database server by issuing the following commands from $GLASSFISH_HOME/bin (here $GLASSFISH_HOME would probably be glassfish3/glassfish) asadmin start-domain, asadmin start-database.

Resources