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

      <small id='9DxTa'></small><noframes id='9DxTa'>

    2. <tfoot id='9DxTa'></tfoot>
      • <bdo id='9DxTa'></bdo><ul id='9DxTa'></ul>
      <i id='9DxTa'><tr id='9DxTa'><dt id='9DxTa'><q id='9DxTa'><span id='9DxTa'><b id='9DxTa'><form id='9DxTa'><ins id='9DxTa'></ins><ul id='9DxTa'></ul><sub id='9DxTa'></sub></form><legend id='9DxTa'></legend><bdo id='9DxTa'><pre id='9DxTa'><center id='9DxTa'></center></pre></bdo></b><th id='9DxTa'></th></span></q></dt></tr></i><div id='9DxTa'><tfoot id='9DxTa'></tfoot><dl id='9DxTa'><fieldset id='9DxTa'></fieldset></dl></div>
    3. 无法在 Eclipse 项目中将 Bootstrap 插件与 Struts 2 一起使用

      Unable to use Bootstrap plugin with Struts 2 in Eclipse project(无法在 Eclipse 项目中将 Bootstrap 插件与 Struts 2 一起使用)
    4. <tfoot id='Gu4Jw'></tfoot>
      • <small id='Gu4Jw'></small><noframes id='Gu4Jw'>

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

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

                本文介绍了无法在 Eclipse 项目中将 Bootstrap 插件与 Struts 2 一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我一直在尝试将 Bootstrap 插件与我的 Struts 2 项目一起使用,但每当我尝试将 Bootstrap 或 JQuery jar 文件添加到我的 WEB-INF/lib 文件夹时,该项目不会运行并显示 404 错误.

                I have been trying to use Bootstrap plugin with my Struts 2 project, but whenever I try to add the Bootstrap or JQuery jar file to my WEB-INF/lib folder, the project doesn't run and shows up a 404 error.

                我在互联网上浏览了几个例子,人们一直在 Maven 项目中使用 bootstrap 并且工作正常,但我的不是 Maven 项目.

                I have gone through few examples in the Internet, where people have been using bootstrap in Maven project and its working fine, but mine isn't a Maven project.

                这是我在 Eclipse 控制台中遇到的错误.

                This is the error I have been getting in the Eclipse console.

                Unable to load configuration. - [unknown location]
                at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
                at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
                at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
                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.getFilter(ApplicationFilterConfig.java:295)
                at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:424)
                at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
                at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
                at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
                at org.apache.catalina.core.StandardService.start(StandardService.java:525)
                at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
                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:289)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
                
                Caused by: Unable to load jar:file:/C:/Users/1241399/Hibernate_Project/UpgradedProjects/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Infinity2.0/WEB-INF/lib/struts2-bootstrap-plugin-2.0.4.jar!/struts-plugin.xml - [unknown location]
                at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:909)
                at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:154)
                at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121)
                at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:179)
                at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
                ... 22 more
                
                Unable to load configuration. - [unknown location]
                at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)
                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.getFilter(ApplicationFilterConfig.java:295)
                at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:424)
                at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
                at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)
                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4726)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
                at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
                at org.apache.catalina.core.StandardService.start(StandardService.java:525)
                at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
                at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
                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:289)
                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
                
                Caused by: Unable to load configuration. - [unknown location]
                at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
                at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
                at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
                ... 20 more
                Caused by: Unable to load jar:file:/C:/Users/1241399/Hibernate_Project/UpgradedProjects/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Infinity2.0/WEB-INF/lib/struts2-bootstrap-plugin-2.0.4.jar!/struts-plugin.xml - [unknown location]
                at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:909)
                at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:154)
                at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:121)
                at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:179)
                at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
                ... 22 more
                
                Caused by: struts.apache.org - [unknown location]
                at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
                at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:904)
                ... 26 more
                
                Caused by: java.net.UnknownHostException: struts.apache.org
                at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
                at java.net.PlainSocketImpl.connect(Unknown Source)
                at java.net.SocksSocketImpl.connect(Unknown Source)
                at java.net.Socket.connect(Unknown Source)
                at java.net.Socket.connect(Unknown Source)
                at sun.net.NetworkClient.doConnect(Unknown Source)
                at sun.net.www.http.HttpClient.openServer(Unknown Source)
                at sun.net.www.http.HttpClient.openServer(Unknown Source)
                at sun.net.www.http.HttpClient.<init>(Unknown Source)
                at sun.net.www.http.HttpClient.New(Unknown Source)
                at sun.net.www.http.HttpClient.New(Unknown Source)
                at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
                at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
                at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
                at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
                at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
                at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)
                at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)
                at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
                at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
                at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
                at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
                at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
                at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
                at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
                at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
                at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)
                at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:113)
                ... 27 more
                

                推荐答案

                这个例子没有使用 Maven,而是使用了旧的 bootstrap 插件版本.不管怎样,它看起来很漂亮.

                This example doesn't use Maven, but it uses old bootstrap plugin's version. Anyway it's looking pretty.

                Struts 2 UI 组件标签用于创建页面元素比如表单、文本字段、密码和隐藏字段.支柱Bootstrap 标签用于 Twitter Bootstrap 集成.这Struts jQuery 标签用于包含 AJAX 功能从模态窗口外部提交表单并使用 UI日期选择器等小部件.

                The Struts 2 UI component tags are used to create the page elements like the form, textfield, password and hidden fields. The Struts Bootstrap tags are used for the Twitter Bootstrap integration. The Struts jQuery tags are used to include the AJAX functionality of submitting the form outside from the modal window and to use the UI widgets like the datepicker.

                注意:在博客中她没有向您展示如何使用引导插件.图书馆已经过时了.可能它在 GitHub 上没有版本.

                Note: in the blog she didn't show you how bootstrap plugin is used. Libraries are outdated. may be it has the never version on GitHub.

                这篇关于无法在 Eclipse 项目中将 Bootstrap 插件与 Struts 2 一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to debug .class files in ECLIPSE?(如何在 ECLIPSE 中调试 .class 文件?)
                How can I disable compiler warnings in Eclipse on a file specific basis?(如何在特定文件的基础上禁用 Eclipse 中的编译器警告?)
                Passing serialize array to struts2 action(将序列化数组传递给 struts2 动作)
                ActionError not getting displayed(ActionError 未显示)
                how do i configure applicationcontext.xml in eclipse(我如何在eclipse中配置applicationcontext.xml)
                Unable to load Configuration in Struts(无法在 Struts 中加载配置)
              1. <small id='4oLAi'></small><noframes id='4oLAi'>

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

                    <tbody id='4oLAi'></tbody>

                      • <bdo id='4oLAi'></bdo><ul id='4oLAi'></ul>
                        1. <legend id='4oLAi'><style id='4oLAi'><dir id='4oLAi'><q id='4oLAi'></q></dir></style></legend>