You are not logged in.
Pages: 1
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
Offline
Hi Christian,
Could you please check whether all Java options have been installed as described here? https://reportserver.net/de/dokumentati … -on-ubuntu
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.net=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/jdk.internal.reflect=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang.invoke=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.util=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang.ref=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/java.lang.reflect=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS --add-opens=java.base/sun.reflect.generics.repository=ALL-UNNAMED"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS -Djavax.net.ssl.trustStoreType=JKS"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS -Dfile.encoding=UTF-8"
JDK_JAVA_OPTIONS="$JDK_JAVA_OPTIONS -Djava.awt.headless=true"
Please also make sure that these options are actually being loaded – you can verify this by checking the Tomcat logs.
Regards,
Eduardo
Offline
Thanks for your quick reply.
It looks like Java Opts configured in the "Configure Tomcat" app are not used when directly starting Tomcat with the startup.sh (we had to use startup.sh because there is/was some permission issue when using the windows service).
Resolved the issue by manually adding the Java Opts within a setenv.bat.
Offline
Pages: 1