This discussion is archived
3 Replies Latest reply: Mar 22, 2013 12:27 AM by 997468 RSS

Weblogic 12c Managed server doesn't start after updating classpath

997935 Newbie
Currently Being Moderated
Hi,

I have a web application whose properties files can be configured. I have kept those files on local filesystem, say c:\myconfig. If I include this directory in classpath the application works fine. It works fine on weblogic 10.3.x.
But then I upgrade to weblogic 12c.

Now if I append this path to classpath in setEnv.cmd of weblogic 12c then admin server can't start. So I updated the classpath in admin console - server startup tab of my managed server.

I tried following entries there

%CLASSPATH%;c:\myconfig

this didn't work. So I tried
c:\myconfig

this too didn't work. Then I tried
$CLASSPATH;c:\myconfig

this too didn't work.

After doing these changes, I am getting - FAILED_NOT_RESTARTABLE as status in Admin console.
And in server logs I get

####<Mar 20, 2013 8:02:37 AM IST> <Info> <Security> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363746757797> <BEA-090093> <No pre-WLS 8.1 Keystore providers are configured for server ManagedServer_1 for security realm myrealm.>
####<Mar 20, 2013 8:02:37 AM IST> <Notice> <Security> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363746757797> <BEA-090082> <Security initializing using security realm myrealm.>
####<Mar 20, 2013 8:02:38 AM IST> <Error> <JNDI> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363746758188> <BEA-050003> <Cannot create initial context. Reason: javax.naming.AuthenticationException [Root exception is javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied]
     at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:44)
     at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:767)
     at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:654)
     at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:466)
     at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:376)
     at weblogic.jndi.Environment.getContext(Environment.java:315)
     at weblogic.jndi.Environment.getContext(Environment.java:285)
     at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
     at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
     at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
     at javax.naming.InitialContext.init(InitialContext.java:223)
     at javax.naming.InitialContext.<init>(InitialContext.java:197)
     at weblogic.jndi.internal.ForeignJNDIManager.<init>(ForeignJNDIManager.java:45)
     at weblogic.jndi.internal.ForeignJNDIManager.initialize(ForeignJNDIManager.java:53)
     at weblogic.jndi.internal.ForeignJNDIManagerService.start(ForeignJNDIManagerService.java:36)
     at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied
     at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
     at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
     at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
     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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
     at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
     at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
     at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
     at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
     at com.bea.common.security.internal.service.JAASLoginServiceImpl.login(JAASLoginServiceImpl.java:113)
     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 com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
     at $Proxy22.login(Unknown Source)
     at weblogic.security.service.internal.WLSJAASLoginServiceImpl$ServiceImpl.login(WLSJAASLoginServiceImpl.java:89)
     at com.bea.common.security.internal.service.JAASAuthenticationServiceImpl.authenticate(JAASAuthenticationServiceImpl.java:82)
     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 com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
     at $Proxy40.authenticate(Unknown Source)
     at weblogic.security.service.WLSJAASAuthenticationServiceWrapper.authenticate(WLSJAASAuthenticationServiceWrapper.java:40)
     at weblogic.security.service.PrincipalAuthenticator.authenticate(PrincipalAuthenticator.java:338)
     at weblogic.security.service.PrincipalAuthenticator.authenticate(PrincipalAuthenticator.java:345)
     at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateLocally(WLInitialContextFactoryDelegate.java:695)
     at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:651)
     ... 15 more
>


But if I remove my entries of classpath - the server starts properly.

So how do I add a directory to classpath of managed server ???

Edited by: user10094131 on Mar 19, 2013 8:15 PM
  • 1. Re: Weblogic 12c Managed server doesn't start after updating classpath
    Kishore Rout Journeyer
    Currently Being Moderated
    Hi,
    By analysisng the error message you have pasted here, I found that it is not related to classpath. It is related to password issue in startManagedWebLogic.cmd file.

    Add the user name and password to WLS_USER and WLS_PW in the startManagedWebLogic.cmd file.

    Mark if this helps you.

    Regards,
    Kishore
  • 2. Re: Weblogic 12c Managed server doesn't start after updating classpath
    997935 Newbie
    Currently Being Moderated
    Hi Kishor,

    I did the changes suggested by you. But still it gives me the same error.

    & following stack.

    ####<Mar 20, 2013 11:16:58 AM IST> <Info> <Security> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758418406> <BEA-090093> <No pre-WLS 8.1 Keystore providers are configured for server ManagedServer_1 for security realm myrealm.>
    ####<Mar 20, 2013 11:16:58 AM IST> <Notice> <Security> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758418406> <BEA-090082> <Security initializing using security realm myrealm.>
    ####<Mar 20, 2013 11:16:59 AM IST> <Error> <JNDI> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758419109> <BEA-050003> <Cannot create initial context. Reason: javax.naming.AuthenticationException [Root exception is javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:44)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:767)
         at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:654)
         at weblogic.jndi.WLInitialContextFactoryDelegate.newContext(WLInitialContextFactoryDelegate.java:466)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:376)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at weblogic.jndi.internal.ForeignJNDIManager.<init>(ForeignJNDIManager.java:45)
         at weblogic.jndi.internal.ForeignJNDIManager.initialize(ForeignJNDIManager.java:53)
         at weblogic.jndi.internal.ForeignJNDIManagerService.start(ForeignJNDIManagerService.java:36)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied
         at weblogic.security.providers.authentication.LDAPAtnLoginModuleImpl.login(LDAPAtnLoginModuleImpl.java:261)
         at com.bea.common.security.internal.service.LoginModuleWrapper$1.run(LoginModuleWrapper.java:110)
         at com.bea.common.security.internal.service.LoginModuleWrapper.login(LoginModuleWrapper.java:106)
         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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
         at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
         at com.bea.common.security.internal.service.JAASLoginServiceImpl.login(JAASLoginServiceImpl.java:113)
         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 com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
         at $Proxy22.login(Unknown Source)
         at weblogic.security.service.internal.WLSJAASLoginServiceImpl$ServiceImpl.login(WLSJAASLoginServiceImpl.java:89)
         at com.bea.common.security.internal.service.JAASAuthenticationServiceImpl.authenticate(JAASAuthenticationServiceImpl.java:82)
         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 com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
         at $Proxy40.authenticate(Unknown Source)
         at weblogic.security.service.WLSJAASAuthenticationServiceWrapper.authenticate(WLSJAASAuthenticationServiceWrapper.java:40)
         at weblogic.security.service.PrincipalAuthenticator.authenticate(PrincipalAuthenticator.java:338)
         at weblogic.security.service.PrincipalAuthenticator.authenticate(PrincipalAuthenticator.java:345)
         at weblogic.jndi.WLInitialContextFactoryDelegate.authenticateLocally(WLInitialContextFactoryDelegate.java:695)
         at weblogic.jndi.WLInitialContextFactoryDelegate.pushSubject(WLInitialContextFactoryDelegate.java:651)
         ... 15 more
    >
    ####<Mar 20, 2013 11:16:59 AM IST> <Info> <Server> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758419344> <BEA-002622> <The protocol "sip" is now configured.>
    ####<Mar 20, 2013 11:16:59 AM IST> <Info> <Server> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758419344> <BEA-002622> <The protocol "sips" is now configured.>
    ####<Mar 20, 2013 11:16:59 AM IST> <Info> <Server> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758419344> <BEA-002622> <The protocol "sips-admin" is now configured.>
    ####<Mar 20, 2013 11:16:59 AM IST> <Info> <Server> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758419344> <BEA-002622> <The protocol "diameter" is now configured.>
    ####<Mar 20, 2013 11:16:59 AM IST> <Info> <Server> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758419344> <BEA-002622> <The protocol "diameters" is now configured.>
    ####<Mar 20, 2013 11:16:59 AM IST> <Info> <Server> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758419344> <BEA-002622> <The protocol "diameter-sctp" is now configured.>
    ####<Mar 20, 2013 11:16:59 AM IST> <Info> <Server> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758419344> <BEA-002622> <The protocol "[snmp, https, t3, cluster-broadcast-secure, diameter, sips, diameter-sctp, ldaps, sips-admin, cluster-broadcast, ldap, sip, http, iiop, admin, t3s, diameters, iiops]" is now configured.>
    ####<Mar 20, 2013 11:16:59 AM IST> <Info> <XML> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758419375> <BEA-130036> <Initializing XMLRegistry>
    ####<Mar 20, 2013 11:16:59 AM IST> <Info> <messaging.interception> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758419375> <BEA-400000> <Initializing message interception service.>
    ####<Mar 20, 2013 11:17:00 AM IST> <Info> <Store> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758420250> <BEA-280008> <Opening the persistent file store "_WLS_ManagedServer_1" for recovery: directory=C:\Oracle\Middleware\user_projects\domains\pmw_domain\servers\ManagedServer_1\data\store\default requestedWritePolicy="Direct-Write" fileLockingEnabled=true driver="wlfileio3".>
    ####<Mar 20, 2013 11:17:02 AM IST> <Info> <Store> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758422656> <BEA-280009> <The persistent file store "_WLS_ManagedServer_1" (390401eb-a217-4896-9bed-9f603cf908a2) has been opened: blockSize=512 actualWritePolicy="Direct-Write(read-buffered)" explicitIOEnforced=false records=13.>
    ####<Mar 20, 2013 11:17:02 AM IST> <Info> <JDBC> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758422859> <BEA-001135> <Initializing the JDBC service.>
    ####<Mar 20, 2013 11:17:02 AM IST> <Info> <JDBC> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758422891> <BEA-001137> <Initialization complete.>
    ####<Mar 20, 2013 11:17:02 AM IST> <Info> <JDBC> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758422891> <BEA-001138> <Resuming the JDBC service.>
    ####<Mar 20, 2013 11:17:02 AM IST> <Info> <JDBC> <wl036665> <ManagedServer_1> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1363758422906> <BEA-001140> <Resume complete.>
    ####<Mar 20, 2013 11:17:02 AM IST> <Critical> <WebLogicServer> <wl036665> <ManagedServer_1> <Main Thread> <<WLS Kernel>> <> <> <1363758422922> <BEA-000386> <Server subsystem failed. Reason: weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Cannot intialize Resource Manager Connection Factory resources because could not get JNDI context: javax.naming.AuthenticationException [Root exception is javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied] ]
    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Cannot intialize Resource Manager Connection Factory resources because could not get JNDI context: javax.naming.AuthenticationException [Root exception is javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User javax.security.auth.login.LoginException: [Security:090301]Password Not Supplied] ]
         at weblogic.deployment.MailDeploymentHandler.<init>(MailDeploymentHandler.java:58)
         at weblogic.deployment.DeploymentRegistrationService.start(DeploymentRegistrationService.java:31)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    ####<Mar 20, 2013 11:17:03 AM IST> <Notice> <WebLogicServer> <wl036665> <ManagedServer_1> <Main Thread> <<WLS Kernel>> <> <> <1363758423062> <BEA-000365> <Server state changed to FAILED.>
    ####<Mar 20, 2013 11:17:03 AM IST> <Error> <WebLogicServer> <wl036665> <ManagedServer_1> <Main Thread> <<WLS Kernel>> <> <> <1363758423062> <BEA-000383> <A critical service failed. The server will shut itself down.>
    ####<Mar 20, 2013 11:17:03 AM IST> <Notice> <WebLogicServer> <wl036665> <ManagedServer_1> <Main Thread> <<WLS Kernel>> <> <> <1363758423125> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>
    ####<Mar 20, 2013 11:17:03 AM IST> <Info> <JDBC> <wl036665> <ManagedServer_1> <Main Thread> <<WLS Kernel>> <> <> <1363758423125> <BEA-001144> <Force Suspending the JDBC service.>
    ####<Mar 20, 2013 11:17:03 AM IST> <Info> <JDBC> <wl036665> <ManagedServer_1> <Main Thread> <<WLS Kernel>> <> <> <1363758423125> <BEA-001146> <Force suspend of the JDBC service completed.>
    ####<Mar 20, 2013 11:17:03 AM IST> <Info> <JDBC> <wl036665> <ManagedServer_1> <Main Thread> <<WLS Kernel>> <> <> <1363758423125> <BEA-001147> <Shutting down the JDBC service.>
    ####<Mar 20, 2013 11:17:03 AM IST> <Info> <JDBC> <wl036665> <ManagedServer_1> <Main Thread> <<WLS Kernel>> <> <> <1363758423141> <BEA-001149> <Shutdown of the JDBC service has completed.>
    ####<Mar 20, 2013 11:17:03 AM IST> <Info> <WebLogicServer> <wl036665> <ManagedServer_1> <Main Thread> <<WLS Kernel>> <> <> <1363758423203> <BEA-000236> <Stopping execute threads.>



    I also tried to set the username & password for managed server in admin console. But it didn't work.
  • 3. Re: Weblogic 12c Managed server doesn't start after updating classpath
    997468 Explorer
    Currently Being Moderated
    Hello,

    Error pasted here shows password not supplied while starting managed server, nothing shown for classpath issue. Can you try passing the required credentials in boot.properties file under $DOMAIN_HOME/servers/<server name>/security folder in plain text as shown below.,

    username=user
    password=passwd

    With this Weblogic will pick the password from boot.properties file and not prompt for one.

    Thanks,
    Ranjan

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points