wildfly服务器无法使用JSTL?

我写的JSP中引用了JSTL taglib

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

打包成WAR后在本地wildfly11环境运行没有问题。但部署到wildfly11服务器上就报错。

UT005023: Exception handling request to /JSTl01/01.jsp: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.taglibs.standard.util.XmlUtil
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:356)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
    at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
    at io.undertow.jsp.JspFileHandler.handleRequest(JspFileHandler.java:32)
    at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
    at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
    at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
    ...
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.taglibs.standard.util.XmlUtil
    at org.apache.taglibs.standard.tlv.JstlBaseTLV.validate(JstlBaseTLV.java:154)
    at org.apache.taglibs.standard.tlv.JstlCoreTLV.validate(JstlCoreTLV.java:97)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.validate(TagLibraryInfoImpl.java:565)
    at org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1856)
    at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.ja
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:347)
    ... 40 more

我检查了服务器,modules目录下有JSTL的jar包。打包也没有另配置jboss.xml,那要怎么解决呢?谢谢。

https://blog.csdn.net/htofly/article/details/7607389