glassfish 4程序化登录 [英] glassfish 4 programmatic login

查看:121
本文介绍了glassfish 4程序化登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在glassfish 3.1.2中,ProgrammaticLogin类位于 glassfish / modules / security.jar 中。但在glassfish 4.0中,似乎它不再存在。有人知道ProgrammaticLogin类发生了什么吗?



当我使用来自3.1.2的ProgrammaticLogin类和glassfish 4时,我得到了一个 NoSuchMethodError for SecurityServicesUtil.getHabitat()

解决方案

该课程已被移动,可以在

  $ GLASSFISH_HOME \glassfish\\\modules\security-ee.jar $中找到b $ b  

它在包 com.sun.enterprise.security.ee.auth中。登录


In glassfish 3.1.2 the ProgrammaticLogin class was in glassfish/modules/security.jar. But in glassfish 4.0 it seems that it doesn't exist anymore. Does anybody know what happened to the ProgrammaticLogin class?

When I use the ProgrammaticLogin class from 3.1.2 with glassfish 4, I get a NoSuchMethodError for SecurityServicesUtil.getHabitat().

解决方案

The class was moved and can be found in

$GLASSFISH_HOME\glassfish\modules\security-ee.jar

It is in package com.sun.enterprise.security.ee.auth.login

这篇关于glassfish 4程序化登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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