OES11gr2 - oesPassword.sh throws Exception in thread "main" java.lang.NoClassDefFoundError: javax/security/jacc/PolicyContext (Doc ID 1615539.1)

Last updated on MAY 31, 2017

Applies to:

Oracle Entitlements Server - Version 11.1.2.1.0 and later
Information in this document applies to any platform.

Symptoms

Not able to set password sussessfully, by running oesPassword script from <OES11GR2_CLIENT>/oes_sm_instances/<SM_INSTANCE_NAME>/bin/oesPassword.sh

[webservd@wssmtest01 bin]$ ./oesPassword.sh -setpass
Enter credential map name: fakemap
Enter credential key name: fakekey
Enter username for map:fakemap key:fakekey: cn=user,ou=user,c=us
Enter password for map:fakemap key:fakekey:
Enter password for map:fakemap key:fakekey again:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/security/jacc/PolicyContext
        at oracle.security.jps.runtime.AppSecurityContext$2.run(AppSecurityContext.java:134)
        at oracle.security.jps.runtime.AppSecurityContext$2.run(AppSecurityContext.java:132)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.runtime.AppSecurityContext.getApplicationID(AppSecurityContext.java:132)
        at oracle.security.jps.util.JpsUtil.getApplicationContextID(JpsUtil.java:269)
        at oracle.security.jps.util.JpsAuth$Diagnostic.checkPermission(JpsAuth.java:339)
        at oracle.security.jps.util.JpsAuth$AuthorizationMechanism$5.checkPermission(JpsAuth.java:476)
        at oracle.security.jps.util.JpsAuth.checkPermission(JpsAuth.java:518)
        at oracle.security.jps.util.JpsSubject.getSubject(JpsSubject.java:88)
        at oracle.security.jps.internal.core.util.JpsConfigUtil.getInitiator(JpsConfigUtil.java:1336)
        at oracle.security.jps.internal.credstore.util.CsfUtil.logAuditEvent(CsfUtil.java:780)
        at oracle.security.jps.internal.credstore.ssp.SspCredentialStore.getCredential(SspCredentialStore.java:454)
        at oracle.security.jps.az.internal.runtime.encryption.AESCipherImpl$1.run(AESCipherImpl.java:279)
        at oracle.security.jps.az.internal.runtime.encryption.AESCipherImpl$1.run(AESCipherImpl.java:276)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.jps.az.internal.runtime.encryption.AESCipherImpl.getKeyFromCredentialStore(AESCipherImpl.java:276)
        at oracle.security.jps.az.internal.runtime.encryption.AESCipherImpl.getKeyFromCredentialStore(AESCipherImpl.java:321)
        at oracle.security.jps.az.internal.runtime.encryption.AESCipherImpl.retrieveRawKey(AESCipherImpl.java:295)
        at oracle.security.jps.az.internal.runtime.encryption.AESCipherImpl.getKey(AESCipherImpl.java:493)
        at oracle.security.jps.az.internal.runtime.encryption.AESCipherImpl.<init>(AESCipherImpl.java:190)
        at oracle.security.jps.az.internal.runtime.encryption.CipherServiceFactory.getService(CipherServiceFactory.java:82)
        at oracle.security.jps.az.internal.runtime.pd.receiver.UpdatePolicySet.initCipherService(UpdatePolicySet.java:227)
        at oracle.security.jps.az.internal.runtime.pd.receiver.UpdatePolicySet.<init>(UpdatePolicySet.java:159)
        at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.initializeControlledPD(PDPServiceImpl.java:380)
        at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.initial(PDPServiceImpl.java:464)
        at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.<init>(PDPServiceImpl.java:352)
        at oracle.security.jps.az.internal.runtime.provider.PDPServiceProvider.getInstance(PDPServiceProvider.java:89)
        at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServiceInstance(ContextFactoryImpl.java:139)
        at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:170)
        at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:191)
        at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:132)
        at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:127)
        at oracle.security.jps.internal.core.runtime.JpsServiceLocatorImpl.lookup(JpsServiceLocatorImpl.java:55)
        at oracle.security.jps.util.AuthZAuditUtil.initAuditor(AuthZAuditUtil.java:190)
        at oracle.security.jps.util.AuthZAuditUtil.isEventLoggable(AuthZAuditUtil.java:144)
        at oracle.security.jps.util.AuthZAuditUtil.auditAuthZ(AuthZAuditUtil.java:466)
        at oracle.security.jps.util.JpsAuth.checkPermission(JpsAuth.java:554)
        at oracle.security.jps.internal.credstore.util.CsfUtil.checkPermission(CsfUtil.java:643)
        at oracle.security.jps.internal.credstore.ssp.SspCredentialStore.resetCredential(SspCredentialStore.java:620)
        at oracle.security.oes.enroll.RuntimeUtil$2.run(RuntimeUtil.java:176)
        at java.security.AccessController.doPrivileged(Native Method)
        at oracle.security.oes.enroll.RuntimeUtil.setKeystorePassword(RuntimeUtil.java:171)
        at oracle.security.oes.enroll.RuntimeUtil.setBootStrapCredentials(RuntimeUtil.java:201)
        at oracle.security.oes.tool.oespassword.OesPasswordProd.setBootStrapCredentials(OesPasswordProd.java:139)
        at oracle.security.oes.tool.oespassword.OesPasswordProd.doMain(OesPasswordProd.java:109)
        at oracle.security.oes.tool.oespassword.OesPasswordProd.main(OesPasswordProd.java:62)


 key and map are not saved into the bootstrap store, after run osePassword.sh -setpass command



Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms