Re: Tomcat 9.0.36 - JDK 13/14
On 02.07.2020 10:23, Utkarsh Bhargav wrote: Please i have resolved my issue Kindly stop sending mails Hi. You receive these emails because you subscribed to the email list "users@tomcat.apache.org". To not receive these emails anymore, you should unsubscribe from the list, be sending an email (from the same email address which you used to subscribe), *as indicated at the end of every email that you receive from the list*. (including this one) [...] - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 9.0.36 - JDK 13/14
Please i have resolved my issue Kindly stop sending mails On Tue, 30 Jun, 2020, 5:53 AM Kiran Badi, wrote: > Hi Mark, It does not log any errors. Just reverted back to the JDK1.8 > version and tried to recreate the issue. I can recreate it. I had a doubt > that the logging configuration might have messed up, so had to create a > sample war file to check this. > > Anyone can try this and see if it works for them. Just build a simple > spring boot app with jdk 13/14 and deploy it on the latest tomcat running > on jdk 1.8. Maybe something is messed up in my environment. > > Here is console catalina.out log along with same use case classes from > spring site. > > 29-Jun-2020 20:19:24.852 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Server version name: > Apache Tomcat/9.0.36 > 29-Jun-2020 20:19:24.854 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Server built: > Jun 3 2020 17:07:09 UTC > 29-Jun-2020 20:19:24.854 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Server version > number: 9.0.36.0 > 29-Jun-2020 20:19:24.854 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log OS Name: > Windows 10 > 29-Jun-2020 20:19:24.855 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log OS Version: > 10.0 > 29-Jun-2020 20:19:24.855 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Architecture: > amd64 > 29-Jun-2020 20:19:24.855 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Java Home: > C:\Program Files\Java\jdk1.8.0_221\jre > 29-Jun-2020 20:19:24.855 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log JVM Version: > 1.8.0_221-b11 > 29-Jun-2020 20:19:24.855 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: > Oracle Corporation > 29-Jun-2020 20:19:24.855 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: > C:\Program Files\Apache Software Foundation\apache-tomcat-9.0.36 > 29-Jun-2020 20:19:24.855 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: > C:\Program Files\Apache Software Foundation\apache-tomcat-9.0.36 > 29-Jun-2020 20:19:24.856 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: -Djava.util.logging.config.file=C:\Program Files\Apache Software > Foundation\apache-tomcat-9.0.36\conf\logging.properties > 29-Jun-2020 20:19:24.856 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > 29-Jun-2020 20:19:24.857 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: -Djdk.tls.ephemeralDHKeySize=2048 > 29-Jun-2020 20:19:24.857 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources > 29-Jun-2020 20:19:24.857 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: -Dignore.endorsed.dirs= > 29-Jun-2020 20:19:24.857 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: -Dcatalina.base=C:\Program Files\Apache Software > Foundation\apache-tomcat-9.0.36 > 29-Jun-2020 20:19:24.857 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: -Dcatalina.home=C:\Program Files\Apache Software > Foundation\apache-tomcat-9.0.36 > 29-Jun-2020 20:19:24.858 INFO [main] > org.apache.catalina.startup.VersionLoggerListener.log Command line > argument: -Djava.io.tmpdir=C:\Program Files\Apache Software > Foundation\apache-tomcat-9.0.36\temp > 29-Jun-2020 20:19:24.860 INFO [main] > org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache > Tomcat Native library which allows using OpenSSL was not found on the > java.library.path: [C:\Program > > Files\Java\jdk1.8.0_221\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Python38\Scripts\;C:\Python38\;C:\app\oracle\product\12.2.0\dbhome_1\bin;C:\Python27\;C:\Python27\Scripts;C:\Program > Files (x86)\Common > > Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program > Files\Apache Software Foundation\apache-maven-3.3.9\bin;C:\Program > Files\Java\jdk1.8.0_121;C:\Program Files\PuTTY\;C:\Program > Files\Git\cmd;C:\Program Files > > (x86)\Calibre2\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program > Files\AdoptOpenJDK\jdk8u192-b12\bin;C:\Program > > Files\Java\jdk1.8.0_221\bin;C:\Android\android-sdk\tools;C:\Android\android-sdk\platform-tools;C:\Android\android-sdk\tools\bin;C:\Program > > Files\dotnet\;C:\Users\KIRAN\AppData\Local\Microsoft\WindowsApps;C:\Users\KIRAN\AppData\Local\Programs\Fiddler;C:\Users\KIRAN\AppData\Local\Microsoft\WindowsApps;C:\Program > Files\JetBrains\IntelliJ IDEA > 2019.1\
Re: Tomcat 9.0.36 - JDK 13/14
Hi Mark, It does not log any errors. Just reverted back to the JDK1.8 version and tried to recreate the issue. I can recreate it. I had a doubt that the logging configuration might have messed up, so had to create a sample war file to check this. Anyone can try this and see if it works for them. Just build a simple spring boot app with jdk 13/14 and deploy it on the latest tomcat running on jdk 1.8. Maybe something is messed up in my environment. Here is console catalina.out log along with same use case classes from spring site. 29-Jun-2020 20:19:24.852 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/9.0.36 29-Jun-2020 20:19:24.854 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jun 3 2020 17:07:09 UTC 29-Jun-2020 20:19:24.854 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.36.0 29-Jun-2020 20:19:24.854 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10 29-Jun-2020 20:19:24.855 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0 29-Jun-2020 20:19:24.855 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 29-Jun-2020 20:19:24.855 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\Java\jdk1.8.0_221\jre 29-Jun-2020 20:19:24.855 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_221-b11 29-Jun-2020 20:19:24.855 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation 29-Jun-2020 20:19:24.855 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Program Files\Apache Software Foundation\apache-tomcat-9.0.36 29-Jun-2020 20:19:24.855 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Program Files\Apache Software Foundation\apache-tomcat-9.0.36 29-Jun-2020 20:19:24.856 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\apache-tomcat-9.0.36\conf\logging.properties 29-Jun-2020 20:19:24.856 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 29-Jun-2020 20:19:24.857 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 29-Jun-2020 20:19:24.857 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 29-Jun-2020 20:19:24.857 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 29-Jun-2020 20:19:24.857 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Program Files\Apache Software Foundation\apache-tomcat-9.0.36 29-Jun-2020 20:19:24.857 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\apache-tomcat-9.0.36 29-Jun-2020 20:19:24.858 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\apache-tomcat-9.0.36\temp 29-Jun-2020 20:19:24.860 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [C:\Program Files\Java\jdk1.8.0_221\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Python38\Scripts\;C:\Python38\;C:\app\oracle\product\12.2.0\dbhome_1\bin;C:\Python27\;C:\Python27\Scripts;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Apache Software Foundation\apache-maven-3.3.9\bin;C:\Program Files\Java\jdk1.8.0_121;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Calibre2\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\AdoptOpenJDK\jdk8u192-b12\bin;C:\Program Files\Java\jdk1.8.0_221\bin;C:\Android\android-sdk\tools;C:\Android\android-sdk\platform-tools;C:\Android\android-sdk\tools\bin;C:\Program Files\dotnet\;C:\Users\KIRAN\AppData\Local\Microsoft\WindowsApps;C:\Users\KIRAN\AppData\Local\Programs\Fiddler;C:\Users\KIRAN\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\IntelliJ IDEA 2019.1\bin;C:\Users\KIRAN\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\KIRAN\Ap;C:\Program Files\nodejs\;C:\Users\KIRAN\scoop\shims;C:\Users\KIRAN\AppData\Local\Microsoft\WindowsApps;;C:\Users\KIRAN\AppData\Local\Programs\Fiddler;C:\Users\KIRAN\AppData\Local\Microsoft\WindowsApps;C:\Program F
Re: Tomcat 9.0.36 - JDK 13/14
-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 > 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. >>> >>> >> 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";> >>> 4.0.0 >>> org.springframework.boot >>> spring-boot-starter-parent >>> 2.3.1.RELEASE >>> com.kiran >>> springwar >>> 1.0.2-SNAPSHOT war >>> springwar Sample project to deploy >>> war to tomcat >>> >>> 14 >>> >>> >>> org.springframework.boot >>> spring-boot-starter-web >>> >>> org.springframework.boot >>> spring-boot-starter-tomcat >>> provided >>> org.springframework.boot >>> spring-boot-starter-test >>> test >>> org.junit.vintage >>> junit-vintage-engine >>> >>> >> >> >> - >> >> 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
Re: Tomcat 9.0.36 - JDK 13/14
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 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. > > > > > > 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";> > > 4.0.0 > > > > org.springframework.boot > > spring-boot-starter-parent > > 2.3.1.RELEASE > > > > > > com.kiran > > springwar > > 1.0.2-SNAPSHOT > > war > > springwar > > Sample project to deploy war to tomcat > > > > > > 14 > > > > > > > > > > org.springframework.boot > > spring-boot-starter-web > > > > > > > > org.springframework.boot > > spring-boot-starter-tomcat > > provided > > > > > > org.springframework.boot > > spring-boot-starter-test > > test > > > > > > org.junit.vintage > > junit-vintage-engine > > > > > > > > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: Tomcat 9.0.36 - JDK 13/14
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. > > > 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";> > 4.0.0 > > org.springframework.boot > spring-boot-starter-parent > 2.3.1.RELEASE > > > com.kiran > springwar > 1.0.2-SNAPSHOT > war > springwar > Sample project to deploy war to tomcat > > > 14 > > > > > org.springframework.boot > spring-boot-starter-web > > > > org.springframework.boot > spring-boot-starter-tomcat > provided > > > org.springframework.boot > spring-boot-starter-test > test > > > org.junit.vintage > junit-vintage-engine > > > > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org