Hello
I have a new installation of ReportServer CE. I use Tomcat9 (also newly installed) and Adoptium JDK LTS.
As soon as I start Tomcat with the ReportServer app deployed (within the webapps-Folder), i get this error (at startup of Tomcat). I cannot access Tomcat Manager, and Tomcat seems to crash afterwards.
30-Jul-2025 08:45:39.501 SCHWERWIEGEND [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to start component [Connector["http-nio-8088"]]
java.lang.ExceptionInInitializerError
at java.base/sun.nio.ch.WEPollSelectorImpl.<init>(Unknown Source)
at java.base/sun.nio.ch.WEPollSelectorProvider.openSelector(Unknown Source)
at java.base/java.nio.channels.Selector.open(Unknown Source)
at org.apache.tomcat.util.net.NioEndpoint$Poller.<init>(NioEndpoint.java:659)
at org.apache.tomcat.util.net.NioEndpoint.startInternal(NioEndpoint.java:333)
at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1551)
at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:674)
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1100)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:425)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:874)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:164)
at org.apache.catalina.startup.Catalina.start(Catalina.java:739)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: java.lang.RuntimeException: java.security.NoSuchAlgorithmException: class configured for SecureRandom (provider: BC) cannot be found.
at java.base/java.security.SecureRandom.getDefaultPRNG(Unknown Source)
at java.base/java.security.SecureRandom.<init>(Unknown Source)
at java.base/sun.nio.ch.PipeImpl.<clinit>(Unknown Source)
... 18 more
Caused by: java.security.NoSuchAlgorithmException: class configured for SecureRandom (provider: BC) cannot be found.
at java.base/java.security.Provider$Service.getImplClass(Unknown Source)
at java.base/java.security.Provider$Service.newInstanceUtil(Unknown Source)
at java.base/java.security.Provider$Service.newInstance(Unknown Source)
... 21 more
Caused by: java.lang.ClassNotFoundException: Illegal access: this web application instance has been stopped already. Could not load [org.bouncycastle.jcajce.provider.drbg.DRBG$NonceAndIV]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1364)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1196)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1163)
... 24 more
Caused by: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [org.bouncycastle.jcajce.provider.drbg.DRBG$NonceAndIV]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1374)
at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1362)
... 26 more
If i remove the ReportServer form webapps, tomcat starts without any issues.
As I am not a Java/Tomcat expert - where do I have to start looking for solving this issue?
I could not reproduce it on another machine (same installation procedure, no errors).
Best regards
Christian