更新到Jetty 9.2.2.v20140723后,`WEB-INF/lib`文件夹中的库中包含的标记停止工作
我将Jetty(和Jetty Maven插件)从更新到Jetty 9.2.2.v20140723后,`WEB-INF/lib`文件夹中的库中包含的标记停止工作,jetty,jsp-tags,maven-jetty-plugin,Jetty,Jsp Tags,Maven Jetty Plugin,我将Jetty(和Jetty Maven插件)从9.2.1.v20140609更新为9.2.2.v20140723,现在,当我尝试访问应用程序的任何网页时,会引发此异常: org.apache.jasper.JasperException: /WEB-INF/(...).jsp (line: 2, column: 0) The absolute uri: http://www.springframework.org/security/tags cannot be resolved in eith
9.2.1.v20140609
更新为9.2.2.v20140723
,现在,当我尝试访问应用程序的任何网页时,会引发此异常:
org.apache.jasper.JasperException: /WEB-INF/(...).jsp (line: 2, column: 0)
The absolute uri: http://www.springframework.org/security/tags cannot be resolved
in either web.xml or the jar files deployed with this application
目前我使用
除此之外,所有JSP文件和Spring安全标记都包含在WAR文件中:
当我从JAR中提取*.tld
文件时,将其放入WEB-INF
,并使用
http://www.springframework.org/security/tags
security.tld
在web.xml
中,它再次开始工作。但我必须对所有库中的所有标记执行此操作
Jetty似乎不知何故停止了对*.tld
文件的WEB-INF/lib
扫描。我该怎么解决这个问题呢?好的,我想出来了
在pom.xml
中,我
org.eclipse.jetty
jetty maven插件
${jetty.version}
${basedir}/path/to/jetty context.xml-->
在jetty context.xml
中
8000
org.eclipse.jetty.server.webapp.webinIncludeJarPattern
.*/*jsp api-[^/]\.jar$|./.*jsp-[^/]\.jar$|./.*taglibs[^/]*\.jar$
我从POM和jetty context.xml中删除了
,一切都恢复正常