You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shivaanand Verma <co...@gmail.com> on 2024/06/18 17:29:38 UTC

Not able to start WebApp on JDK 11

Hi All,

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?

Any help would be appreciated.

Thanks
Shivanand Verma

Re: Not able to start WebApp on JDK 11

Posted by Christopher Schultz <ch...@christopherschultz.net>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Not able to start WebApp on JDK 11

Posted by Ed Rouse <er...@milner.com>.
Update on shared

From: Shivaanand Verma <co...@gmail.com>
Sent: Tuesday, June 18, 2024 1:30 PM
To: users@tomcat.apache.org
Subject: Not able to start WebApp on JDK 11

[External email: Use caution! Do not open attachments or click on links from unknown senders or unexpected emails.]
Hi All,

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<https://url.us.m.mimecastprotect.com/s/jDSzCrkXl5fwWKNPIzgaWq?domain=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?

Any help would be appreciated.

Thanks
Shivanand Verma