使用的Servlet 3.0使用Weblogic 10.3 [英] Using Servlet 3.0 with Weblogic 10.3

查看:3585
本文介绍了使用的Servlet 3.0使用Weblogic 10.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个基于表单的认证,并使用下面的语句。我已经意识到实施的方式,HttpServletRequest->登录方法自带的servlet 3.0。(用计算器用户的帮助下)

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() 

所以我使用WebLogic作为应用服务器,我有prepared战争的文件,而无需任何编译错误,它工作在GlassFish的应用服务器3.1。但由于weblogic的10.3有隐性支持2.5它覆盖的Servlet 3.0.1.jar所以有以下错误。

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

我如何在WebLogic 10.3上运行使用Servlet 3.0 API我war文件,换句话说,我怎么能停止WebLogic覆盖的servlet 3.0 API?

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?

推荐答案

的Weblogic 10.3.x中的Servlet 2.5 container.You必须使用<一个href=\"http://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html\">Weblogic 12C 以上。它提供支持对于的Servlet 3.0

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 .

这篇关于使用的Servlet 3.0使用Weblogic 10.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆