The deployment of Java EE was recently learned without the help of deployment in eclipse, but rather by modifying the Server.xml file
Add a context Path
<context path= "/tm" docbase= "G:\\javasummary\\11javaee\\20src\\tmall_servlet_jsp\\tmall_servlet_jsp\\web" debug= "0" reloadable= "false"/>
At the beginning, every time I was prompted,
Exception Starting filter Backservletfilter
Java.lang.ClassNotFoundException:tmall.filter.BackServletFilter
But I looked at Tomcat's logs error log localhost.xxxx.log found that the corresponding filter was missing, but when I looked at the document, it didn't really backservletfilter the file.
Error problem:
Multiple distress answers, found to be their own classes file output error
The default output class in Ecilpse is in the bin directory, but after Tomcat is started, by default, the bin directory is not searched for these class files, but instead goes to the web-inf/classes directory to look for. So with this step of configuration, the eclipse's class file is output to the Web-inf/classes directory, so it's compatible with Tomcat.
However, I did not modify the class file, resulting in the compilation file does not find much corresponding location.
Workaround:
First, create the classes directory under Web-inf to set the project's class file output from the original j2ee/bin to J2ee/web/web-inf/classes
Step: Project Right->properties->java Build path->source-> the lower right corner of the brower-> specified location is j2ee/web/web-inf/classes.
Java EE error hint Exception starting filter Backservletfilter java.lang.ClassNotFoundException: Tmall.filter.BackServletFilter the mistake.