日期:2014-05-20  浏览次数:21166 次

Action class not found
我的错误信息; 
08-10-09 10:46:41 WARN Settings:143 - Settings: Could not parse struts.locale setting, substituting default VM locale 
08-10-09 10:46:42 ERROR [/MonitorCenter]:3639 - Exception starting filter struts2 
Action class [loginAction] not found - action - file:/M:/apache-tomcat-5.5.25/webapps/MonitorCenter/WEB-INF/classes/struts.xml:8:44 
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:374) 
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:329)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:429)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111) 
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152) 
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) 
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) 
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) 
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201) 
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221) 
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302) 
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78) 
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635) 
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222) 
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) 
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) 
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) 
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) 
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) 
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) 
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) 
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) 
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) 
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) 
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) 
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) 
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) 
at org.apache.catalina.core.StandardService.start(StandardService.java:448) 
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) 
at org.apache.catalina.startup.Catalina.start(Catalina.java:552) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
at java.lang.reflect.Method.invoke(Unknown Source) 
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) 
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) 
2008-10-9 10:46:42 org.apache.catalina.core.StandardContext start 

下面是我的配置: 
Struts.xml: 
<?xml version="1.0" encoding="UTF-8"?>