web.xml validation in Weblogic throws error because of cookie-config

后端 未结 1 1949
半阙折子戏
半阙折子戏 2020-12-19 05:00

I have the follwing web.xml for an application.




        
相关标签:
1条回答
  • 2020-12-19 05:16

    The <cookie-config> is introduced in Servlet 3.0 and not supported in older versions such as 2.5. Your web.xml is declared conform Servlet 2.5.

    You've 2 options:

    1. Redeclare web.xml conform Servlet 3.0 (which implicitly also requires a Servlet 3.0 compatible target container such as Tomcat 7, Glassfish 3, WebLogic 12, etc).

    2. If you can't upgrade, then forget it and solve it using a custom servlet filter or container-specific configuration (e.g. a Valve in Tomcat/JBoss; can't answer off top of head for WebLogic as I've never really used it, consider asking a new question for that part).

    0 讨论(0)
提交回复
热议问题