It's all about Weblogic..!!!

January 17, 2011

Troubleshooting SAML 2

Filed under: Security Issues — streethawkz @ 9:06 am

Stack Trace 1 :

<Dec 31, 2010 2:00:32 AM IST> <Error> <Security> <BEA-090870> <The realm “myrealm” failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: <openjpa-1.1.0-r422266:657916fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class “kodo.jdbc.kernel.KodoJDBCBrokerFactory”.  See the nested exception for details..weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: <openjpa-1.1.0-r422266:657916 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class “kodo.jdbc.kernel.KodoJDBCBrokerFactory”.  See the nested exception for details.        at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(Unknown Source)        at weblogic.security.service.CSSWLSDelegateImpl.initialize(Unknown Source)        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(Unknown Source)        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(Unknown Source)        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(Unknown Source)        Truncated. see log file for complete stacktracecom.bea.common.engine.ServiceInitializationException: <openjpa-1.1.0-r422266:657916 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class “kodo.jdbc.kernel.KodoJDBCBrokerFactory”.  See the nested exception for details.        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.internal.WLSIdentityServiceImpl.initialize(Unknown Source)        Truncated. see log file for complete stacktrace<openjpa-1.1.0-r422266:657916 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class “kodo.jdbc.kernel.KodoJDBCBrokerFactory”.  See the nested exception for details.        at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:95)        at com.bea.common.security.storeservice.util.StoreServiceDelegate$StoreSerivceHelper.getPersistenceManagerFactory(StoreServiceDelegate.java:347)        at com.bea.common.security.storeservice.util.StoreServiceDelegate.initJDO(StoreServiceDelegate.java:145)        at com.bea.common.security.storeservice.util.StoreServiceDelegate.<init>(StoreServiceDelegate.java:98)        at com.bea.common.security.internal.service.StoreServiceImpl.init(StoreServiceImpl.java:76)        Truncated. see log file for complete stacktracejava.lang.RuntimeException: There were errors initializing your configuration: java.lang.NoClassDefFoundError: com/pointbase/session/sessionManager        at com.pointbase.dbexcp.dbexcpException.getSQLException(Unknown Source)        at com.pointbase.net.netJDBCConnection.a(Unknown Source)        at com.pointbase.net.netJDBCConnection.<init>(Unknown Source)        at com.pointbase.net.netJDBCDriver.getConnection(DashoA10*..:170)        at com.pointbase.net.netJDBCDriver.connect(DashoA10*..:94)        at com.pointbase.jdbc.jdbcUniversalDriver.getConnection(Unknown Source)        at com.pointbase.jdbc.jdbcUniversalDriver.connect(Unknown Source)        at com.solarmetric.jdbc.PoolingDataSource.newConnection(PoolingDataSource.java:272)        at com.solarmetric.jdbc.ConnectionPoolImpl.makeConnection(ConnectionPoolImpl.java:413)        at com.solarmetric.jdbc.ConnectionPoolImpl.getConnection(ConnectionPoolImpl.java:290)        at com.solarmetric.jdbc.PoolingDataSource.getConnection(PoolingDataSource.java:199)        at org.apache.openjpa.lib.jdbc.DelegatingDataSource.getConnection(DelegatingDataSource.java:113)        at org.apache.openjpa.lib.jdbc.DecoratingDataSource.getConnection(DecoratingDataSource.java:93)        at org.apache.openjpa.jdbc.schema.DataSourceFactory.installDBDictionary(DataSourceFactory.java:227)        at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:684)        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)        at java.lang.reflect.Method.invoke(Method.java:597)        at org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(ConfigurationImpl.java:288)        at org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(OpenJPAConfigurationImpl.java:1409)        at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:646)        at org.apache.openjpa.kernel.AbstractBrokerFactory.pool(AbstractBrokerFactory.java:131)        at kodo.jdbc.kernel.KodoJDBCBrokerFactory.getInstance(KodoJDBCBrokerFactory.java:43)        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)        at java.lang.reflect.Method.invoke(Method.java:597)        at org.apache.openjpa.kernel.Bootstrap.invokeFactory(Bootstrap.java:124)
at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:90)        at com.bea.common.security.storeservice.util.StoreServiceDelegate$StoreSerivceHelper.getPersistenceManagerFactory(StoreServiceDelegate.java:347)        at com.bea.common.security.storeservice.util.StoreServiceDelegate.initJDO(StoreServiceDelegate.java:145)        at com.bea.common.security.storeservice.util.StoreServiceDelegate.<init>(StoreServiceDelegate.java:98)        at com.bea.common.security.internal.service.StoreServiceImpl.init(StoreServiceImpl.java:76)        at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:363)        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.internal.WLSIdentityServiceImpl.initialize(Unknown Source)        at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(Unknown Source)        at weblogic.security.service.CSSWLSDelegateImpl.initialize(Unknown Source)        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(Unknown Source)        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)        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: java.lang.ClassNotFoundException: com.pointbase.session.sessionManager        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)        at java.security.AccessController.doPrivileged(Native Method)        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)        … 51 more
at org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(ConfigurationImpl.java:302)        at org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(OpenJPAConfigurationImpl.java:1409)        at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:646)        at org.apache.openjpa.kernel.AbstractBrokerFactory.pool(AbstractBrokerFactory.java:131)        at kodo.jdbc.kernel.KodoJDBCBrokerFactory.getInstance(KodoJDBCBrokerFactory.java:43)        Truncated. see log file for complete stacktrace><Dec 31, 2010 2:00:32 AM IST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.><Dec 31, 2010 2:00:32 AM IST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
There are 1 nested errors:
weblogic.security.service.SecurityServiceRuntimeException: [Security:090399]Security Services Unavailable        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(Unknown Source)        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(Unknown Source)        at weblogic.security.service.SecurityServiceManager.initialize(Unknown Source)        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)
><Dec 31, 2010 2:00:32 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED><Dec 31, 2010 2:00:32 AM IST> <Error> <WebLogicServer> <BEA-000383> <A criticalservice failed. The server will shut itself down><Dec 31, 2010 2:00:32 AM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>

Solution / Workaround :

The above error is seen when the Security Database that was configured with SAML 2 is not started.

In this case pointbase database was not started.

 

——————————————————————————————————————————————————————————-

 

Stack Trace 2 :

Following error was seen on the Admin console when we tried to save a metadata file during SAML 2 configuration :

[Security:096600]No saml2 service entity ID configured

Solution / Workaround :

A server restart is required.

Restarting the server fixed the issue.

 

——————————————————————————————————————————————————————————-


Stack Trace 3 :

Following error was seen on the console while configuring SAML 2 :

” You must configure a SAML 2.0 Identity Assertion provider before using the SAML 2.0 Service Provider page. ”

Solution / Workaround :

After you create a SamlIdentityAsserter. you are nt prompted for a restart but when u click on server–> federation services –> saml2service provider you get the above error.

Restarting the server wil fix the issue

 

——————————————————————————————————————————————————————————-


Blog at WordPress.com.