Struts2的一个问题: 找不到struts.xml的路径问题

一、 最近在学习Struts2的一些知识,在使用Struts2搭建框架的时候,部署到服务器上的时候出现上面的问题:

三月 19, 2016 1:43:24 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclipse.jst.jee.server:Struts2Test‘ did not find a matching property.
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/7.0.68
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Feb 8 2016 20:25:54 UTC
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         7.0.68.0
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 7
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.1
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             E:\Java\javaJre
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_73-b02
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         E:\Java Work\Java Source\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         E:\Java\Tomcat7.0\apache-tomcat-7.0.68-windows-x64\apache-tomcat-7.0.68
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=E:\Java Work\Java Source\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=E:\Java\Tomcat7.0\apache-tomcat-7.0.68-windows-x64\apache-tomcat-7.0.68
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=E:\Java Work\Java Source\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=E:\Java\Tomcat7.0\apache-tomcat-7.0.68-windows-x64\apache-tomcat-7.0.68\endorsed
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
三月 19, 2016 1:43:24 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Java\javaJre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;E:/Java/javaJre/bin/server;E:/Java/javaJre/bin;E:/Java/javaJre/lib/amd64;E:\app\Administrator\product\11.2.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\TXE Components\TCS\;C:\Program Files\Intel\TXE Components\TCS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\Java\JavaJdk\bin;;E:\Java\Eclipse_juno\eclipse-jee-juno-SR2-win32-x86_64\eclipse;;.
三月 19, 2016 1:43:24 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
三月 19, 2016 1:43:24 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
三月 19, 2016 1:43:24 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1471 ms
三月 19, 2016 1:43:25 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
三月 19, 2016 1:43:25 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.68
三月 19, 2016 1:43:26 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [515] milliseconds.
三月 19, 2016 1:43:27 下午 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.
三月 19, 2016 1:43:28 下午 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
信息: Parsing configuration file [struts-default.xml]
三月 19, 2016 1:43:28 下午 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
信息: Unable to locate configuration files of the name struts-plugin.xml, skipping
三月 19, 2016 1:43:28 下午 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
信息: Parsing configuration file [struts-plugin.xml]
三月 19, 2016 1:43:28 下午 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
信息: Parsing configuration file [struts.xml]
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ActionFactory)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ResultFactory)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ConverterFactory)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.InterceptorFactory)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.factory.ValidatorFactory)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionPropertiesProcessor)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionFileProcessor)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ConversionAnnotationProcessor)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterCreator)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.TypeConverterHolder)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)
三月 19, 2016 1:43:28 下午 org.apache.struts2.config.AbstractBeanSelectionProvider info
信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.TextParser)
三月 19, 2016 1:43:29 下午 org.apache.struts2.dispatcher.Dispatcher error
严重: Dispatcher initialization failed
Unable to load configuration. - action - file:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/classes/struts.xml:8:57
    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)
    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.<init>(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: Error building results for action login in namespace / - action - file:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/classes/struts.xml:8:57
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:437)
    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
Caused by: There is no result type defined for type ‘success‘ mapped with name ‘success‘.  Did you mean ‘success‘? - result - file:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/classes/struts.xml:9:36
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:721)
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:435)
    ... 21 more

三月 19, 2016 1:43:29 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter Struts2
Unable to load configuration. - action - file:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/classes/struts.xml:8:57
    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.<init>(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:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/classes/struts.xml:8:57
    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: Error building results for action login in namespace / - action - file:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/classes/struts.xml:8:57
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:437)
    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
Caused by: There is no result type defined for type ‘success‘ mapped with name ‘success‘.  Did you mean ‘success‘? - result - file:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/classes/struts.xml:9:36
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:721)
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:435)
    ... 21 more

三月 19, 2016 1:43:29 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
三月 19, 2016 1:43:29 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/Struts2Test] startup failed due to previous errors
三月 19, 2016 1:43:29 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
三月 19, 2016 1:43:29 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
三月 19, 2016 1:43:29 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4367 ms

二、 之后找了一些答案但是没有解决我的问题,有的人说少了一个包struts2-sprint-plugin.jar包,但是我导入这个包重新部署我的项目之后新的问题有发生了:

三月 19, 2016 1:46:41 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source‘ to ‘org.eclipse.jst.jee.server:Struts2Test‘ did not find a matching property.
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/7.0.68
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Feb 8 2016 20:25:54 UTC
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         7.0.68.0
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 7
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.1
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             E:\Java\javaJre
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.8.0_73-b02
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Oracle Corporation
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         E:\Java Work\Java Source\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         E:\Java\Tomcat7.0\apache-tomcat-7.0.68-windows-x64\apache-tomcat-7.0.68
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=E:\Java Work\Java Source\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=E:\Java\Tomcat7.0\apache-tomcat-7.0.68-windows-x64\apache-tomcat-7.0.68
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dwtp.deploy=E:\Java Work\Java Source\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=E:\Java\Tomcat7.0\apache-tomcat-7.0.68-windows-x64\apache-tomcat-7.0.68\endorsed
三月 19, 2016 1:46:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=GBK
三月 19, 2016 1:46:41 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Java\javaJre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;E:/Java/javaJre/bin/server;E:/Java/javaJre/bin;E:/Java/javaJre/lib/amd64;E:\app\Administrator\product\11.2.0\dbhome_1\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\TXE Components\TCS\;C:\Program Files\Intel\TXE Components\TCS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;E:\Java\JavaJdk\bin;;E:\Java\Eclipse_juno\eclipse-jee-juno-SR2-win32-x86_64\eclipse;;.
三月 19, 2016 1:46:42 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
三月 19, 2016 1:46:42 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
三月 19, 2016 1:46:42 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1503 ms
三月 19, 2016 1:46:42 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
三月 19, 2016 1:46:42 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.68
三月 19, 2016 1:46:43 下午 org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
信息: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [452] milliseconds.
三月 19, 2016 1:46:45 下午 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.
三月 19, 2016 1:46:45 下午 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
信息: Parsing configuration file [struts-default.xml]
三月 19, 2016 1:46:45 下午 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info
信息: Parsing configuration file [struts-plugin.xml]
三月 19, 2016 1:46:45 下午 org.apache.struts2.dispatcher.Dispatcher error
严重: Dispatcher initialization failed
Unable to load configuration. - bean - jar:file:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/lib/struts2-spring-plugin-2.3.16.1.jar!/struts-plugin.xml:29:132
    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)
    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.<init>(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 bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean - jar:file:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/lib/struts2-spring-plugin-2.3.16.1.jar!/struts-plugin.xml:29:132
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
    at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:234)
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
    ... 16 more
Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3118)
    at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1340)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1827)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3118)
    at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1340)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1827)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
    at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:144)
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)
    ... 19 more
Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContextAware
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
    ... 35 more

三月 19, 2016 1:46:45 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter Struts2
Unable to load configuration. - bean - jar:file:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/lib/struts2-spring-plugin-2.3.16.1.jar!/struts-plugin.xml:29:132
    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.<init>(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. - bean - jar:file:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/lib/struts2-spring-plugin-2.3.16.1.jar!/struts-plugin.xml:29:132
    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: Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean - jar:file:/E:/Java%20Work/Java%20Source/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Struts2Test/WEB-INF/lib/struts2-spring-plugin-2.3.16.1.jar!/struts-plugin.xml:29:132
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
    at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:234)
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
    ... 16 more
Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3118)
    at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1340)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1827)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3118)
    at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1340)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1827)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
    at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:144)
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)
    ... 19 more
Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContextAware
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1858)
    at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1701)
    ... 35 more

三月 19, 2016 1:46:45 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
三月 19, 2016 1:46:45 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/Struts2Test] startup failed due to previous errors
三月 19, 2016 1:46:45 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
三月 19, 2016 1:46:45 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
三月 19, 2016 1:46:45 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3568 ms
时间: 2024-10-10 00:45:26

Struts2的一个问题: 找不到struts.xml的路径问题的相关文章

struts2中改变struts.xml默认路径

struts2.X配置文件默认存放路径在/WEB-INF/classes目录下,即将struts.xml放在src的目录下. 但是为了方便管理,开发人员把struts.xml放到其他位置,处理方法如下. 首先要明白struts2加载配置文件都是从自己的jar包和/WEB-INF/classes两个默认的位置加载的. 若修改struts2.x配置文件的存放位置,在web.xml配置过虑器时,具体配置如下: <filter> <filter-name>struts2</filte

struts2配置文件的加载顺序以及 struts.xml package 的配置说明

查看StrutsPrepareAndExecuteFilter:(核心过滤器)两个功能 :预处理 和 执行 在预处理功能中 init 方法中会有加载配置文件的代码: dispatcher.init(); init_DefaultProperties(); // [1]                  ---- 加载org.apache.struts.default.properties.配置的是struts2的所有常量. init_TraditionalXmlConfigurations();

Struts2更改配置文件struts.xml默认路径

struts2配置文件默认存放路径在/WEB-INF/classes目录下,即将struts.xml放在src的目录下. 但是为了协作开发与方便管理,我们有时需要把struts.xml放到其他位置 struts2加载配置文件都是先从自己的jar包和/WEB-INF/classes两个默认的位置加载的. 若修改struts2配置文件的存放位置,在web.xml配置过虑器,具体配置如下: <filter> <filter-name>struts2</filter-name>

关于Struts.xml的路径配置以及对应的连接路径问题

主要记住一点!: 1.   namespace的路径配置例如:/x:   2.  name名自由配置(主要用来是做action跳转方法用的) 3.  form表单中提交action时以这个格式提交(此格式是在namespace不是根目录设置时用的):/x/action名: 4.  还有就是result的配置目的路径,最好是在目的名前面加上"/": 原文地址:https://www.cnblogs.com/yangmaolin/p/11667095.html

struts2中struts.xml配置文件详解【未整理】

1.    深入Struts2的配置文件 本部分主要介绍struts.xml的常用配置. 1.1.    包配置: Struts2框架中核心组件就是Action.拦截器等,Struts2框架使用包来管理Action和拦截器等.每个包就是多个Action.多个拦截器.多个拦截器引用的集合. 在struts.xml文件中package元素用于定义包配置,每个package元素定义了一个包配置.它的常用属性有: l name:必填属性,用来指定包的名字. l extends:可选属性,用来指定该包继承

struts.xml详解

参考自:http://blog.csdn.net/zz_mm/article/details/5460397 1.    深入Struts2的配置文件 本部分主要介绍struts.xml的常用配置. 1.1.    包配置: Struts2框架中核心组件就是Action.拦截器等,Struts2框架使用包来管理Action和拦截器等.每个包就是多个Action.多个拦截器.多个拦截器引用的集合. 在struts.xml文件中package元素用于定义包配置,每个package元素定义了一个包配置

转 struts.xml的加载路径及配置问题

在配置在使用struts2整合spring时,把配置文件struts.xml放在WEB-IN下时,出现请求无效,当把struts.xml放在src下时有正常了, struts.xml一般不是放在WEB-IN下的吗?为什么会出现这种现象? 可是用struts1.x的时候,struts-config.xml也是放在WEB-INF下的啊,struts2跟struts1在这点上不一样吗? 可是我单用struts2没有整合spring时,struts.xml也是放在WEB-INF下也没有问题啊 这个得从s

配置Struts.xml DTD文件报错

报错信息为: The content of element type "struts" must match "((package|include|bean|  constant)*,unknown-handler-stack?)" 先来说说Struts框架的使用.1,下载Struts开发包:2,将需要的jar包导入到项目中 http://archive.apache.org/dist/struts/source/      struts源码包下载地址 http:/

struts2 一个简洁的struts.xml

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