Wednesday, May 19, 2010

Issues while creating weblogic Custom Security Provider

One of the most important and common errors that generally comes while creating the Custom Security Providers is :

om.bea.common.engine.SecurityServiceRuntimeException: [Security:097533]SecurityProvider service class name for XXXXXX is not specified.

The above error comes due to incorrect usage of the Weblogic Mbean maker.

We should always use the below directory structure for creating the Custom Security Provider for Weblogic Server:



Let us take the example of Windows OS:

C:/Providers                       --------------- This is the base Directory for Customer security Provider.
C:/Providers/src               --------------- This is the directory for the Source Code.
C:/Providers/providersjar ------------- This is the directory for the Custom Provider Jar file .
C:/Providers/created_files ------------ This is the Directory for the created schema file by Mbean maker.

  • The important thing needs to kept in mind is that the directory for the created files should always be different from the Source directory and the Directory where thee="color: #993300;">[Security:097533]SecurityProvider service class name for XXXXXX is not specified.

    The above error comes due to incorrect usage of the Weblogic Mbean maker.

    We should always use the below directory structure for creating the Custom Security Provider for Weblogic Server:



    Let us take the example of Windows OS:

    C:/Providers                       --------------- This is the base Directory for Customer security Provider.
    C:/Providers/src               --------------- This is the directory for the Source Code.
    C:/Providers/providersjar ------------- This is the directory for the Custom Provider Jar file .
    C:/Providers/created_files ------------ This is the Directory for the created schema file by Mbean maker.

    • The important thing needs to kept in mind is that the directory for the created files should always be different from the Source directory and the Directory where the Jar is created.

    • And every time when you need to run the Weblogic Mbean maker then the Created Files directory and the providersjar directory should be completely deleted, otherwise the Weblogic mbean maker will run successfully without any error but afte

3 comments:

weblogicwonders said...

Custom SSPI Samples Available here

http://weblogic-wonders.com/weblogic/security/

weblogictips said...

Thanks for the link.

kuldip said...

above "http://weblogic-wonders.com/weblogic/security/" is not valid any more.

Also, I am struggling to find how to remove custom security provider if something goes insane and server does not start successfully and give this type of error.
weblogic.security.service.SecurityServiceRuntimeException: [Security:090877]Service Common BulkAuthorizationService unavailable, see exception text: com.bea.common.engine.ServiceInitializationException: com.bea.common.engine.SecurityServiceRuntimeException: [Security:097533]SecurityProvider service class name for MyProvider is not specified.

at weblogic.security.service.BulkAuthorizationManager.initialize(BulkAuthorizationManager.java:88)

at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBulkATZ(CommonSecurityServiceManagerDelegateImpl.java:703)

at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:488)

at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:840)

at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealms(CommonSecurityServiceManagerDelegateImpl.java:869)

at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1028)

at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)

at weblogic.security.SecurityService.start(SecurityService.java:141)

at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Caused by: com.bea.common.engine.ServiceInitializationException: com.bea.common.engine.SecurityServiceRuntimeException: [Security:097533]SecurityProvider service class name for MyProvider is not specified.

at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:365)

at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)

at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)

at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)

at weblogic.security.service.CSSWLSDelegateImpl.getService(CSSWLSDelegateImpl.java:156)

at com.bea.security.css.CSS.getService(CSS.java:123)

at weblogic.security.service.BulkAuthorizationManager.initialize(BulkAuthorizationManager.java:84)

... 10 more

Caused by: com.bea.common.engine.SecurityServiceRuntimeException: [Security:097533]SecurityProvider service class name for MyProvider is not specified.

at com.bea.common.security.internal.legacy.service.SecurityProviderImpl.init(SecurityProviderImpl.java:47)

at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:363)