we fixed the issue Mark.

Actually tomcat was running on JDK 1.8 and applications were built using
JDK 13/14.So when they were deployed to tomcat running with 1.8, they were
giving 404.

Now plan is to explore and upgrade tomcat to at least jdk 13.

It would have been nice really to have at least some error saying major.minor
version exception or something like that in some logs somewhere which java
often throws in these cases.

Any ways we are good to go now. Thanks for your reply.



On Fri, Jun 26, 2020 at 6:34 AM Mark Thomas <ma...@apache.org> wrote:

> On 26/06/2020 05:45, Kiran Badi wrote:
> > Hi All,
> >
> > I wanted to check if tomcat 9.0.36 supports open jdk 13/14.
>
> Supported Java versions are listed at:
> http://tomcat.apache.org/whichversion.html
>
> "Java 8 and later" includes Java 13 and Java 14.
>
> > I created a simple spring boot war file and compiled/built it with
> openjdk
> > 13/14. After running maven install , I deployed the war file from the
> > target directory to tomcat webapps using tomcat manager. It did not work
> > and gave me 404 messages with both 13/14. No error or any exception
> > anywhere in logs.Catalina log just says a war file is deployed.
>
> That is normally indicative of a configuration error.
>
> > Then i compiled the same spring boot app with jdk 8 and deployed it with
> > tomcat and it works fine. I am able to call my endpoints with no issues.
> >
> > I am having a hard time deploying angular/spring boot and building war
> file
> > and deploying it on tomcat 9.0x with openjdk 13. So I thought this might
> be
> > a good place to start with.
>
> If you can provide the code you use to create the sample, e.g. as a
> GitHub project somebody may be able to take a look.
>
> Mark
>
> >
> > I used the below pom file.
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
> > http://www.w3.org/2001/XMLSchema-instance";
> > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > https://maven.apache.org/xsd/maven-4.0.0.xsd";>
> > <modelVersion>4.0.0</modelVersion>
> > <parent>
> > <groupId>org.springframework.boot</groupId>
> > <artifactId>spring-boot-starter-parent</artifactId>
> > <version>2.3.1.RELEASE</version>
> > <relativePath/> <!-- lookup parent from repository -->
> > </parent>
> > <groupId>com.kiran</groupId>
> > <artifactId>springwar</artifactId>
> > <version>1.0.2-SNAPSHOT</version>
> > <packaging>war</packaging>
> > <name>springwar</name>
> > <description>Sample project to deploy war to tomcat</description>
> >
> > <properties>
> > <java.version>14</java.version>
> > </properties>
> >
> > <dependencies>
> > <dependency>
> > <groupId>org.springframework.boot</groupId>
> > <artifactId>spring-boot-starter-web</artifactId>
> > </dependency>
> >
> > <dependency>
> > <groupId>org.springframework.boot</groupId>
> > <artifactId>spring-boot-starter-tomcat</artifactId>
> > <scope>provided</scope>
> > </dependency>
> > <dependency>
> > <groupId>org.springframework.boot</groupId>
> > <artifactId>spring-boot-starter-test</artifactId>
> > <scope>test</scope>
> > <exclusions>
> > <exclusion>
> > <groupId>org.junit.vintage</groupId>
> > <artifactId>junit-vintage-engine</artifactId>
> > </exclusion>
> > </exclusions>
> > </dependency>
> > </dependencies>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to