Sunday, October 25, 2015

Unable to start Node Manager due to Port/Address bind exception:

ISSUE:
 

Unable to start Node Manager Process due to Port/Address bind exception.

ERROR OBSERVED:


weblogic.nodemanager.server.NMServer main SEVERE: Fatal error in node manager server java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365) at java.net.ServerSocket.bind(ServerSocket.java:319) at java.net.ServerSocket.<init>(ServerSocket.java:185) at java.net.ServerSocket.<init>(ServerSocket.java:141) at weblogic.nodemanager.server.Listener.init(Listener.java:56) at weblogic.nodemanager.server.NMServer.start(NMServer.java:206) at weblogic.nodemanager.server.NMServer.main(NMServer.java:377) at weblogic.NodeManager.main(NodeManager.java:31)

CAUSE:


Port configured for Node Manager is already in use. 
This is because another application is using the port configured for Node Manager, so that when Node Manager tries to bind to the port, it is not able to start and fails with above error.
 

SOLUTION:


Please follow below instructions to change the port number of your Node Manager configuration: 

Step 1) Go to below mentioned location
$WLS_HOME/common/nodemanager 

Step 2) Take backup of nodemanager.properties files
$cp nodemanager.properties nodemanager.properties_BKP 

Step 3) Change ListenPort=XXXX parameter to an available port.
netstat -an | grep Portnumber
Eg: netstat -an | grep 5557
-->If no output then port is free and avaliable for use. 

Step 4) Save it. 

Step 5) Start the Node manager Process as below:
$WL_HOME/server/bin
$nohup ./startNodeManager.sh & 

Step 6) We will then have to configure the new Node Manager port (Set in Step 3) in the Machines section of the WebLogic Server console for it to be known to the Administration Server.


Note :
If you don't find nodemanager.properties in that location, that means you haven't started nodemanager atleast once and hence nodemanager.properties file is not generated. Hence start nodemanager, using the script located in  $WL_HOME/server/bin/startNodemanager.sh

Unable to start server from console due to missing Domain Name entry

ISSUE :


Unable to start any Weblogic Managed server associated with domain (base_domain) from Console.

ERROR OBSERVED:


weblogic.nodemanager.common.ConfigException: The domain 'base_domain' at 'u01/app/middleware/user_projects/domains/base_domain' was not registered in the nodemanager.domains file . Please register the domain in the nodemanager.domains file.
at weblogic.nodemanager.server.NMServer.getDomainManager(NMServer.java:259)
at weblogic.nodemanager.server.Handler.handleDomain(Handler.java:227)
at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:109)
at weblogic.nodemanager.server.Handler.run(Handler.java:71)
at java.lang.Thread.run(Unknown Source)


REASON:


Domain Name entry ( base_domain in our case ) entry was missing from nodemanager.domains file.

SOLUTION:


Step 1) Stop Node Manager Process by find PID and then kill it.

ps -ef | grep -v grep | grep -i weblogic.NodeManager
kill -9 <NM_PID>

Step 2) Take backup of nodemanager.domains file from below location:
$WL_HOME/common/nodemanager 
$cp nodemanager.domains nodemanager.domains_ORG

Step 3) Add domain name in nodemanager.domains file as below
base_domain=u01/app/middleware/user_projects/domains/base_domain
Save the file 

Step 4) Start Node manager
$WL_HOME/server/bin
$nohup ./startNodeManager.sh &
 

Saturday, October 24, 2015

Installation and Configuration of Oracle Inbound Refinery (IBR) server in Windows Env

In this post we shall see installation/configuration of IBR server in Windows Environment.

Step 1) Install Java "java1.7.0_25"

Step 2) Install Weblogic Server 10.3.6

Install Oracle Inbound Refinery:


Create a .bat file with below content
<<
Create bat file as follow
C:\Softwares\ofm_wcc_generic_11.1.1.8.0_disk1_1of2\Disk1\setup.exe -jreLoc C:\Progra~1\Java\jdk1.7.0_25
>>

Step 1) Open this .bat file

Step 2) On Welcome Screen click Next.

Step 3) Select  radio button Skip Software Updates and click Next.

Step 4) Make sure it passes all per-requisites check. Once done click Next



Step 5) Specify middleware location and oracle home directory and click Next
Oracle Middleware Home= $MW_HOME
Oracle Home Directory= Oracle_ECM1(by default)



Step 6) Select Weblogic Server and click Next.



Step 7) Click Finish Once installation completes 100%.

Configure Oracle Inbound Refinery:


Start with Configuration of IBR /creation of domain 

Step 1) Click Start->Program->oracle_ecm directory->start configuration

Step 2) Click radio button Create a new WebLogic domain and click Next



Step 3) Select below three check boxes and click Next



Note : Installing/configuring only Oracle Inbound Refinery (IBR) doesn't need database or creation of schema.

Step 4) Click Next



Step 5) Select Domain Mode and JDK Home and click Next



Step 6) Select Administration Server and Managed Server ,Cluster and Machines for configuring.



Step 7) Enter  Admin Server Name and Port Number to be used by Admin Server.



Note : Make sure that port is free.

Step 8) Click Next.



Note : Default Port number for IBR is 16250. In case you want to use different port then enter new Port number.(Make sure port is free)

Step 9) Click Next and Finish configuration of IBR Server. 

Step 10) Start Admin Server and IBR Server as below:

$DOMAIN_HOME/bin
$./startWebLogic.cmd

$DOMAIN_HOME/bin
$./startManageWebLogic.cmd IBR_server1

Note : Please set environment variables before starting Admin/IBR Server
Set PATH=C:\Windows\System32

Step 11) Check below URL

1)http://Hostname:7001/console
2)http://Hostname:7001/em
3)http://Hostname:16250/ibr

 In case of any issues then comment it or mail me @devanggandhi11@gmail.com

Other Posts