Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

glassfish 4 programmatic login

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

like image 820
dominicp Avatar asked Jan 21 '26 13:01

dominicp


1 Answers

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

like image 114
unwichtich Avatar answered Jan 24 '26 19:01

unwichtich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!