java.lang.NoClassDefFoundError: javax/security/jacc/PolicyContext

Stack Overflow | user555303 | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    javax/security/jacc/PolicyContext

    at oracle.security.jps.runtime.AppSecurityContext$2.run()
  2. oracle.security.jps
    AppSecurityContext$2.run
    1. oracle.security.jps.runtime.AppSecurityContext$2.run(AppSecurityContext.java:223)
    2. oracle.security.jps.runtime.AppSecurityContext$2.run(AppSecurityContext.java:221)
    2 frames
  3. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  4. oracle.security.jps
    SubjectObjMapper$2.run
    1. oracle.security.jps.runtime.AppSecurityContext.getApplicationID(AppSecurityContext.java:221)
    2. oracle.security.jps.internal.api.runtime.AppSecurityContext.getApplicationID(AppSecurityContext.java:66)
    3. oracle.security.jps.openaz.pep.SubjectObjMapper$2.run(SubjectObjMapper.java:234)
    4. oracle.security.jps.openaz.pep.SubjectObjMapper$2.run(SubjectObjMapper.java:231)
    4 frames
  5. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  6. oracle.security.jps
    PepRequestFactoryImpl.newPepRequest
    1. oracle.security.jps.openaz.pep.SubjectObjMapper.mapStringSubject(SubjectObjMapper.java:231)
    2. oracle.security.jps.openaz.pep.SubjectObjMapper.mapToJpsObject(SubjectObjMapper.java:173)
    3. oracle.security.jps.openaz.pep.PepRequestImpl.setAccessSubject(PepRequestImpl.java:429)
    4. oracle.security.jps.openaz.pep.PepRequestFactoryImpl.newPepRequest(PepRequestFactoryImpl.java:202)
    4 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames