Struts2 error!

Source: Internet
Author: User
Struts problem report

Struts has detected an unhandled exception:

Messages:
  • There is no Action mapped for namespace/projectinfo and action name query.

Stacktraces

There is no Action mapped for namespace/projectinfo and action name query.-[unknown location]

    com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)    org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:41)    org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494)    org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)    org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)    java.lang.Thread.run(Unknown Source)

You are seeing this page because development mode is enabled. development mode, or devmode, enables extra debugging behaviors and reports to assist developers. To disable this mode, set:

  struts.devMode=false

In yourWEB-INF/classes/struts.propertiesFile.

After using SSH + Tomcat for a long time, this problem suddenly appeared today. The answer was a lot of nonsense, and various translations...

The reason why there is no action mapped for namespace/projectinfo and action name query is: The method name in the action and the method name in the configuration file are wrong. It's really careless. Remember!

It seems that Ctrl + C/V should be used in the future to ensure that no error will occur.


Struts2 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.