Java Error classes path configuration error

Source: Internet
Author: User

1. Error Display page

2. Resolve Step 2.1. View root cause information
' urlmapping ' [/web-inf/spring-servlet.xml] cannot find class [com.myweb.IndexAction] for beans with name ' indexaction ' defined in ServletContext resource [/w Eb-inf/spring-servlet.xml]; Nested exception is java.lang.ClassNotFoundException:com.myweb.IndexAction
Related Cause:org.springframework.beans.factory.CannotLoadBeanClassException:Cannot Find class [ Com.myweb.IndexAction] for beans with name ' indexaction ' defined in ServletContext resource [/web-inf/spring-servlet.xml] ; Nested exception is java.lang.ClassNotFoundException:com.myweb.IndexAction
2.2. Analyze information points

It is obvious that indexaction is not found, that is, the indexaction.class generated by Indexaction.java.

2.3. Problem path Analysis 2.3.1. Path is not correct

Refers to the classes path is not correct, should be in the myweb/webapp/web-inf/classes/. This is the cause of this error, and this path is misconfigured.

2.3.2. File not generated

Whether there is a corresponding file generation under the 2.3.1

2.3.3. Other reasons

In addition to the above two reasons, there may be other derivative problems. When executing index.do, the corresponding Indexaction.class is found according to the configuration. But not found now, can also be resolved, is the configuration is not paired.

Java Error classes path configuration error

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.