java 哪个 JAR 包含 weblogic.servlet.security.ServletAuthentication 类?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15788311/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Which JAR contains the weblogic.servlet.security.ServletAuthentication class?
提问by user2240516
I trying to create a servlet to logout from multiple JSF applications running on Oracle Glassfish. I tried the following code,
我尝试创建一个 servlet 以从在 Oracle Glassfish 上运行的多个 JSF 应用程序注销。我尝试了以下代码,
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.
但我无法找到包含所需类的 JAR 文件来编译代码。我下载了 Oracle WebLogic 并尝试了它的各种 JAR,但没有一个可以编译代码。
Which JAR does contain the required class and where can I find it?
哪个 JAR 包含所需的类,我在哪里可以找到它?
回答by unwichtich
The class you are looking for is in a jar named wls-api.jar
.
您要查找的类位于名为 的 jar 中wls-api.jar
。
However, you're probably searching for the wrong thing because if you are developing applications to run on Glassfish you should stick with the standard techniques (e.g. JSR-196 described hereor here).
但是,您可能正在寻找错误的东西,因为如果您正在开发在 Glassfish 上运行的应用程序,您应该坚持使用标准技术(例如这里或这里描述的 JSR-196 )。
Because it isn't obvious what you are trying to implement I can't give any further detailed advice but there is plentyofdocumentationavailable about Java EE Security.
回答by Ivan
I think u need this jar file:
我想你需要这个 jar 文件:
<JDeveloper Home>\Middleware\wlserver_10.3\server\lib\weblogic.jar
<JDeveloper Home>\Middleware\wlserver_10.3\server\lib\weblogic.jar
回答by michael_demonio
The file is located at <WLS_HOME>\middleware\wlserver\server\lib\wls-api.jar
该文件位于 <WLS_HOME>\middleware\wlserver\server\lib\wls-api.jar