在tomcat7下报错,jetty中运行正常
主要是jar问题
在项目的pom.xml中的jetty-jsp包的声明修改了一下,删除jetty两个jar包依赖即可。如下:
<!-- jetty -->
<dependency>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-webapp</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jsp</artifactId>
<version>${jetty.version}</version>
<scope>test</scope>
</dependency>
可能jetty的taglibs包中加载过程中TLV类的初始化参数与tomcat的taglibs加载过程不一致,导致在tomcat下执行validate方法的时候报空指针。
XML代码中请把-去掉即可,因为不加-的话github回帖就不显示标签,我不知道如何解决