2

I trying to create a servlet to logout from multiple JSF applications running on Oracle Glassfish. I tried the following code,

weblogic.servlet.security.ServletAuthentication.logout(request);
weblogic.servlet.security.ServletAuthentication.invalidateAll(request);
weblogic.servlet.security.ServletAuthentication.killCookie(request);

but I am not able to find the JAR file containing the required class in order to get the code to compile. I downloaded Oracle WebLogic and tried various of its JARs, but no one of them made the code to compile.

Which JAR does contain the required class and where can I find it?

4

3 回答 3

2

您要查找的类在一个名为wls-api.jar.

但是,您可能正在寻找错误的东西,因为如果您正在开发在 Glassfish 上运行的应用程序,您应该坚持使用标准技术(例如,此处此处描述的 JSR-196 )。

因为您尝试实现的内容并不明显,所以我无法提供任何更详细的建议,但有大量 关于 Java EE 安全性的 文档可用。

于 2013-04-03T13:51:41.910 回答
0

我想你需要这个 jar 文件:

<JDeveloper Home>\Middleware\wlserver_10.3\server\lib\weblogic.jar

于 2013-04-05T03:23:03.510 回答
0

该文件位于<WLS_HOME>\middleware\wlserver\server\lib\wls-api.jar

于 2017-11-28T20:15:46.773 回答