Friday, 10 February 2017

Couldn’t able to start Node Manager because of invalid java directory.

========================================================================
Applies to:
Weblogic Server: 10.3.6 and later
========================================================================
Problem Summary:
Couldn’t able to start Node Manager because of missing java directory.

Error:
C:\weblogic1036\Middleware\Oracle_Home\user_projects\domains\base_domain\bin>startNodeManager.cmd
NODEMGR_HOME is already set to C:\WEBLOG~1\MIDDLE~1\ORACLE~1\USER_P~1\domains\BASE_D~1\NODEMA~1
The JDK wasn't found in directory C:\oracle1221\Java\jdk1.8.0_66.
Please edit this script so that the JAVA_HOME
variable points to the location of your JDK.

C:\weblogic1036\Middleware\Oracle_Home\user_projects\domains\base_domain\bin>

========================================================================
Root Cause:
JAVA_HOME variable was set to invalid location C:\oracle1221\Java\jdk1.8.0_66 which is invalid location.
========================================================================
How to verify:
Use echo command to verify it.
C:\WINDOWS\system32>echo %JAVA_HOME%
C:\oracle1221\Java\jdk1.8.0_66
========================================================================
Resolution:
1. Go to Control Panel => System and Security => System => Advance System Settings => Environment Variables
2. Locate JAVA_HOME variable and change it’s value form invalid to valid location.
In our case from C:\oracle1221\Java\jdk1.8.0_66 to C:\oracle12211\Java\jdk1.8.0_66
3. Verify JAVA_HOME
C:\WINDOWS\system32>echo %JAVA_HOME%
C:\oracle12211\Java\jdk1.8.0_66
4. Start Node Manager,
Domain name mappings:
base_domain -> C:\weblogic1036\Middleware\Oracle_Home\user_projects\domains\base_domain

<Feb 11, 2017 1:16:36 PM IST> <INFO> <WebLogic Server 12.1.3.0.0  Wed May 21 18:53:34 PDT 2014 1604337 >
<Feb 11, 2017 1:16:36 PM IST> <INFO> <Secure socket listener started on port 5556, host localhost/127.0.0.1>

No comments:

Post a Comment