2 Replies Latest reply: Jun 5, 2009 9:58 AM by 705388 RSS

    Error while starting OCSG Admin Server

    445913
      Hi, I got following error while starting AdminServer of OCSG4.1

      <The realm “myrealm” failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: weblogic.security.spi.ProviderInitializationException: A failure occurred attempting to load LDIF for provider CredentialMapper from file /ORBQA/u02/volwcmount/wl1/oracle/bea/user_projects/domains/trial_domain/security/PKICredentialMapperInit.ldift..
      weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: weblogic.security.spi.ProviderInitializationException: A failure occurred attempting to load LDIF for provider CredentialMapper from file /ORBQA/u02/volwcmount/wl1/oracle/bea/user_projects/domains/trial_domain/security/PKICredentialMapperInit.ldift.
      at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(Unknown Source)
      at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(Unknown Source)
      at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealms(Unknown Source)
      at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(Unknown Source)
      at weblogic.security.service.SecurityServiceManager.initialize(Unknown Source)
      Truncated. see log file for complete stacktrace
      com.bea.common.engine.ServiceInitializationException: weblogic.security.spi.ProviderInitializationException: A failure occurred attempting to load LDIF for provider CredentialMapper from file /ORBQA/u02/volwcmount/wl1/oracle/bea/user_projects/domains/trial_domain/security/PKICredentialMapperInit.ldift.
      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(Unknown Source)
      Truncated. see log file for complete stacktrace
      weblogic.security.spi.ProviderInitializationException: A failure occurred attempting to load LDIF for provider CredentialMapper from file /ORBQA/u02/volwcmount/wl1/oracle/bea/user_projects/domains/trial_domain/security/PKICredentialMapperInit.ldift.
      at com.bea.common.store.bootstrap.BootStrapServiceImpl.loadFullLDIFTemplate(BootStrapServiceImpl.java:811)
      at com.bea.common.store.bootstrap.BootStrapServiceImpl.loadLDIFTemplate(BootStrapServiceImpl.java:644)
      at com.bea.common.store.bootstrap.BootStrapServiceImpl.loadLDIFPKICredentialMapperTemplate(BootStrapServiceImpl.java:208)
      at com.bea.common.security.internal.service.BootStrapServiceImpl.loadLDIFPKICredentialMapperTemplate(BootStrapServiceImpl.java:133)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      Truncated. see log file for complete stacktrace
      kodo.jdo.FatalDataStoreException: The transaction has been rolled back. See the nested exceptions for details on the errors that occurred.
      at org.apache.openjpa.kernel.BrokerImpl.newFlushException(BrokerImpl.java:2160)
      at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:2007)
      at org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:1905)
      at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1823)
      at org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:81)
      Truncated. see log file for complete stacktrace
      kodo.jdo.DataStoreException: ORA-00942: table or view does not exist
      {prepstmnt 22370361 INSERT INTO BEAPRMP (DOMN, REALMN, TYPEN, CN, CTS, CA, KAN, KAP, PN, PNIU, RN, WCN, WCI, MTS) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [params=(String) trial_domain, (String) myrealm, (String) KeyPair, (String) type=:wsrpconsumer__81_COMPAT:0, (null) null, (null) null, (String) wsrpconsumer, (String) {3DES}YMuMZ2wV9gOdYMmriNMgeA==, (String) wsrpconsumer__81_COMPAT, (String) 0, (String) type=, (null) null, (null) null, (Timestamp) 2008-11-19 16:36:55.428] [reused=0]} [code=942, state=42000]
      FailedObject: com.bea.common.security.store.data.PKIResourceMap@154bcc6
      at org.apache.openjpa.jdbc.sql.SQLExceptions.narrow(SQLExceptions.java:146)
      at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:4150)
      at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:102)
      at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:72)
      at kodo.jdbc.kernel.BatchingPreparedStatementManager.flushInternal(BatchingPreparedStatementManager.java:214)
      Truncated. see log file for complete stacktrace
      org.apache.openjpa.lib.jdbc.ReportingSQLException: ORA-00942: table or view does not exist
      {prepstmnt 22370361 INSERT INTO BEAPRMP (DOMN, REALMN, TYPEN, CN, CTS, CA, KAN, KAP, PN, PNIU, RN, WCN, WCI, MTS) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [params=(String) trial_domain, (String) myrealm, (String) KeyPair, (String) type=:wsrpconsumer__81_COMPAT:0, (null) null, (null) null, (String) wsrpconsumer, (String) {3DES}YMuMZ2wV9gOdYMmriNMgeA==, (String) wsrpconsumer__81_COMPAT, (String) 0, (String) type=, (null) null, (null) null, (Timestamp) 2008-11-19 16:36:55.428] [reused=0]} [code=942, state=42000]
      at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecorator.java:192)
      at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.access$700(LoggingConnectionDecorator.java:57)
      at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.executeUpdate(LoggingConnectionDecorator.java:866)
      at org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:269)
      at org.apache.openjpa.jdbc.kernel.JDBCStoreManager$CancelPreparedStatement.executeUpdate(JDBCStoreManager.java:1398)
      Truncated. see log file for complete stacktrace
      >

      Regards,
      imran
        • 1. Re: Error while starting OCSG Admin Server
          445913
          irazakhan@yahoo.com wrote:
          Hi, I got following error while starting AdminServer of OCSG4.1

          <The realm “myrealm” failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: weblogic.security.spi.ProviderInitializationException: A failure occurred attempting to load LDIF for provider CredentialMapper from file /ORBQA/u02/volwcmount/wl1/oracle/bea/user_projects/domains/trial_domain/security/PKICredentialMapperInit.ldift..
          weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: weblogic.security.spi.ProviderInitializationException: A failure occurred attempting to load LDIF for provider CredentialMapper from file /ORBQA/u02/volwcmount/wl1/oracle/bea/user_projects/domains/trial_domain/security/PKICredentialMapperInit.ldift.
          at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(Unknown Source)
          at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(Unknown Source)
          at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealms(Unknown Source)
          at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(Unknown Source)
          at weblogic.security.service.SecurityServiceManager.initialize(Unknown Source)
          Truncated. see log file for complete stacktrace
          com.bea.common.engine.ServiceInitializationException: weblogic.security.spi.ProviderInitializationException: A failure occurred attempting to load LDIF for provider CredentialMapper from file /ORBQA/u02/volwcmount/wl1/oracle/bea/user_projects/domains/trial_domain/security/PKICredentialMapperInit.ldift.
          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(Unknown Source)
          Truncated. see log file for complete stacktrace
          weblogic.security.spi.ProviderInitializationException: A failure occurred attempting to load LDIF for provider CredentialMapper from file /ORBQA/u02/volwcmount/wl1/oracle/bea/user_projects/domains/trial_domain/security/PKICredentialMapperInit.ldift.
          at com.bea.common.store.bootstrap.BootStrapServiceImpl.loadFullLDIFTemplate(BootStrapServiceImpl.java:811)
          at com.bea.common.store.bootstrap.BootStrapServiceImpl.loadLDIFTemplate(BootStrapServiceImpl.java:644)
          at com.bea.common.store.bootstrap.BootStrapServiceImpl.loadLDIFPKICredentialMapperTemplate(BootStrapServiceImpl.java:208)
          at com.bea.common.security.internal.service.BootStrapServiceImpl.loadLDIFPKICredentialMapperTemplate(BootStrapServiceImpl.java:133)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          Truncated. see log file for complete stacktrace
          kodo.jdo.FatalDataStoreException: The transaction has been rolled back. See the nested exceptions for details on the errors that occurred.
          at org.apache.openjpa.kernel.BrokerImpl.newFlushException(BrokerImpl.java:2160)
          at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:2007)
          at org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:1905)
          at org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1823)
          at org.apache.openjpa.kernel.LocalManagedRuntime.commit(LocalManagedRuntime.java:81)
          Truncated. see log file for complete stacktrace
          kodo.jdo.DataStoreException: ORA-00942: table or view does not exist
          {prepstmnt 22370361 INSERT INTO BEAPRMP (DOMN, REALMN, TYPEN, CN, CTS, CA, KAN, KAP, PN, PNIU, RN, WCN, WCI, MTS) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [params=(String) trial_domain, (String) myrealm, (String) KeyPair, (String) type=:wsrpconsumer__81_COMPAT:0, (null) null, (null) null, (String) wsrpconsumer, (String) {3DES}YMuMZ2wV9gOdYMmriNMgeA==, (String) wsrpconsumer__81_COMPAT, (String) 0, (String) type=, (null) null, (null) null, (Timestamp) 2008-11-19 16:36:55.428] [reused=0]} [code=942, state=42000]
          FailedObject: com.bea.common.security.store.data.PKIResourceMap@154bcc6
          at org.apache.openjpa.jdbc.sql.SQLExceptions.narrow(SQLExceptions.java:146)
          at org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:4150)
          at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:102)
          at org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:72)
          at kodo.jdbc.kernel.BatchingPreparedStatementManager.flushInternal(BatchingPreparedStatementManager.java:214)
          Truncated. see log file for complete stacktrace
          org.apache.openjpa.lib.jdbc.ReportingSQLException: ORA-00942: table or view does not exist
          {prepstmnt 22370361 INSERT INTO BEAPRMP (DOMN, REALMN, TYPEN, CN, CTS, CA, KAN, KAP, PN, PNIU, RN, WCN, WCI, MTS) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [params=(String) trial_domain, (String) myrealm, (String) KeyPair, (String) type=:wsrpconsumer__81_COMPAT:0, (null) null, (null) null, (String) wsrpconsumer, (String) {3DES}YMuMZ2wV9gOdYMmriNMgeA==, (String) wsrpconsumer__81_COMPAT, (String) 0, (String) type=, (null) null, (null) null, (Timestamp) 2008-11-19 16:36:55.428] [reused=0]} [code=942, state=42000]
          at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecorator.java:192)
          at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.access$700(LoggingConnectionDecorator.java:57)
          at org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.executeUpdate(LoggingConnectionDecorator.java:866)
          at org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:269)
          at org.apache.openjpa.jdbc.kernel.JDBCStoreManager$CancelPreparedStatement.executeUpdate(JDBCStoreManager.java:1398)
          Truncated. see log file for complete stacktrace
          >

          Regards,
          imran
          HI,

          I got one reply on a site and it works.


          "
          sathya said,

          *I got the same error as above. The fix is fairly simple. Login as “weblogic” user in Oracle and run the script under $BEA_HOME\wlserver_10.3\server\lib\rdbms_security_store_oracle.sql file and you’ll be good to go.*

          *I didn’t realize this for quite some time. When I tried to create a new domain, I noticed this message on top bar in the second screen (fine print!)*
          "
          • 2. Re: Error while starting OCSG Admin Server
            705388
            I got the same error as above. The fix is very simple. Login as “sa” user in MsSQL and run the script under $BEA_HOME\wlserver_10.3\server\lib\rdbms_security_store_sqlserver.sql file and you’ll be good to go.