3

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

dominicp
  • 216
  • 1
  • 14

1 Answers1

4

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

unwichtich
  • 13,712
  • 4
  • 53
  • 66
  • Thank you. Do you know on which other jars security-ee.jar depends? I added security.jar and glassfish-api.jar, but there is still an exception during deployment (i.e. Annotation `RestEndpoints` is not a qualifier) – dominicp Jul 10 '13 at 16:02
  • I'm not sure but the RestEndpoints class is in glassfish-api.jar. – unwichtich Jul 10 '13 at 16:10
  • I added glassfish-api.jar, but still the same exception. Thanks anyway – dominicp Jul 10 '13 at 17:03