<tfoot id='C8emU'></tfoot>

<small id='C8emU'></small><noframes id='C8emU'>

  1. <legend id='C8emU'><style id='C8emU'><dir id='C8emU'><q id='C8emU'></q></dir></style></legend>

  2. <i id='C8emU'><tr id='C8emU'><dt id='C8emU'><q id='C8emU'><span id='C8emU'><b id='C8emU'><form id='C8emU'><ins id='C8emU'></ins><ul id='C8emU'></ul><sub id='C8emU'></sub></form><legend id='C8emU'></legend><bdo id='C8emU'><pre id='C8emU'><center id='C8emU'></center></pre></bdo></b><th id='C8emU'></th></span></q></dt></tr></i><div id='C8emU'><tfoot id='C8emU'></tfoot><dl id='C8emU'><fieldset id='C8emU'></fieldset></dl></div>

      • <bdo id='C8emU'></bdo><ul id='C8emU'></ul>

      无法在 Struts 中加载配置

      时间:2023-10-15

          <small id='WKCBx'></small><noframes id='WKCBx'>

            <bdo id='WKCBx'></bdo><ul id='WKCBx'></ul>
            • <legend id='WKCBx'><style id='WKCBx'><dir id='WKCBx'><q id='WKCBx'></q></dir></style></legend>

                <i id='WKCBx'><tr id='WKCBx'><dt id='WKCBx'><q id='WKCBx'><span id='WKCBx'><b id='WKCBx'><form id='WKCBx'><ins id='WKCBx'></ins><ul id='WKCBx'></ul><sub id='WKCBx'></sub></form><legend id='WKCBx'></legend><bdo id='WKCBx'><pre id='WKCBx'><center id='WKCBx'></center></pre></bdo></b><th id='WKCBx'></th></span></q></dt></tr></i><div id='WKCBx'><tfoot id='WKCBx'></tfoot><dl id='WKCBx'><fieldset id='WKCBx'></fieldset></dl></div>
                <tfoot id='WKCBx'></tfoot>
                  <tbody id='WKCBx'></tbody>
                本文介绍了无法在 Struts 中加载配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在尝试在在线考试中实施 STRUTS SPRING 和 HIBERNATE 集成.在使用 apache tomcat 7.0.42 在 Eclipse Kepler 中运行项目时,它会抛出以下错误

                I'm trying to implement STRUTS SPRING AND HIBERNATE INTEGRATION ON ONLINE EXAMINATION. while running the project in Eclipse Kepler using apache tomcat 7.0.42, it throws me the following error

                **HTTP Status 404 - /OnlineExam/registration.jsp**
                **Description:**The requested resource is not available.
                

                在控制台日志中,出现以下内容,

                In Console log, following things appear,

                    SEVERE: Exception starting filter struts2
                Unable to load configuration. - action - file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp3/wtpwebapps/iSAS/WEB-INF/classes/struts.xml:16:73
                    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
                    at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
                    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
                    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
                    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
                    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
                    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)
                    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)
                    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
                    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
                    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                    at java.lang.Thread.run(Thread.java:724)
                Caused by: Unable to load configuration. - action - file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp3/wtpwebapps/iSAS/WEB-INF/classes/struts.xml:16:73
                    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
                    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
                    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
                    ... 14 more
                Caused by: Error building results for action userRegistration in namespace  - action - file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp3/wtpwebapps/iSAS/WEB-INF/classes/struts.xml:16:73
                    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:367)
                    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:468)
                    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:264)
                    at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
                    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)
                    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
                    ... 16 more
                Caused by: There is no result type defined for type 'tiles' mapped with name 'SUCCESS'.  Did you mean 'tiles'? - result - file:/C:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp3/wtpwebapps/iSAS/WEB-INF/classes/struts.xml:17:40
                    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:621)
                    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)
                    ... 21 more
                

                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">
                
                <struts>
                
                    <constant name="struts.objectFactory" value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
                    <constant name="struts.ui.theme" value="simple" />
                    <constant name="struts.devMode" value="true" />
                
                    <package name="default" extends="struts-default">       
                        <result-types>
                            <result-type name="tiles" class="org.apache.struts2.views.tiles.TilesResult"/>
                        </result-types>
                
                        <action name="userRegistration" method="{1}" class="userRegistration">
                            <result name="SUCCESS" type="tiles">isas.user.registration</result>
                            <result name="ERROR" type="tiles">isas.errorPage</result>
                            <result name="input" type="tiles">isas.user.registration</result>
                        </action>
                
                    </package>
                </struts>
                

                请帮助我的朋友.我不知道为什么会出现.无论如何提前谢谢...!!!

                Please Help me Friends. I don't know why that appears. Anyway thanks in Advance...!!!

                推荐答案

                我认为您缺少struts2-spring-plugin-2.1.6.jar"文件,请在您的类路径中检查它

                I think you are missing the "struts2-spring-plugin-2.1.6.jar" file, please check it in your classpath

                这篇关于无法在 Struts 中加载配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:如何在 Struts 2 中使用 JSP 返回 JSON 结果 下一篇:如何在 Struts 2 中的一个表单上添加两个提交按钮

                相关文章

              • <tfoot id='fe7m2'></tfoot>

              • <legend id='fe7m2'><style id='fe7m2'><dir id='fe7m2'><q id='fe7m2'></q></dir></style></legend>

                  • <bdo id='fe7m2'></bdo><ul id='fe7m2'></ul>

                1. <i id='fe7m2'><tr id='fe7m2'><dt id='fe7m2'><q id='fe7m2'><span id='fe7m2'><b id='fe7m2'><form id='fe7m2'><ins id='fe7m2'></ins><ul id='fe7m2'></ul><sub id='fe7m2'></sub></form><legend id='fe7m2'></legend><bdo id='fe7m2'><pre id='fe7m2'><center id='fe7m2'></center></pre></bdo></b><th id='fe7m2'></th></span></q></dt></tr></i><div id='fe7m2'><tfoot id='fe7m2'></tfoot><dl id='fe7m2'><fieldset id='fe7m2'></fieldset></dl></div>

                  <small id='fe7m2'></small><noframes id='fe7m2'>