Java EE error hint Exception starting filter Backservletfilter java.lang.ClassNotFoundException: Tmall.filter.BackServletFilter the mistake.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.