`

tomcat7,jsp页面报错:At least one JAR was scanned for TLDs yet contained no TLDs

阅读更多

最近项目从tomcat6升级到tomcat7.0.42后,有个jsp页面带有struts1标签总是报错。

提示信息如下: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.

按照网络上的办法:

①去掉<!-- -->注释后页面还是报错;

②在catalina.properties中添加org.apache.el.parser.SKIP_IDENTIFIER_CHECK=true,也还是报错!

肿么办?

后来是在不行,把页面一部分一部分截取,然后定位错误代码,终于找到了:

在tomcat6中,<bean:write name="deviceEventForm" name="msg"/> 这样可以取到值;

但是在tomcat7中,<bean:write name="deviceEventForm" name="msg"/>这样是错的,必须改成<bean:write name="deviceEventForm" property="msg"/>;

网上很多童鞋说tomcat7对标签的使用检查更加严格,且先不论其准确性,但是以后写代码一定要规范!

分享到:
评论

相关推荐

    UEditor JSP 版本配置以及文件上传配置方法

    例如,可能会出现 "At least one JAR was scanned for TLDs" 的错误信息。这是因为页面中含有注释 `&lt;!-- --&gt;` 导致的,可以将其删除以解决问题。 配置 UEditor JSP 版本并实现文件上传功能需要按照以上步骤进行,...

    Scanned 18 Sep 2024 at 3:15:50 AM.pdf

    Scanned 18 Sep 2024 at 3:15:50 AM.pdf

    Electronically Scanned Arrays.pdf

    利用电磁波的相干原理,通过计算机控制输往天线各阵元电流相位的变化来改变波束的方向,同样可进行扫描,称为电扫描。天线阵,根据扫描情况可分为相扫、频扫、相/相扫、相/频扫、机/相扫、机/频扫、有限扫等多种体制...

    扫描 - Look Scanned(离线打开版)

    Look Scanned 是一个开源的将 PDF 文件转换成像扫描件一样的免费网站。 点击网站开始扫描按钮,上传 PDF 文件。 接着在左侧设置扫描件效果,比如颜色、边框、旋转角度、模糊、噪点等。可以在线预览转换后的效果,...

    Electronically_Scanned_Arrays

    ### 相控阵天线(Electronically Scanned Arrays)详解 #### 一、引言与历史背景 相控阵天线(Electronically Scanned Arrays,ESA),是一种能够通过电子方式实现波束扫描和定位的天线系统,无需机械转动即可完成...

    zxing jar包

    1. **下载jar包**:你可以从ZXing的官方网站或者第三方仓库下载ZXing的最新jar包,例如`zxing-3.x.x.jar`。 2. **添加依赖**:将下载的jar包添加到你的项目类路径中。对于Java项目,可以将其放入`lib`目录,并在...

    微软内部资料-SQL性能优化3

    Byte 4-7: ObjectID – 0x 75D7831F (1977058079) Byte 8-9: IndexID – 0x0001 Byte 10-16: Hash Key value – 0x 02014F0BEC4E For more information about how to decode this value, see also… Inside ...

    条码枪控件实例jsp例子

    在这个"条码枪控件实例jsp例子"中,我们将深入探讨如何在JavaServer Pages (JSP) 环境下集成并使用这种控件,以及金格空间提供的三方控件iWebBarCode。 金格空间是一家提供多种Web组件的供应商,其iWebBarCode控件...

    QRCode+core-Jar

    QRCode+core-Jar是与二维码相关的Java库,主要用于生成和读取二维码(QR Code)。在Java编程中,处理二维码的库通常是开发者用于快速实现二维码功能的工具,比如在移动应用、网页或系统集成中。QRCode+core-Jar很...

    微软内部资料-SQL性能优化5

    Because a clustered index determines the sequence in which rows are stored in a table, there can only be one clustered index for a table at a time. Performance Considerations Keeping your clustered ...

    高中英语单词天天记scan素材

    - 例如:“Astronomers scanned the sky for a sight of the comet.”(天文学家们仔细观察天空,试图看到彗星。) - 句型结构:“S + scanned + sth + for + sth” **例句分析** - **不及物动词**: - “That ...

    Scanned Documents.pdf

    Scanned Documents.pdf

    Electronically Scanned Arrays_MATLAB Modeling and Simulation_2012.rar

    1. **电子扫描阵列(Electronically Scanned Arrays, ESA)**: - ESA是一种现代雷达系统,其天线单元能够通过电子方式改变发射或接收信号的方向,而无需机械移动。 - 主要类型包括相控阵和电扫阵列,其中相控阵...

    volume-scanned.ppt

    volume-scanned.ppt

    Knot DNS v1.3.1.zip

    3. Support for multipacket TSIG signatures for transfers was added, and incorrectly parsed TSIG key secrets without quotes were fixed.  4. autoconf checks for extended instruction sets were removed ...

    PEiD 0.94查壳工具.rar

    When true, the signature is scanned for at the EntryPoint only. ;Else it is scanned throughout the file. ;A '*' in the results of PEiD signifies that the external database was used for scanning the ...

    Tftpd64-4.51-setup.exe

    tftp 4.5.1版本,平台:windows 很小的TFTP工具,供大家下载! The download is provided ... The download was scanned for viruses by our system. We also recommend you to check the files before installation.

    查壳脱壳工具ACKiller 0[1][1].31 pre-release

    When true, the signature is scanned for at the EntryPoint only. ;Else it is scanned throughout the file. ;A '*' in the results of PEiD signifies that the external database was used for scanning the ...

Global site tag (gtag.js) - Google Analytics