Which JAR contains the weblogic.servlet.security.ServletAuthentication class?

女生的网名这么多〃 提交于 2019-12-10 11:25:39

问题


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?


回答1:


The class you are looking for is in a jar named 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 here or here).

Because it isn't obvious what you are trying to implement I can't give any further detailed advice but there is plenty of documentation available about Java EE Security.




回答2:


I think u need this jar file:

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




回答3:


The file is located at <WLS_HOME>\middleware\wlserver\server\lib\wls-api.jar



来源:https://stackoverflow.com/questions/15788311/which-jar-contains-the-weblogic-servlet-security-servletauthentication-class

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