Shivaanand,

On 6/18/24 13:29, Shivaanand Verma wrote:
We are having a Jersey Servlet application running on the 9.0.80 version of
Apache Tomcat. Recently we've been trying to migrate our application from
JDK 8 to JDK 11.

The application used to run smoothly on JDK 8, but when compiled against
JDK 11, it does not start up. The tomcat webapps directory expands the
application.war file into its directory but the control never reaches
initialising classes. We are not able to understand what is blocking the
application from running since catalina.out and juli.log are not showing
any exceptions or error traces.

We've enabled debug logging using the logging.properties file too, but
still we don't see any logs in catalina.out. Is there a way to determine
why is tomcat not able to start the application or what classes it is
trying to load and is failing to do so?

Try running the application from the console like this:

$ cd $CATALINA_BASE
$ $CATALINA_HOME/bin/catalina.sh run
[console output goes here]

This should emit all error messages.

Have you tried building with Java 8 and running Tomcat on Java 11 with no other changes? There is no particular reason to re-build with Java 11 if you don't want to.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to