tomcat deploy a couple of problems encountered

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/wh_xia_jun/article/details/98965780

An application tomcat6 after modifying a jsp page, restart the error:

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 1 in the generated java file
The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files

It found that the production environment is jdk1.8

tomcat6 not seem to support jdk1.8 it, upgrade to tomcat8.5

Need to change the port, modified by the following steps:

 

Step two: Modify modify http access port (default is 8080)
<Connector Port = "8070" maxThreads = "150" minSpareThreads = "25" maxSpareThreads = "75"
enableLookups = "false" redirectPort = "8443" acceptCount = " 100 "Debug =" 0 "connectionTimeout =" 20000 " 
disableUploadTimeout =" to true "the URIEncoding =" GBK "/>
8080 tomcat modify the first port number not in use. Port number set here is the port number that is later used to access the web.
The third step: modifying Shutdown port (default port 8005)
<Server Port = "8005" = the shutdown "the SHUTDOWN" Debug = "0">
will modify the port number 8005 is not in use, such as 8095.
Step Four: Modify the JVM startup port (default port 8009)
<Connector Port = "8009" = enableLookups "to false" the redirectPort = "8443" Debug = "0" = Protocol "AJP / 1.3" />

Restart, or find port 8080

Tomcat port change experienced solve the problem of failure

Adjusted according to the document, start properly.

But console garbled, access to  treatment tomcat8.5.38 console output garbled to solve the problem. 

Deploying to the test environment, there are Chinese garbage problem.

Press the Tomcat console Chinese garbled set invalid UTF-8, resolved by modifying the registry   of this article to solve

Presumably the reason, test environment installed version of tomcat, the registry, the relevant definition of the character set, defined not utf-8

 

[Meaning] Tomcat tomcat logs directory of each log file

 

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/wh_xia_jun/article/details/98965780