Using Servlet 3.0 with Weblogic 10.3

ⅰ亾dé卋堺 提交于 2019-12-19 08:58:52

问题


I am working on a form-based authentication and using following statements. I have realized on the way of implementation that HttpServletRequest->login method comes with servlet 3.0.(with help of stackoverflow users)

HttpServletRequest request = getHttpServletRequest();
request.login() 

So I am using weblogic as an AppServer, I have prepared a war file without any compilation error and it works at glassfish 3.1 appserver. But since weblogic 10.3 has implicit support 2.5 it overwrites Servlet 3.0.1.jar so having following error.

java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.login(Ljava/lang/String;Ljava/lang/String;)V

How I can run my war file with servlet 3.0 api on weblogic 10.3 , in other words how I can stop weblogic overwriting servlet 3.0 api?


回答1:


Weblogic 10.3.x is a Servlet 2.5 container.You have to use Weblogic 12c and above . It provides support for Servlet 3.0 .



来源:https://stackoverflow.com/questions/17230082/using-servlet-3-0-with-weblogic-10-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!