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,

Saturday, February 18, 2012

Weblogic Admin Console Timeout

on the Weblogic Admin Console will cause user session timeout and will fall back at the login screen.

Solution:

To avoid timeout session you'll need to increase session timeout parameter in weblogic.xml.

This file is located under WL_HOME\wlserver_10.3\server\lib\consoleapp\webapp\WEB-INF.
The default setting is as floowing;

session-descriptor 
(timeout-secs)3600(/timeout-secs)
(invalidation-interval-secs)60(/invalidation-interval-secs)

You'll need to change these two parameters to your wish.
After changes has been taken place, just save the file and restart weblogic server.
 
Cheers,

Sunday, February 12, 2012

NodeManager(nmConnect problems)

During the start of NodeManager may be you'll meet the following problem;
NMProcess: WARNING: Configuration error while reading domain directory NMProcess: weblogic.nodemanager.common.ConfigException: The domain 'base_domain' at 'D://weblogic/Oracle//Middleware//user_projects//domains//base_domain' was not registered in the nodemanager.domains file and dynamic domain registration is not supported. Please register the domain in the nodemanager.domains file.

Or during the use of mnConnect  command for example:
wls:/base_domain/serverConfig> nmConnect('weblogic','xxxxxx','localhost','5556','base_domain',r'D:\weblogic/Oracle\Middleware\user_projects\domains\base_domain','ssl')


WLSTException: Error occured while performing nmConnect : Cannot connect to Node Manager. : Access to domain 'base_domain' for user 'weblogic' denied Use dumpStack() to view the full stacktrace
wls:/base_domain/serverConfig>

Solution:

You will need to add the following lines to nm_password.properties file

password=xxxxx
username=weblogic
This file is located under WL_HOME\user_projects\domains\base_domain\config\nodemanager

Note: for the first Error you'll need to stop/start NodeManager

wls:/base_domain/serverConfig> stopNodeManager()
wls:/base_domain/serverConfig> startNodeManager()

For the second error you do not need to stop/start Nodemanager
wls:/base_domain/serverConfig> nmConnect 'weblogic','xxxxx','localhost','5556','base_domain',r'D:\weblogic/Oracle\Middleware\user_projects\domains\base_domain','ssl')

Connecting to Node Manager ...

Successfully Connected to Node Manager.

wls:/base_domain/serverConfig>
 
Cheers,

Tuesday, February 7, 2012

Error installation Weblogic in a silent mode

May be during the installation of Weblogic, you will meet the following errors:

a- ERROR [readSilentXML] com.bea.plateng.wizard.installer.common.parsers.TemplateParser - Got an error in parsing template.xml!
ERROR [readSilentXML] com.bea.plateng.wizard.installer.silent.tasks.ReadSilentXMLTask - java.lang.NullPointerException
b- ernal.model.HomeTargetImpl.setSelections(HomeTargetImpl.java:337)at com.bea.plateng.wizard.installer.helpers.BEAHomeHelper.buildTarget(BEAHomeHelper.java:162)
at com.bea.plateng.wizard.installer.silent.tasks.SilentBEAHomeTask.execute(SilentBEAHomeTask.java:33)
at com.bea.plateng.wizard.silent.tasks.AbstractSilentTask.run(AbstractSilentTask.java:28)at java.lang.Thread.run(Thread.java:619)
ERROR [home] com.bea.plateng.wizard.installer.silent.tasks.SilentBEAHomeTask - The local BEA product registry is corrupted. Please select another Middleware Home or contact Oracle Support

This error dur to one of the following reasons;

1- Oracle example slinet.xml has error, the folllowing line appears twice in the silent.xml file
 (?xml version="1.0" encoding="UTF-8"?)You'll need to delete one of these lines



2- The second error conerning the VALUE parameter line. All Value parameters need to be on one line

In order to avoid any errors during the installation of WebLogic in a silent mode.You'll need to follow the setps:

1- Download Sample file from Oracle documentation

http://docs.oracle.com/cd/E21764_01/doc.1111/e14142/silent.htm


2- Change the silent.xml file, put the right path for your WLS_HOME

3- start silent mode installation as following

From Dos prompt
D:\Oracle-Docs>wls1035_oepe111172_win32.exe -mode=silent -silent_xml=D:\Oracle-Docs\silent1.xml -log=D:\Oracle-Docs\silent.log


Cheers,

Error installtion Weblogic in silent mode

May be during the installation of Weblogic, you will meet the following errors:

a- ERROR [readSilentXML] com.bea.plateng.wizard.installer.common.parsers.TemplateParser - Got an error in parsing template.xml! ERROR [readSilentXML] com.bea.plateng.wizard.installer.silent.tasks.ReadSilentXMLTask - java.lang.NullPointerException


b- ernal.model.HomeTargetImpl.setSelections(HomeTargetImpl.java:337)at com.bea.plateng.wizard.installer.helpers.BEAHomeHelper.buildTarget(BEAHomeHelper.java:162)
at com.bea.plateng.wizard.installer.silent.tasks.SilentBEAHomeTask.execute(SilentBEAHomeTask.java:33)
at com.bea.plateng.wizard.silent.tasks.AbstractSilentTask.run(AbstractSilentTask.java:28)at java.lang.Thread.run(Thread.java:619)
ERROR [home] com.bea.plateng.wizard.installer.silent.tasks.SilentBEAHomeTask - The local BEA product registry is corrupted. Please select another Middleware Home or contact Oracle Support

This error dur to one of the following reasons;

1- Oracle example slinet.xml has error, the folllowing line appears twice in the silent.xml file

(

You'll need to delete one of these lines


2- The sencond error conernig the VALUE parameter line. All parameters need to be on one line


In order to avoid any errors during the installation of WebLogic in silent mode. You'll need to follow the setps:

1- Download Sample file from Oracle documentation

2- change this file for example;









=================== save the silent.xml file ================


3- start silent mode installation as following



wls1035_oepe111172_win32.exe -mode=silent -silent_xml=D:\Oracle-Docs\silent1.xml -log=D:\Oracle-Docs\silent.log

Error installation Weblogic in Silent Mode

In order to avoid any errors druing the installation of WebLogic in silent mode.You'll need to follow the setps

1- Download Sample file from Oracle documentation
2- change this file for example