Payara 服务器未启动
Payara server not starting
我正在尝试一些 Java EE,我可以在 Glassfish 5.0.1 上将我的代码获取到 运行 没问题。我想 运行 它在 Payara 上,但我只能让 Payara Micro 工作,完整的和网络配置文件都崩溃并给出以下错误,我找不到任何相关信息。我能找到的最接近的相关问题告诉我尝试将我的路径更改为 Java 8,但这没有效果。谢谢!
[2020-09-14T18:59:27.963+0200] [Payara 5.2020.4] [INFO] [NCLS-LOGGING-00009] [javax.enterprise.logging] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102767963] [levelValue: 800] [[
Running Payara Version: Payara Server 5.2020.4 #badassfish (build 817)]]
[2020-09-14T18:59:27.968+0200] [Payara 5.2020.4] [INFO] [NCLS-LOGGING-00010] [javax.enterprise.logging] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102767968] [levelValue: 800] [[
Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter]]
[2020-09-14T18:59:28.508+0200] [Payara 5.2020.4] [INFO] [] [org.glassfish.ha.store.spi.BackingStoreFactoryRegistry] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102768508] [levelValue: 800] [[
Registered fish.payara.ha.hazelcast.store.HazelcastBackingStoreFactoryProxy for persistence-type = hazelcast in BackingStoreFactoryRegistry]]
[2020-09-14T18:59:28.544+0200] [Payara 5.2020.4] [INFO] [] [org.hibernate.validator.internal.util.Version] [tid: _ThreadID=24 _ThreadName=RunLevelControllerThread-1600102767870] [timeMillis: 1600102768544] [levelValue: 800] [[
HV000001: Hibernate Validator 6.1.2.Final]]
[2020-09-14T18:59:33.272+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=23 _ThreadName=RunLevelControllerThread-1600102767870] [timeMillis: 1600102773272] [levelValue: 800] [[
Hazelcast Instance Bound to JNDI at payara/Hazelcast]]
[2020-09-14T18:59:33.272+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=23 _ThreadName=RunLevelControllerThread-1600102767870] [timeMillis: 1600102773272] [levelValue: 800] [[
JSR107 Caching Provider Bound to JNDI at payara/CachingProvider]]
[2020-09-14T18:59:33.272+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=23 _ThreadName=RunLevelControllerThread-1600102767870] [timeMillis: 1600102773272] [levelValue: 800] [[
JSR107 Default Cache Manager Bound to JNDI at payara/CacheManager]]
[2020-09-14T18:59:33.474+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00015] [javax.enterprise.system.core] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102773474] [levelValue: 800] [[
Shutdown requested
MultiException stack 1 of 2
java.lang.RuntimeException: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:169)
at fish.payara.nucleus.microprofile.config.source.PasswordAliasConfigSource.getValue(PasswordAliasConfigSource.java:100)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getSourceValue(PayaraConfig.java:183)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueConverted(PayaraConfig.java:166)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.lambda$getValue(PayaraConfig.java:161)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValue(PayaraConfig.java:157)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueInternal(PayaraConfig.java:127)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getOptionalValue(PayaraConfig.java:123)
at fish.payara.microprofile.healthcheck.HealthCheckService.postConstruct(HealthCheckService.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1268)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:309)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:351)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:103)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:167)
... 27 more
Caused by: java.security.KeyStoreException: JCEKS not found
at java.security.KeyStore.getInstance(KeyStore.java:851)
at com.sun.enterprise.security.store.PasswordAdapter.loadKeyStore(PasswordAdapter.java:131)
at com.sun.enterprise.security.store.PasswordAdapter.<init>(PasswordAdapter.java:110)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:101)
... 28 more
Caused by: java.security.NoSuchAlgorithmException: JCEKS KeyStore not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:697)
at java.security.KeyStore.getInstance(KeyStore.java:848)
... 31 more
MultiException stack 2 of 2
java.lang.IllegalStateException: Unable to perform operation: post construct on fish.payara.microprofile.healthcheck.HealthCheckService
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:369)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
]]
[2020-09-14T18:59:33.477+0200] [Payara 5.2020.4] [ALLVARLIG] [NCLS-CORE-00016] [javax.enterprise.system.core] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102773477] [levelValue: 1000] [[
Startup service failed to start
MultiException stack 1 of 2
java.lang.RuntimeException: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:169)
at fish.payara.nucleus.microprofile.config.source.PasswordAliasConfigSource.getValue(PasswordAliasConfigSource.java:100)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getSourceValue(PayaraConfig.java:183)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueConverted(PayaraConfig.java:166)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.lambda$getValue(PayaraConfig.java:161)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValue(PayaraConfig.java:157)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueInternal(PayaraConfig.java:127)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getOptionalValue(PayaraConfig.java:123)
at fish.payara.microprofile.healthcheck.HealthCheckService.postConstruct(HealthCheckService.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1268)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:309)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:351)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:103)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:167)
... 27 more
Caused by: java.security.KeyStoreException: JCEKS not found
at java.security.KeyStore.getInstance(KeyStore.java:851)
at com.sun.enterprise.security.store.PasswordAdapter.loadKeyStore(PasswordAdapter.java:131)
at com.sun.enterprise.security.store.PasswordAdapter.<init>(PasswordAdapter.java:110)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:101)
... 28 more
Caused by: java.security.NoSuchAlgorithmException: JCEKS KeyStore not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:697)
at java.security.KeyStore.getInstance(KeyStore.java:848)
... 31 more
MultiException stack 2 of 2
java.lang.IllegalStateException: Unable to perform operation: post construct on fish.payara.microprofile.healthcheck.HealthCheckService
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:369)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
]]
[2020-09-14T18:59:33.476+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1600102767863] [timeMillis: 1600102773476] [levelValue: 800] [[
Network Listener http-listener-1 started in: 21ms - bound to [/0.0.0.0:8080]]]
[2020-09-14T18:59:33.513+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1600102767863] [timeMillis: 1600102773513] [levelValue: 800] [[
Network Listener http-listener-2 started in: 17ms - bound to [/0.0.0.0:8181]]]
[2020-09-14T18:59:33.525+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1600102767863] [timeMillis: 1600102773525] [levelValue: 800] [[
Network Listener admin-listener started in: 6ms - bound to [/0.0.0.0:4848]]]
[2020-09-14T18:59:33.526+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1600102767863] [timeMillis: 1600102773526] [levelValue: 800] [[
Grizzly 2.4.4 started in: 5,133ms - bound to [http-listener-1:8080, http-listener-2:8181, admin-listener:4848]]]
[2020-09-14T18:59:33.563+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=23 _ThreadName=RunLevelControllerThread-1600102767870] [timeMillis: 1600102773563] [levelValue: 800] [[
Network Listener iiop-service started in: 6ms - bound to [/0.0.0.0:3700]]]
[2020-09-14T18:59:33.590+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102773590] [levelValue: 800] [[
Hazelcast Instance Unbound from JNDI at payara/Hazelcast]]
[2020-09-14T18:59:33.595+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102773595] [levelValue: 800] [[
JSR107 Caching Provider Unbound from JNDI at payara/CachingProvider]]
[2020-09-14T18:59:33.595+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102773595] [levelValue: 800] [[
JSR107 Cache Manager Unbound from JNDI at payara/CacheManager]]
[2020-09-14T18:59:33.611+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=87 _ThreadName=Executor-Service-10] [timeMillis: 1600102773611] [levelValue: 800] [[
Network Listener http-listener-1 started in: 4ms - bound to [/0.0.0.0:8080]]]
[2020-09-14T18:59:33.700+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=87 _ThreadName=Executor-Service-10] [timeMillis: 1600102773700] [levelValue: 800] [[
Network Listener http-listener-2 started in: 82ms - bound to [/0.0.0.0:8181]]]
[2020-09-14T18:59:33.711+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=87 _ThreadName=Executor-Service-10] [timeMillis: 1600102773711] [levelValue: 800] [[
Network Listener admin-listener started in: 5ms - bound to [/0.0.0.0:4848]]]
[2020-09-14T18:59:33.711+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=87 _ThreadName=Executor-Service-10] [timeMillis: 1600102773711] [levelValue: 800] [[
Grizzly 2.4.4 started in: 114ms - bound to [http-listener-1:8080, http-listener-2:8181, admin-listener:4848]]]
[2020-09-14T18:59:34.162+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102774162] [levelValue: 800] [[
Shutdown Hazelcast]]
[2020-09-14T18:59:34.164+0200] [Payara 5.2020.4] [ALLVARLIG] [NCLS-CORE-00014] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1600102774164] [levelValue: 1000] [[
Shutdown required
MultiException stack 1 of 1
MultiException stack 1 of 2
java.lang.RuntimeException: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:169)
at fish.payara.nucleus.microprofile.config.source.PasswordAliasConfigSource.getValue(PasswordAliasConfigSource.java:100)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getSourceValue(PayaraConfig.java:183)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueConverted(PayaraConfig.java:166)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.lambda$getValue(PayaraConfig.java:161)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValue(PayaraConfig.java:157)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueInternal(PayaraConfig.java:127)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getOptionalValue(PayaraConfig.java:123)
at fish.payara.microprofile.healthcheck.HealthCheckService.postConstruct(HealthCheckService.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1268)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:309)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:351)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:103)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:167)
... 27 more
Caused by: java.security.KeyStoreException: JCEKS not found
at java.security.KeyStore.getInstance(KeyStore.java:851)
at com.sun.enterprise.security.store.PasswordAdapter.loadKeyStore(PasswordAdapter.java:131)
at com.sun.enterprise.security.store.PasswordAdapter.<init>(PasswordAdapter.java:110)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:101)
... 28 more
Caused by: java.security.NoSuchAlgorithmException: JCEKS KeyStore not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:697)
at java.security.KeyStore.getInstance(KeyStore.java:848)
... 31 more
MultiException stack 2 of 2
java.lang.IllegalStateException: Unable to perform operation: post construct on fish.payara.microprofile.healthcheck.HealthCheckService
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:369)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
]]
[2020-09-14T18:59:34.166+0200] [Payara 5.2020.4] [ALLVARLIG] [] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1600102774166] [levelValue: 1000] [[
Failed to start, exiting]]
[2020-09-14T18:59:34.166+0200] [Payara 5.2020.4] [INFO] [] [] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1600102774166] [levelValue: 800] [[
FileMonitoring shutdown]]
编辑*
我还创建了一个全新的 Java EE 项目,只有以下内容 class 我仍然从 Payara
得到相同的输出
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
@ApplicationPath("api")
public class CdiConfig extends Application {
}
发生这种情况是因为您的安全提供商不支持使用 JCEKS 算法打开 Payara 密钥库。尝试使用 Java 的不同分布,例如采用 OpenJDK (https://adoptopenjdk.net/)。您的 Java 可能不支持该算法。
Payara Server 失败而 GlassFish 没有失败的原因是 Payara Server 试图在受密钥库保护的密码别名中查找配置值。这会导致异常,因为它无法打开密钥库。我敢打赌,如果稍后需要它,GlassFish 也将无法打开密钥库。 GlassFish 只是没有从密码别名读取配置的功能,因此不会尝试在启动时打开密钥库。
不管怎样,这个异常拖垮了整个服务器肯定是个bug。 Payara Server 应该忽略配置并继续。在 Payara 错误跟踪器中将其作为错误提出:https://github.com/payara/Payara/issues.
我正在尝试一些 Java EE,我可以在 Glassfish 5.0.1 上将我的代码获取到 运行 没问题。我想 运行 它在 Payara 上,但我只能让 Payara Micro 工作,完整的和网络配置文件都崩溃并给出以下错误,我找不到任何相关信息。我能找到的最接近的相关问题告诉我尝试将我的路径更改为 Java 8,但这没有效果。谢谢!
[2020-09-14T18:59:27.963+0200] [Payara 5.2020.4] [INFO] [NCLS-LOGGING-00009] [javax.enterprise.logging] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102767963] [levelValue: 800] [[
Running Payara Version: Payara Server 5.2020.4 #badassfish (build 817)]]
[2020-09-14T18:59:27.968+0200] [Payara 5.2020.4] [INFO] [NCLS-LOGGING-00010] [javax.enterprise.logging] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102767968] [levelValue: 800] [[
Server log file is using Formatter class: com.sun.enterprise.server.logging.ODLLogFormatter]]
[2020-09-14T18:59:28.508+0200] [Payara 5.2020.4] [INFO] [] [org.glassfish.ha.store.spi.BackingStoreFactoryRegistry] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102768508] [levelValue: 800] [[
Registered fish.payara.ha.hazelcast.store.HazelcastBackingStoreFactoryProxy for persistence-type = hazelcast in BackingStoreFactoryRegistry]]
[2020-09-14T18:59:28.544+0200] [Payara 5.2020.4] [INFO] [] [org.hibernate.validator.internal.util.Version] [tid: _ThreadID=24 _ThreadName=RunLevelControllerThread-1600102767870] [timeMillis: 1600102768544] [levelValue: 800] [[
HV000001: Hibernate Validator 6.1.2.Final]]
[2020-09-14T18:59:33.272+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=23 _ThreadName=RunLevelControllerThread-1600102767870] [timeMillis: 1600102773272] [levelValue: 800] [[
Hazelcast Instance Bound to JNDI at payara/Hazelcast]]
[2020-09-14T18:59:33.272+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=23 _ThreadName=RunLevelControllerThread-1600102767870] [timeMillis: 1600102773272] [levelValue: 800] [[
JSR107 Caching Provider Bound to JNDI at payara/CachingProvider]]
[2020-09-14T18:59:33.272+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=23 _ThreadName=RunLevelControllerThread-1600102767870] [timeMillis: 1600102773272] [levelValue: 800] [[
JSR107 Default Cache Manager Bound to JNDI at payara/CacheManager]]
[2020-09-14T18:59:33.474+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00015] [javax.enterprise.system.core] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102773474] [levelValue: 800] [[
Shutdown requested
MultiException stack 1 of 2
java.lang.RuntimeException: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:169)
at fish.payara.nucleus.microprofile.config.source.PasswordAliasConfigSource.getValue(PasswordAliasConfigSource.java:100)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getSourceValue(PayaraConfig.java:183)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueConverted(PayaraConfig.java:166)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.lambda$getValue(PayaraConfig.java:161)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValue(PayaraConfig.java:157)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueInternal(PayaraConfig.java:127)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getOptionalValue(PayaraConfig.java:123)
at fish.payara.microprofile.healthcheck.HealthCheckService.postConstruct(HealthCheckService.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1268)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:309)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:351)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:103)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:167)
... 27 more
Caused by: java.security.KeyStoreException: JCEKS not found
at java.security.KeyStore.getInstance(KeyStore.java:851)
at com.sun.enterprise.security.store.PasswordAdapter.loadKeyStore(PasswordAdapter.java:131)
at com.sun.enterprise.security.store.PasswordAdapter.<init>(PasswordAdapter.java:110)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:101)
... 28 more
Caused by: java.security.NoSuchAlgorithmException: JCEKS KeyStore not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:697)
at java.security.KeyStore.getInstance(KeyStore.java:848)
... 31 more
MultiException stack 2 of 2
java.lang.IllegalStateException: Unable to perform operation: post construct on fish.payara.microprofile.healthcheck.HealthCheckService
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:369)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
]]
[2020-09-14T18:59:33.477+0200] [Payara 5.2020.4] [ALLVARLIG] [NCLS-CORE-00016] [javax.enterprise.system.core] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102773477] [levelValue: 1000] [[
Startup service failed to start
MultiException stack 1 of 2
java.lang.RuntimeException: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:169)
at fish.payara.nucleus.microprofile.config.source.PasswordAliasConfigSource.getValue(PasswordAliasConfigSource.java:100)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getSourceValue(PayaraConfig.java:183)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueConverted(PayaraConfig.java:166)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.lambda$getValue(PayaraConfig.java:161)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValue(PayaraConfig.java:157)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueInternal(PayaraConfig.java:127)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getOptionalValue(PayaraConfig.java:123)
at fish.payara.microprofile.healthcheck.HealthCheckService.postConstruct(HealthCheckService.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1268)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:309)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:351)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:103)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:167)
... 27 more
Caused by: java.security.KeyStoreException: JCEKS not found
at java.security.KeyStore.getInstance(KeyStore.java:851)
at com.sun.enterprise.security.store.PasswordAdapter.loadKeyStore(PasswordAdapter.java:131)
at com.sun.enterprise.security.store.PasswordAdapter.<init>(PasswordAdapter.java:110)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:101)
... 28 more
Caused by: java.security.NoSuchAlgorithmException: JCEKS KeyStore not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:697)
at java.security.KeyStore.getInstance(KeyStore.java:848)
... 31 more
MultiException stack 2 of 2
java.lang.IllegalStateException: Unable to perform operation: post construct on fish.payara.microprofile.healthcheck.HealthCheckService
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:369)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
]]
[2020-09-14T18:59:33.476+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1600102767863] [timeMillis: 1600102773476] [levelValue: 800] [[
Network Listener http-listener-1 started in: 21ms - bound to [/0.0.0.0:8080]]]
[2020-09-14T18:59:33.513+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1600102767863] [timeMillis: 1600102773513] [levelValue: 800] [[
Network Listener http-listener-2 started in: 17ms - bound to [/0.0.0.0:8181]]]
[2020-09-14T18:59:33.525+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1600102767863] [timeMillis: 1600102773525] [levelValue: 800] [[
Network Listener admin-listener started in: 6ms - bound to [/0.0.0.0:4848]]]
[2020-09-14T18:59:33.526+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=21 _ThreadName=RunLevelControllerThread-1600102767863] [timeMillis: 1600102773526] [levelValue: 800] [[
Grizzly 2.4.4 started in: 5,133ms - bound to [http-listener-1:8080, http-listener-2:8181, admin-listener:4848]]]
[2020-09-14T18:59:33.563+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=23 _ThreadName=RunLevelControllerThread-1600102767870] [timeMillis: 1600102773563] [levelValue: 800] [[
Network Listener iiop-service started in: 6ms - bound to [/0.0.0.0:3700]]]
[2020-09-14T18:59:33.590+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102773590] [levelValue: 800] [[
Hazelcast Instance Unbound from JNDI at payara/Hazelcast]]
[2020-09-14T18:59:33.595+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102773595] [levelValue: 800] [[
JSR107 Caching Provider Unbound from JNDI at payara/CachingProvider]]
[2020-09-14T18:59:33.595+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102773595] [levelValue: 800] [[
JSR107 Cache Manager Unbound from JNDI at payara/CacheManager]]
[2020-09-14T18:59:33.611+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=87 _ThreadName=Executor-Service-10] [timeMillis: 1600102773611] [levelValue: 800] [[
Network Listener http-listener-1 started in: 4ms - bound to [/0.0.0.0:8080]]]
[2020-09-14T18:59:33.700+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=87 _ThreadName=Executor-Service-10] [timeMillis: 1600102773700] [levelValue: 800] [[
Network Listener http-listener-2 started in: 82ms - bound to [/0.0.0.0:8181]]]
[2020-09-14T18:59:33.711+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00101] [javax.enterprise.system.core] [tid: _ThreadID=87 _ThreadName=Executor-Service-10] [timeMillis: 1600102773711] [levelValue: 800] [[
Network Listener admin-listener started in: 5ms - bound to [/0.0.0.0:4848]]]
[2020-09-14T18:59:33.711+0200] [Payara 5.2020.4] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=87 _ThreadName=Executor-Service-10] [timeMillis: 1600102773711] [levelValue: 800] [[
Grizzly 2.4.4 started in: 114ms - bound to [http-listener-1:8080, http-listener-2:8181, admin-listener:4848]]]
[2020-09-14T18:59:34.162+0200] [Payara 5.2020.4] [INFO] [] [fish.payara.nucleus.hazelcast.HazelcastCore] [tid: _ThreadID=22 _ThreadName=RunLevelControllerThread-1600102767864] [timeMillis: 1600102774162] [levelValue: 800] [[
Shutdown Hazelcast]]
[2020-09-14T18:59:34.164+0200] [Payara 5.2020.4] [ALLVARLIG] [NCLS-CORE-00014] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1600102774164] [levelValue: 1000] [[
Shutdown required
MultiException stack 1 of 1
MultiException stack 1 of 2
java.lang.RuntimeException: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:169)
at fish.payara.nucleus.microprofile.config.source.PasswordAliasConfigSource.getValue(PasswordAliasConfigSource.java:100)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getSourceValue(PayaraConfig.java:183)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueConverted(PayaraConfig.java:166)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.lambda$getValue(PayaraConfig.java:161)
at java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1853)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValue(PayaraConfig.java:157)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getValueInternal(PayaraConfig.java:127)
at fish.payara.nucleus.microprofile.config.spi.PayaraConfig.getOptionalValue(PayaraConfig.java:123)
at fish.payara.microprofile.healthcheck.HealthCheckService.postConstruct(HealthCheckService.java:139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.glassfish.hk2.utilities.reflection.ReflectionHelper.invoke(ReflectionHelper.java:1268)
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:309)
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:351)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: java.security.KeyStoreException: JCEKS not found
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:103)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.containsKey(JCEKSPasswordAliasStore.java:167)
... 27 more
Caused by: java.security.KeyStoreException: JCEKS not found
at java.security.KeyStore.getInstance(KeyStore.java:851)
at com.sun.enterprise.security.store.PasswordAdapter.loadKeyStore(PasswordAdapter.java:131)
at com.sun.enterprise.security.store.PasswordAdapter.<init>(PasswordAdapter.java:110)
at org.glassfish.security.services.impl.JCEKSPasswordAliasStore.pa(JCEKSPasswordAliasStore.java:101)
... 28 more
Caused by: java.security.NoSuchAlgorithmException: JCEKS KeyStore not available
at sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.security.Security.getImpl(Security.java:697)
at java.security.KeyStore.getInstance(KeyStore.java:848)
... 31 more
MultiException stack 2 of 2
java.lang.IllegalStateException: Unable to perform operation: post construct on fish.payara.microprofile.healthcheck.HealthCheckService
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:369)
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
at org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:281)
at org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:65)
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1213)
at org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1144)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
]]
[2020-09-14T18:59:34.166+0200] [Payara 5.2020.4] [ALLVARLIG] [] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1600102774166] [levelValue: 1000] [[
Failed to start, exiting]]
[2020-09-14T18:59:34.166+0200] [Payara 5.2020.4] [INFO] [] [] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1600102774166] [levelValue: 800] [[
FileMonitoring shutdown]]
编辑*
我还创建了一个全新的 Java EE 项目,只有以下内容 class 我仍然从 Payara
得到相同的输出import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
@ApplicationPath("api")
public class CdiConfig extends Application {
}
发生这种情况是因为您的安全提供商不支持使用 JCEKS 算法打开 Payara 密钥库。尝试使用 Java 的不同分布,例如采用 OpenJDK (https://adoptopenjdk.net/)。您的 Java 可能不支持该算法。
Payara Server 失败而 GlassFish 没有失败的原因是 Payara Server 试图在受密钥库保护的密码别名中查找配置值。这会导致异常,因为它无法打开密钥库。我敢打赌,如果稍后需要它,GlassFish 也将无法打开密钥库。 GlassFish 只是没有从密码别名读取配置的功能,因此不会尝试在启动时打开密钥库。
不管怎样,这个异常拖垮了整个服务器肯定是个bug。 Payara Server 应该忽略配置并继续。在 Payara 错误跟踪器中将其作为错误提出:https://github.com/payara/Payara/issues.