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