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

Monday, October 3, 2011

Install and configrue Web Server 1.1 Plug-Ins with Oracle WebLogic Server 11g Release 1 (10.3.3)

1- Download Apache Software

http://httpd.apache.org

2-Install Apache op Linux

cd /usr/local/src

# gzip -d httpd-2.2.9.tar.gz

# tar xvf httpd-2.2.9.tar

cd httpd-2.2.9

# ./configure --help

3- In the following example, Apache will be compiled and installed to the default location

/usr/local/apache2 with the DSO capability. Using the –enable-so option, you can load modules

to Apache at runtime via the Dynamic Shared Object (DSO) mechanism, rather than requiring a recompilation.

4-# ./configure --enable-so

5- # make

6- # make install

Note: During the ./configure, you may get the following error message.


7- # ./configure --enable-so

configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details.

configure failed for srclib/aprInstall the gcc and the dependent modules as shown below and try ./configure again to fix the above issue.


# rpm -ivh gcc-4.1.2-14.el5.i386.rpm glibc-devel-2.5-18.i386.rpm glibc-headers-2.5-18.i38

6.rpm kernel-headers-2.6.18-53.el5.i386.rpm

Preparing... ########################################### [100%]

1:kernel-headers ########################################### [ 25%]

2:glibc-headers ########################################### [ 50%]

3:glibc-devel ########################################### [ 75%]

4:gcc ########################################### [100%]



Start Apache and verify installation


8- # cd /usr/local/apache2/bin

9- # ./apachectl start

Go to http://local-host, which should display the default message “It Works!”

10- Dowload WLSPlugin from http://Metalink.oracle.com

11- unzip WLSPlugin1.1-64bitApache2.2-linux64-x86_64.zip

for example /BEA_HOME/WLSPlugin1 or anyother directory

12- make sure the mod_wl_220.so library in you Plg-in lib directory

13 - Verify that mod_so.c is enabled by executing the following command:

#APACHE_HOME\bin\apachectl -l . the result must be like that

/apachectl -l

Compiled in modules:

core.c

mod_authn_file.c

mod_authn_default.c

mod_authz_host.c

mod_authz_groupfile.c

mod_authz_user.c

mod_authz_default.c

mod_auth_basic.c

mod_include.c

mod_filter.c

mod_log_config.c

mod_env.c

mod_setenvif.c

mod_version.c

prefork.c

http_core.c

mod_mime.c

mod_status.c

mod_autoindex.c

mod_asis.c

mod_cgi.c

mod_negotiation.c

mod_dir.c

mod_actions.c

mod_userdir.c

mod_alias.c

mod_so.c

This command lists all enabled modules. If mod_so.c is not listed, you must rebuild your Apache HTTP Server,
making sure that the following options are configured:
..

--enable-module=so

--enable-rule=SHARED_CORE

Configuring the apache plug-in

14- Make copy of httpd.conf file

15- Add the http.conf file

# vi http.conf

- Add the following lines to the http.conf file

LoadModule weblogic_module /mnt/orc6/Oracle/Middleware/WLSPlugin1.1/lib/mod_wl.so




WebLogicHost (your weblogic host name)
WebLogicCluster  (your host name:port number, host name:port number)
Ex.
WebLogicCLuster myhost:7003,myhost:7004

Debug ALL

DebugConfigInfo ON

WLLogFile /mnt/orc6/Oracle/Middleware/WLSPlugin1.1/wl-proxy.log


   ex

SetHandler weblogic-handler

Using virtual host in place of Load Moduel

We can add the followin lines if we want to use virtual host in place of load moduel




SetHandler weblogic-handler

WebLogicCluster Hostname:7003,HostName:7004






SetHandler weblogic-handler

WebLogicHost  YOUR HOST NAME
WebLogicPort 7002



16- Ensure that the ${PLUGIN_HOME}/lib is included in the LD_LIBRARY_PATH

$ export LD_LIBRARY_PATH=/home/myhome/weblogic-plugin-1.1/lib

other options include copying the 'lib' contents to APACHE_HOME/lib or

editing the APACHE_HOME/bin/apachectl to update the LD_LIBRARY_PATH
18- Start the apache server

$ ${APACHE_HOME}/bin/apachectl start


19- Start Admin Server and Managed Servers

17- Check your Application URL
example: http://Myhost/mywebapp









Thursday, September 29, 2011

Weblogic Tools

D:\oracle\standalone-wl\wlserver_10.3\common\bin>config_builder.cmd
wls:/offline> createDomain ('D:/Middleware/wlserver_10.3/common/templates/domains/basic_Domain10.3.4.0.jar','D:/Middleware/user_project s/domains/hal','weblogic','PASSWORD')
wls:/offline>