-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError: when using JDBC Security Realm for authentication #1675
Comments
It seems to be due to the fact that Adding the following dependency:
and using |
@Scoty where are you using For most cases in a web environment it has been replaced by the Java EE spec compliant |
It is inside of a login action from a legacy Struts(1.x) application:
May be someday this code will get rewritten, but until then that is the implementation and my above post is the workaround ... Still it is not a bug with Payara, just a problem that occurs when migrating from old GlassFish JavaEE implementation to the new (GF4+ or Payara). |
Okay, thanks for mentioning the workaround ;) Indeed, this extended version where the realm name is mentioned isn't supported by the Java EE spec version (since realms, aka identity stores were never standardised). |
Closing this issue since the main problem is not a bug on Payara Server and the user is aware of the risks of using internal API classes instead of the standard mechanisms. |
Description
java.lang.NoClassDefFoundError: com/sun/appserv/security/ProgrammaticLogin
when using JDBC security realm for a webapp authentication.Using the same security realm's configuration works in GlassFish 3.1.2.2. (The same machine, the same MySQL server and DB and I have copied the security realm configuration lines from the GlassFish 3.1.2.2's domain.xml to the Payara's domain.xm)
Expected Outcome
Being able to use the configured JDBC security realm for a webapp security management.
Current Outcome
Steps to reproduce (Only for bug reports)
com.sun.appserv.security.ProgrammaticLogin programmaticLogin = new ProgrammaticLogin();
Samples
Part of the maven-glassfish-plugin configuration used for creating the realm:
Context (Optional)
Use
com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm
for authentication.Environment
The text was updated successfully, but these errors were encountered: