解決報錯問題:At least one JAR was scanned for TLDs yet contained no TLDs.

問題描述:後臺報錯node

信息: 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.web

出現這樣的log說明,這條log所指的 jar 作了TLDs的掃描,而且沒有在其中找到 TLDs,而且建議打開debug級別的log,查看相關的 jar 文件,在 Tomcat 配置文件中忽略對這樣的 jar 的TLDs掃描。spring

頁面報錯:getElementById() 被傳遞了空字符串參數。apache

Object { name: "管理員", password: "123456" },可是輸出是有參數的。

遇到這個問題,查了百度大多數都是說修改Tomcat的文件或者說有<!-- -->之類的,可是本身去試了一下,都沒有用。只是本身的狀況可是不知道大家的狀況是不是這樣。安全

還好如今解決了,也算是給本身一個回憶記得之後別二了。app

不過也還好是同事的提醒了一下說是否是你設置攔截了,而後就去看了一下配置信息。框架

由於用的是shiro作登陸驗證的,因此就把web.xml配置shiro的安全框架給註解掉了:flex

 

運行項目而後這時報了一個另外的錯誤:org.apache.shiro.UnavailableSecurityManagerException: No SecurityManager accessible to the calling code, either bound to the org.apache.shiro.util.ThreadContext or as a vm static singleton.  This is an invalid application configuration.this

org.apache.shiro.UnavailableSecurityManagerException:NoSecurityManager可被調用代碼訪問,要麼綁定到org.apache.shiro.util.ThreadContext,要麼綁定爲VM靜態單例,這是一個無效的應用程序配置。spa

這個時候看了一下spring-shiro.xml的配置文件,才發現:

 

登陸頁面的請求路徑沒有添加進去,添加紅線上的路徑後就ok了。但願也能幫到大家!

相關文章
相關標籤/搜索