struts2 找不到action 页面404_SEO培训视频教程_企业网站整站SEO优化服务_2018seo技术外包公司

struts2 找不到action 页面404

struts2 找不到action 页面404  

QAQ大晚上的有没有人啊啊啊啊呜呜呜
struts.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">



/loginsuccess.jsp
/loginerror.jsp



web.xml

<?xml version="1.0" encoding="UTF-8"?>

DoudouShop

struts2
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter


struts2
/*

AdminAction.java
package doudou.struts.action;

import com.opensymphony.xwork2.ActionSupport;

import doudou.service.AdminServiceImpl;

public class AdminAction extends ActionSupport {

private String adminType; private String loginPwd; private String loginName; private String adminName; public String getAdminType() { return adminType; } public void setAdminType(String adminType) { this.adminType = adminType; } public String getLoginPwd() { return loginPwd; } public void setLoginPwd(String loginPwd) { this.loginPwd = loginPwd; } public String getLoginName() { return loginName; } public void setLoginName(String loginName) { this.loginName = loginName; } public String getAdminName() { return adminName; } public void setAdminName(String adminName) { this.adminName = adminName; } public String adminLogin() throws Exception{ AdminServiceImpl b=new AdminServiceImpl(); if(b.adminLogin(loginName, loginPwd)==null) return"success"; else return"error"; }

}

我运行最基本的jsp(没加任何内容) 还是显示404啊为什么啊
六月 12, 2016 12:55:27 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
六月 12, 2016 12:55:27 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/DoudouMall] startup failed due to previous errors
六月 12, 2016 12:55:28 上午 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See for more info.
六月 12, 2016 12:55:29 上午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - action - file:/D:/JEEworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/DoudouShop/WEB-INF/classes/struts.xml:7:71
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4908)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5602)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: Unable to load configuration. - action - file:/D:/JEEworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/DoudouShop/WEB-INF/classes/struts.xml:7:71
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
... 14 more
Caused by: Action class [doudou.struts.aciton.AdminAction] not found - action - file:/D:/JEEworkspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/DoudouShop/WEB-INF/classes/struts.xml:7:71
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:482)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:426)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:552)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:292)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:258)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 16 more

相关阅读

上一篇:WordPress的404 errors重定向插件   下一篇:浅谈301永久重定向技术要点