`

unable to locate configuration files of the name struts-plugin.xml提示信息的解决办法

阅读更多

今天手工写个struts2web例子,总是出现unable to locate configuration files of the name struts-plugin.xml的信息(不是错误,也不是敬告) ,看着很别扭,也搜了一下这方面的东西,不过没有找到确切的解决办法。

 

自己来试下,

 

lib目录下的jar包:

commons-fileupload-1.2.1.jar

commons-logging-1.0.4.jar

freemarker-2.3.15.jar

ognl-2.7.3.jar

struts2-core-2.1.8.1.jar

xwork-core-2.1.6.jar

 

然后点击startup.bat启动tomcat,这时会有

unable to locate configuration files of the name struts-plugin.xml

的信息。

 

分析下,从字面理解,struts-plugin.xml,不能定位名字为名字为struts-plugin.xml的文件。应该是给struts2的插件机制有关,现在要在lib下添加一个struts2的任意一个插件

添加两个jar包

struts2-json-plugin-2.1.8.1.jar

json-lib-2.1.jar

 

然后启动tomcat

现在看到,没有了

unable to locate configuration files of the name struts-plugin.xml

的信息。

 

由此可见。

信息unable to locate configuration files of the name struts-plugin.xml是struts2插件机制引起的,如果在struts2应用中没有添加任何插件的话,那么会出现该信息的提示,(其实这条提示后面有一个词:skip,直接跳过了)。反之,添加了struts2的任何一款插件,则不会有这个提示。

 

个人理解,欢迎拍砖。

分享到:
评论

相关推荐

    perl-Data-Dumper-2.145-3.el7.x86_64.rpm

    RHEL 7.1安装MySQL 5.6的依赖包:perl-Data-Dumper-2.145-3.el7.x86_64.rpm ------------------------------------------------------------------------------------

    copy-webpack-plugin-demo.rar

    copy-webpack-plugin-demo.rar 拷贝文件demo, 现成案例,可以参考使用 免积分下载地址 https://download.lllomh.com/cliect/#/product/JB23148366892270

    ubuntu-22.04-preinstalled-server-arm64+raspi.img.xz

    ubuntu-22.04-preinstalled-server-arm64+raspi.img.xz http://cdimages.ubuntu.com/ubuntu/releases/22.04/release/

    X64 和 X86 Debuggers And Tools-x86_en-us.msi

    X64调试器则专门针对这种架构设计,能够有效跟踪64位程序的运行状态,识别并解决64位特定的问题,如数据类型大小的变化、指针运算等。 而X86架构,作为传统的32位系统,尽管在处理能力上稍逊于X64,但仍然广泛存在...

    kotlin-compiler-embeddable-1.3.61.jar

    官网版:kotlin-compiler-embeddable-1.3.61

    kotlin-compiler-1.5.32.zip

    4. **Coroutines支持**:Kotlin的协程机制为处理异步编程提供了优雅的解决方案。1.5.32版本对协程的支持更加完善,优化了调度器和挂起函数的性能,使得异步编程更加高效。 5. **新特性引入**:此版本可能引入了新的...

    instantclient-basic-macos.x64-11.2.0.4.0

    sqlalchemy.exc.DatabaseError: (cx_Oracle.DatabaseError) DPI-1047: Cannot locate a 64-bit Oracle Client library: "dlopen(libclntsh.dylib, 1): image not found". See ...

    hadoop2.6-common-bin.zip

    这个压缩包主要针对Windows用户,旨在解决在该操作系统上运行Hadoop时可能遇到的"Could not locate executable"错误。这个错误通常由于Hadoop在Windows环境下缺少必要的依赖或配置不正确导致。 描述中提到的“解决...

    Everything-1.3.4.686.快速搜索NTFS文件

    Locate files and folders by name instantly. Small installation file Clean and simple user interface Quick file indexing Quick searching Minimal resource usage Share files with others easily Real-...

    hadoop-common-2.6.0-bin-master.zip

    解决windows链接hbase报错问题,Could not locate executable null\bin\winutils.exe in the Hadoop binaries. 在config配置类中添加private static Properties propertie; propertie.setProperty()解决

    关于Matlab处理avi视频视频转换软件-XviD-1.2.2-07062009.rar

    Unable to locate decompressor to decompress video stream 此时即可利用此软件进行转换,转为'Cinepak'压缩格式的avi视频…… 转化完成后,利用aviinfo即可看到转化后avi视频的压缩格式…… 然后就可以...

    Spark/Hadoop开发缺失插件-winutils.exe

    本地开发Spark/Hadoop报错“ERROR Shell: Failed to locate the winutils binary in the hadoop binary path java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.” ...

    Everything-1.4.1.969.x64-Setup.rar

    Everything是voidtools开发的一款文件搜索工具,官网描述为“基于名称实时定位文件和目录(Locate files and folders by name instantly)”。 它体积小巧,界面简洁易用,快速建立索引,快速搜索,同时占用极低的...

    libzip-1.7.3.tar.gz

    libzip的API丰富多样,包括了如`zip_stat`用于获取存档信息,`zip_name_locate`用于查找存档中的文件,`zip_delete`用于删除存档中的文件等。这些API为开发者提供了灵活且高效的接口,便于构建复杂的功能。 总结,...

    DBD-mysql-3.0008

    or perhaps the capitalisation of 'mysql' isn't right. Available drivers: DBM, ExampleP, File, Proxy, Sponge. 解决 下载:http://search.cpan.org/~capttofu/DBD-mysql-3.0008/ tar zxvf DBD-mysql-3.0008....

    linux编译android内核源码问题

    ### Linux下编译Android内核源码遇到的问题及解决方案 #### 概述 在尝试编译Android内核源码的过程中,经常会遇到各种错误提示。本文将针对这些常见的编译错误进行详细解析,并提供相应的解决办法。这对于那些正在...

    PyPI 官网下载 | locate_me-0.0.4a-py2-none-any.whl

    标题中的"PyPI 官网下载 | locate_me-0.0.4a-py2-none-any.whl"指的是一个在Python Package Index (PyPI)官方仓库中发布的软件包。PyPI是Python社区用来分发开源软件的主要平台。`locate_me`是这个软件包的名字,而`...

    springAOP demo 带错误解决文档

    在搭建spring项目时通常需要这些jar包 ...org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace ...

    maven项目使用assembly打包jar时处理Unable to locate Spring NamespaceHandler问题

    使用assembly插件打包jar后启动时,总是出现Unable to locate Spring NamespaceHandler for XML schema....错误,网上找了各种方法都没有用,在尝试了100+失败后,解决了这个问题,在打包的jar中,META-INF目录下,...

Global site tag (gtag.js) - Google Analytics