[quote]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[/quote]
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/*"
[img]/upload/attachment/46748/243cbe80-d214-31b5-932e-f62ab87b6733.jpg[/img]
SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> /beer/*.jsp in security constraint[/quote]
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/*"
[img]/upload/attachment/46748/243cbe80-d214-31b5-932e-f62ab87b6733.jpg[/img]
本文解决了一个关于web.xml中配置的安全约束URL模式问题。错误模式为/beer/*.jsp,正确的模式应为/beer/*,以确保对/beer路径下所有文件进行保护。
6380

被折叠的 条评论
为什么被折叠?



