`
radzhang
  • 浏览: 310887 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

At least one JAR was scanned for TLDs解决办法

    博客分类:
  • JSP
 
阅读更多

近日在进行web项目开发过程中,遇到一个很奇怪的情况:项目在我自己的电脑上面运行正常,而且能够输出正常结果,但是将项目部署到服务器时,访问就提示出错。

 

web项目采用hibernate+struts+JSP进行开发,在本地以及服务器上面均使用的是tomcat7.0。

 

通过浏览器访问服务器上面的项目时提示:“org.apache.jasper.JasperException: An exception occurred processing JSP page /decorators/searchDnaResultList.jsp at line 394”,提示出错代码如下:

 

 

 

392: <span style="white-space: pre-wrap;"><div style="float: left;"></span> 393: 	<span style="white-space: pre-wrap;"><span class="style1" ></span> 394: 	     <span style="white-space: pre-wrap;"><span style="color:#ff0000;"><c:if test="${sdr.hspScore!=0}"></span></span> 395: 	<span style="white-space:pre">	</span>  <span style="white-space: pre-wrap;">${sdr.hspScore}</span><span style="white-space:pre"> </span>396: 	     </c:if><span>	</span> 397: 	<span style="white-space: pre-wrap;"></span></span><span style="white-space: pre-wrap;">	</span><span style="white-space: pre-wrap;">  </span> 398: </div>     

但是通过分析相关代码,发现这部分代码并没有错误,而且在本地能够正常运行也验证了代码的正确性。

既然代码没错,那么可能就是服务器上面配置可能出现问题,首先想到的就是tomcat出现问题,然后通过查看tomcat的日志发现了如下的提示语句:

 


Dec 29, 2014 7:09:26 PM org.apache.jasper.compiler.TldLocationsCache tldScanJar
338 INFO: 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.

提示表明tomcat编译出错了At least one JAR was scanned for TLDs yet contained no TLDs,原来是tomcat 7对EL表达式的语法要求比较严格,例如"${owner.new}"因包含关键字new就会导致解析出错。 
根据网友的提示,主要用以下三种解决方案可供参考:
第一种:严格遵守java规范,修改对象的属性名称,要求不包含java关键字; 
第二种:修改EL表达式,例如"${owner.new}"可以修改为"${owner['new']}"; 
第三种:修改tomcat属性,忽略对EL表达式的关键字检查。修改$CATALINA_BASE/conf/catalina.properties文件,添加org.apache.el.parser.SKIP_IDENTIFIER_CHECK=true选项。

分享到:
评论

相关推荐

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

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

    Electronically_Scanned_Arrays

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

    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 文件。 接着在左侧设置扫描件效果,比如颜色、边框、旋转角度、模糊、噪点等。可以在线预览转换后的效果,...

    Scanned Documents.pdf

    Scanned Documents.pdf

    QRCode+core-Jar

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

    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 ...

    volume-scanned.ppt

    volume-scanned.ppt

    查壳脱壳工具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 ...

    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 ...

    Electronically Scanned Arrays_MATLAB Modeling and Simulation_2012.rar

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

    yolov8系列--Object Detection Model for Scanned Documents.zip

    总的来说,YOLOv8系列在扫描文档物体检测中的应用展示了深度学习在解决特定任务上的强大潜力。通过对模型的持续优化和针对性调整,我们可以期待YOLOv8在处理扫描文档时带来更加准确、高效的结果,进一步推动自动化...

    zxing jar包

    System.out.println("Scanned Data: " + result.getText()); } catch (IOException | ReaderException e) { e.printStackTrace(); } } } ``` 以上代码展示了如何使用ZXing在Java桌面应用中读取一个已存在的...

    Scanned_from_a_Lexmark_Multifunction_Product08-20-2021-004543.pdf

    1.个人打印机:为家庭或小型办公提供打印解决方案。 2.办公打印机:为中大型企业提供高效、稳定的打印服务。 3.多功能一体机:集打印、扫描、复印、传真等多功能于一体,满足各种办公需求。 4.打印相关耗材:提供...

    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.

    微软内部资料-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 ...

    A SYNTHESIS OF RECENT ADVANCES IN THE METHOD OF LEAST SQUARES

    scanned the old master copies and produced electronic versions in Portable Document Format. The quality of the images varies depending on the quality of the originals. The images have not been ...

Global site tag (gtag.js) - Google Analytics