Web development exception: Java. Lang. classnotfoundexception

Source: Internet
Author: User
    • Start the Tomcat server on the eclipse server to run the web project. An exception occurs.

Java. Lang. classnotfoundexception

Information: Set web app root system property:
'Webapp. root' =[F: \ work_space_soft \. Metadata \. plugins \ org. Eclipse. WST. server. Core \ tmp0 \ wtpwebapps \ lottes_03_14 \]3:14:43Org. Apache. Catalina. Core. applicationcontext log information: initializing log4j from
[F: \ work_space_soft \. Metadata \. plugins \ org. Eclipse. WST. server. Core \ tmp0 \ wtpwebapps \ lottes_03_14 \ Web-INF \ conf \ log4j. xml]3:14:44Org. Apache. Catalina. Core. standardcontext filterstart: exception starting filter user authentication filterJava. Lang. classnotfoundexception: COM. Soft. Web. Filter. userauthenfilter

 

      • Exception parsing: the Java compilation file (. Class) is not found
      • Cause tracing:
        • View the output location of the web Project compilation file:

        • Check the class file in the corresponding location. The class file does not exist in the following directory.
      • Solution:
        • Refresh the project and re-compile the WEB Project.
        • The following error message is displayed on the console:
Delete -- force F:/soft/03_14/webroot/WEB-INF/classes/System. properties path is not a working copy directorysvn:'F: \ soft \ 03_14 \ webroot \ WEB-INF \ Classes \ system. properties' is not a working copy
        • Delete the above files and re-compile the project.
        • Until you confirm that there is a class file in the corresponding position of the web project.
        • Redeploy the WEB Project within the eclipse development tool.
        • Restart Tomcat server again. This exception does not occur. Problem solved.
Related Article

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.