Thursday, March 1, 2012

weblogic server failed_not_restartable

You get this error during the start of  AdminServer or even Managed Server. There're a lot of threads about this erro &  how to solve it.

In my Situation, I had problem with the Admin Server & Managed Servers

I got to solve the problem of Admin Server as following
wls:/nm/base_domain> nmServerStatus ('AdminServer')


FAILED_NOT_RESTARTABLE
Solution:
1. An authorized user issues the WLST offline command nmConnect to connect to
the Node Manager process on the machine that hosts the Administration Server.
(If the Node Manager instance is the SSH version, the user can connect using the
SSH client). The nmConnect command provides the Node Manager user name
and password that are used to authenticate the user with the Node Manager.
Then, the user issues the nmStart command and provides the credentials for
starting the Administration Server.
For example:


prps = makePropertiesObject("username=weblogic,password=XXXXX")


prps = makePropertiesObject("username=weblogic, password=welcome1")

nmStart("AdminServer",props=prps)

The nmStart command identifies the domain and server instance to start.

2. Node Manager looks up the domain directory in nodemanager.domains, and authenticates the user credentials using a local file that contains the encrypted username and password.

3. Node Manager obtains the startup properties for the Administration Server.

4. Node Manager creates the Administration Server process.

5. The Administration Server obtains the domain configuration from its config directory.

Note: If the user has previously connected to the Node Manager, a

boot.properties file exists, and the user does not have to supply user name and password.

wls:/nm/base_domain> prps = makePropertiesObject("weblogic.ListenPort=7001")

wls:/nm/base_domain> nmStart('AdminServer',props=prps)

Starting server AdminServer ...

Successfully started server AdminServer ...

wls:/nm/base_domain>
=============================
 
For Managed Server
 
A lot of threads say it has to do with Xrs or Xnohup arguments (The arguments to use when starting this server). I disagree with them . Just have a look at  General Node Manager Configurationhttp://docs.oracle.com/cd/E12839_01/web.1111/e13740/nodemgr_config.htm 
 
I think the main problem with failed_not_restartable is error in the server startup configruation file, the config.xml or in PATH or CLASSPATH  ( ID 1130004.1)
 
In my situation I found in error in the server startup configuration file.I added the wrong Root Directory.
ex. D:\weblogic\Oracle\Middleware\user_projects\domains\my_domain
& it must be D:\weblogic\Oracle\Middleware\user_projects\domains\base_domain
 
 
Cheers,
 

Critical error Server failed. Reason there are 1 nested errors

It took to much time to find the solution for this error "Critical Server failed. Reason: There are 1 nested errors: weblogic.management.ManagementException: Booting as admin server, but servername,xxxxx, does not match the admin server name"

This  error can be accured  in the start of Managed Server through Node Manager
Reasons
1- Wrong parameters  in the Config.xml file
2- Wrong parameters in the Server Start file ( startup.properties)
3- Startup the Managed Server for the first time via Node Manager

Solution:

1- Just check one of the two files above &try; find out the wrong parameters then start your managed Server.
In my case  I addede the wrong the Root Directory " The directory that this server uses as its root directory. This directory must be on the computer that hosts the Node Manager"

2- Try starting the managed server one time via the script startManagedWebLogic outside of using Node Manager for example: WL_HOME\user_projects\domains\base_domain\bin\startManagedWebLogic.cmd (name managed Server) http://localhost:7001 . Then stop the server and this time use Node Manager still using startWebLogic as the script.
Cheers,