Friday, May 1, 2015

BEA-149205 Failed to initialize the application "Service Bus Framework Starter Application" due to OSB system user authentication failed

Problem:

Getting the following error when starting up the AdminServer on Oracle WebLogic Server 12c with Oracle Service Bus 12c installed:
####<Apr 20, 2015 11:44:21 PM EDT> <Error> <Deployer> <soahost1> <AdminServer> <[STANDBY] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <236cd04a-cdd4-4c4c-bf1b-f4ca7b2fe3fe-00000004> <1429587861652> <BEA-149205> <Failed to initialize the application "Service Bus Framework Starter Application" due to error java.lang.RuntimeException: OSB system user authentication failed
java.lang.RuntimeException: OSB system user authentication failed
        at com.bea.wli.sb.security.SecurityModuleImpl.runAlsbPrivilegedAction(SecurityModuleImpl.java:345)
        at com.bea.wli.sb.security.SecurityModuleImpl.jndiBind(SecurityModuleImpl.java:415)
        at com.bea.alsb.platform.weblogic.WlsJNDIService.bind(WlsJNDIService.java:46)
        at com.bea.wli.sb.init.FrameworkStarter$ALSBClusterTimerJndiAccess.bindClusterTimer(FrameworkStarter.java:362)
        at com.bea.wli.timer.ClusterTimerService.initialize(ClusterTimerService.java:87)
        at com.bea.wli.sb.init.FrameworkStarter._preStart(FrameworkStarter.java:215)
        at com.bea.wli.sb.init.FrameworkStarter.access$000(FrameworkStarter.java:75)
        at com.bea.wli.sb.init.FrameworkStarter$1.run(FrameworkStarter.java:94)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
        at weblogic.security.Security.runAs(Security.java:61)


Solution:

1. Login to the WebLogic Server Administration Console

2. Navigate to Security Realms > myrealm > Users and Groups.

3. Click on "New" to create a new user using the following:
NAME: alsb-system-user 
PASSWORD: (any password) 
DESCRIPTION: The ALSB system user is a built-in system account which belongs to the ALSBSystem role. As such it has access to ALSBs internal artifacts. The password for this account is automatically changed when the admin server boots to prevent direct access to this account.
4. Save and restart the AdminServer.



Applicable Versions:
  • Oracle WebLogic Server 12c (12.1.3)
  • Oracle Service Bus (OSB) 12c 

 

9 comments:

Bernard H said...

also applies to version 12.2.1. It affected OSB startup after installing and loading the jDeveloper-embedded WebLogic server with quick start version of Oracle SOA Suite. 11 modules related to OSB were listed "failed" in Enterprise Manager. After creation of the missing user and a server restart: all UP.
Great help!

Ahmed Aboulnaga said...

Awesome! Glad it worked!

Sunil said...

Hi, I still see this happening even though the user you have mentioned in already in myrelam.

Please advice.

Ahmed Aboulnaga said...

What is the exact error you are receiving in your logs?

Sunil Nagavelli said...
This comment has been removed by the author.
Anonymous said...

Hi In response to the earlier comment, I am still seeing this issue even after the user is configured in myrealm

Anonymous said...





Jun 06, 2016 1:47:41 PM com.tangosol.coherence.component.util.logOutput.Jdk log
INFO: 2016-06-06 13:47:41.929/28.077 Oracle Coherence 12.1.3.0.0 (thread=[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Loaded operational configuration from "jar:file:/oracle/middleware/product/fmw/coherence/lib/coherence.jar!/tangosol-coherence.xml"
Jun 06, 2016 1:47:42 PM com.tangosol.coherence.component.util.logOutput.Jdk log
INFO: 2016-06-06 13:47:42.194/28.342 Oracle Coherence 12.1.3.0.0 (thread=[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)', member=n/a): Loaded operational overrides from "jar:file:/oracle/middleware/product/fmw/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
Jun 06, 2016 1:47:45 PM oracle.dms.servlet.DMSServletFilter setEagerlySetContextValues
INFO: The setting that controls the eager fetching of some types of execution context data has been set to true.



(SecurityModuleImpl.java:607)
at com.bea.wli.sb.security.SecurityModuleImpl.(SecurityModuleImpl.java:112)
at com.bea.wli.sb.security.WLSSecurityService.start(WLSSecurityService.java:44)
at com.bea.wli.sb.init.FrameworkStarter._preStart(FrameworkStarter.java:195)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at com.bea.wli.sb.security.UpgradeHook.addStandardInternalQueuePolicies(UpgradeHook.java:85)
at com.bea.wli.sb.security.SecurityModuleImpl.(SecurityModuleImpl.java:607)
at com.bea.wli.sb.security.SecurityModuleImpl.(SecurityModuleImpl.java:112)
at com.bea.wli.sb.security.WLSSecurityService.start(WLSSecurityService.java:44)
at com.bea.wli.sb.init.FrameworkStarter._preStart(FrameworkStarter.java:195)
Truncated. see log file for complete stacktrace
>
<Failed to initialize the application "Service Bus Kernel" due to error java.lang.NoClassDefFoundError: Could not initialize class com.bea.wli.sb.security.SecurityModuleImpl
java.lang.NoClassDefFoundError: Could not initialize class com.bea.wli.sb.security.SecurityModuleImpl
at com.bea.wli.sb.security.WLSSecurityService.getSecurityService(WLSSecurityService.java:27)
at com.bea.wli.sb.init.AppListener.initSB(AppListener.java:190)
at com.bea.wli.sb.init.AppListener.__preStart(AppListener.java:174)
at com.bea.wli.sb.init.AppListener.access$000(AppListener.java:94)
at com.bea.wli.sb.init.AppListener$1.run(AppListener.java:159)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NoClassDefFoundError: Could not initialize class com.bea.wli.sb.security.SecurityModuleImpl
at com.bea.wli.sb.security.WLSSecurityService.getSecurityService(WLSSecurityService.java:27)
at com.bea.wli.sb.init.AppListener.initSB(AppListener.java:190)
at com.bea.wli.sb.init.AppListener.__preStart(AppListener.java:174)
at com.bea.wli.sb.init.AppListener.access$000(AppListener.java:94)
at com.bea.wli.sb.init.AppListener$1.run(AppListener.java:159)
Truncated. see log file for complete stacktrace

Ahmed Aboulnaga said...

The error you are receiving is very different error actually.

Here is your error:

Failed to initialize the application "Service Bus Kernel" due to error java.lang.NoClassDefFoundError: Could not initialize class com.bea.wli.sb.security.SecurityModuleImpl

This class (in 11g) is found in this JAR file:

$MW_HOME/Oracle_OSB1/lib/modules/com.bea.alsb.security-wls.jar

The question now is why that JAR isn't being loaded upon startup.

Can you provide some details:
- OSB version
- Operating system
- How are you starting it up

Allan said...

Thanks so much, I have been having a lot of throubles with my weblogic and this was a wonderful solution. Faster and effective.