Some pit encountered!

The installation pit tomcat9 record the encounter, today I start my tomcat being given a lot of service

. 4 ,     . 11 -Feb- 2020  18 is : 34 is : 32.223 Warning [main] org.apache.catalina.core.AprLifecycleListener.init loading APR-based local repository failed error report [E: \ Apache-tomcat-. 9.0 . 30 - -x64-Windows \-tomcat- Apache 9.0 . 30 \ bin \ tcnative- . 1 .dll: Can ' T' bit .dll Load ON the AMD-64 A IA-32 'bit Platform] 
. 5 , java.lang.UnsatisfiedLinkError: E: \ Apache -tomcat- 9.0 . 30 -Windows-x64-\-tomcat- Apache 9.0 . 30 \ bin \ tcnative- . 1 .dll: Can 't load AMD 64-bit .dll on a IA 32-bit platform

We can see the error message refers to

tcnative-1.dll: Can not load AMD 64-bit .dll on a IA 32-bit platform, Baidu online this sentence to say that this dll is 32, and 64 to write, and then put the tomcat installation directory on the line, 
but I downloaded well, or will be reported the same mistake
after another error % 1 is not a valid Win32 application.
This is the position information of jre installed in the C drive

 

 We can see 1.8_221 own jvm loaded, but then I found this to be a 32-bit jdk, but I use java-version, obviously output a 64-bit jdk

 

 After I find information fast day, I finally found the answer, the reason is because I had installed just a jre file, because I had unloading is not clean (installed the wrong version) is not a jdk, jdk including jre, because jre directory does not jre file, so I finally re-download a jdk, tomcat service finally out of it. Really tired!

But also to gain a lot, such as viewing tomcat error logs, log in conf folder and view the version information of tomcat

In the bin directory enter version.bat you can view the version information tomcat

tomcat configuration jdk version, https://blog.csdn.net/weixin_44919928/article/details/94225592

Tomcat garbled problem: Change Output Character Set

Tomcat installation directory -conf-logging.Properties

Anyway, various attempts continue to Baidu. Finally, we must determine the JDK version installed on, or else a lot of trouble.

 

Guess you like

Origin www.cnblogs.com/laitongxue/p/12302132.html