`
iversion
  • 浏览: 32930 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Invalid url pattern for filter in web.xml

    博客分类:
  • tech
阅读更多
引用
Nov 23, 2004 11:34:33 AM org.apache.catalina.startup.ContextConfig applicationConfig
SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> /beer/*.jsp in security constraint


The exact problem with this pattern: "/beer/*.jsp "

Is that it starts with a '/', indicating a path mapping, and ends with and extension mapping.

URL-patterns must be one of the following:

- start with a '/' and end with a '/*', use this one for path patterns
- start with a '*.' and end with a character, use this for extension mapping
- some sequence of characters starting with '/' and not ending in '*', use this for exact matches.

If you want to secure the /beer pages, then the pattern should be "/beer/*"




  • 大小: 104.7 KB
分享到:
评论
1 楼 qq123zhz 2011-12-08  
你这个问题怎么解决的,我也有类似的需求就是限制某个文件夹下的jsp文件

相关推荐

Global site tag (gtag.js) - Google Analytics