-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Kiran,

On 6/26/20 22:01, Kiran Badi wrote:
> 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.

My experience is that mismatched .class file versions do just that:
they result in errors being logged to stdout / catalina.out.

Perhaps you have a logging configuration which disables that?

- -chris

> 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
>>
>>
>
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl76VcYACgkQHPApP6U8
pFg0hw//XS313bw+b+jfbe8cCRwz7DXCoR9DloQ+IgBWnaz+p/VgeMj7ZVOrXtzw
cTyRKzWz5vxHg4aRkY71ONqKPgtPsOC1vR/Cw6r3BFYJ0asD0tlIvGniYJ0BWWeZ
tMpQMwxE21LNNLGP5nK0nPUdrj1KdIjb1GhmAqEfSsF5nEtuwYRsfBWOqL+gPMja
4uxcIbXeq7PuyPvI6m5Nwv/dZ5uVxQZ8zc0FYZf5rURC2w6p01DyPwsfsiHn8Ldf
d+6MdMF2zQLNxacRW2iqDvpgjgoZ57Dto4RkKHJzN5WktnO386/Podw7rGBdaZ8D
vSqw+gF/Lp5wWP3QyQMshOvmUqdrcsI1qHIa+PIQOu0kS4SK39Bc8ccwHcCQorie
jQSc83WNe3Ock4EUjsXAbaC4jHFYWA6ggn32HyaO7lHcMECwfBPxvXsntKE+hRxB
0n5aKfGWLGRDiGevKZXbPUjcAeOwM9knBeoyVXCvyPG7QJ1jymQtapA8vLIl5g/V
tkazXroWb9edKS6SXs6WvbsHwnc6cm8Fvija7HAOIJGbTz0S26q6qyWew/He3MtT
BabV0TTxexOAuiRWU1S0G4Gvm4ZGaRhRh/EQGvCpjUn+MlGVWC9hT8TpbSykW6wf
8vpSWpvAobydsq8YX//tymXn9Ab5ia85Ds0gbyaBOOK75+fez7A=
=fzrm
-----END PGP SIGNATURE-----

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

Reply via email to