Forms EAR Redeployment with txkrun.pl -script=CfgOC4JApp Failed
During OPMN startup the oaforms deployment failed and found the note suggesting the redeployment of the forms as follows
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /u01/app/oracle/visr12/inst/apps/visr12_appsnode_new/logs/appl/rgf/TXK/txkCfgOC4JApp_Fri_Aug_3_15_44_56_2012.log
Program : /u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl started @ Fri Aug 3 15:44:56 2012
*** Log File = /u01/app/oracle/visr12/inst/apps/visr12_appsnode_new/logs/appl/rgf/TXK/txkCfgOC4JApp_Fri_Aug_3_15_44_56_2012.log
Enter Application name for re-deployment ? forms
Enter Oc4j Instance password for re-deployment ?
Run Autoconfig <Yes/No> ? No
*****************************************************
Required values for starting OC4J instance "forms":
====================================================
s_formsstatus = enabled
s_forms_nprocs = 1 (value should be greater than 0)
Existing values from the context file:
======================================
s_formsstatus = enabled
s_forms_nprocs = 1
----------------------------------------------
*** Values for context variables are VALID ***
----------------------------------------------
*****************************************************
Stopping all OPMN processes.
OPMN stopped.
Errors encountered running /u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl
*******FATAL ERROR*******
PROGRAM : /u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl(/u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/bin/txkrun.pl)
TIME : Fri Aug 3 15:45:11 2012
FUNCTION: TXK::Process::run [ Level 3 ]
MESSAGES:
Command error: <rc> = 32512, <command> = /u01/app/oracle/visr12/apps/tech_st/10.1.3/opmn/bin/opmnctl start
STACK TRACE shows following...
TXK::Error::abort('TXK::Error','HASH(0x9971160)') called at /u01/app/oracle/visr12/apps/apps_st/appl/au/12.0.0/perl/TXK/Common.pm line 299
TXK::Common::doError('TXK::Process=HASH(0xa8f2998)','Command error: <rc> = 32512, <command> = /u01/app/oracle/visr...','undef') called at /u01/app/oracle/visr12/apps/apps_st/appl/au/12.0.0/perl/TXK/Common.pm line 314
TXK::Common::setError('TXK::Process=HASH(0xa8f2998)','Command error: <rc> = 32512, <command> = /u01/app/oracle/visr...') called at /u01/app/oracle/visr12/apps/apps_st/appl/au/12.0.0/perl/TXK/Process.pm line 449
TXK::Process::run('TXK::Process=HASH(0xa8f2998)','HASH(0x9eb33f0)') called at /u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl line 1587
TXK::RunScript::execOPMNControl('HASH(0xa17e4ac)') called at /u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl line 599
require /u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl called at /u01/app/oracle/visr12/apps/apps_st/appl/au/12.0.0/perl/TXK/RunScript.pm line 105
TXK::RunScript::require('TXK::RunScript','/u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/patch/115...') called at /u01/app/oracle/visr12/apps/apps_st/appl/au/12.0.0/perl/TXK/Script.pm line 177
eval {...} called at /u01/app/oracle/visr12/apps/apps_st/appl/au/12.0.0/perl/TXK/Script.pm line 177
TXK::Script::run('TXK::Script=HASH(0xa260a00)','/u01/app/oracle/visr12/inst/apps/visr12_appsnode_new/logs/app...','/u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/patch/115...') called at /u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/bin/txkrun.pl line 174
Workaround :
This happens due to the patch mismatch or ambiguity in txkCfgOC4JApp.pl in Perl script
1. Backup file $FND_TOP/patch/115/bin/txkCfgOC4JApp.pl .
[oracle@appsnode_new bin]$ cp $FND_TOP/patch/115/bin/txkCfgOC4JApp.pl $FND_TOP/patch/115/bin/txkCfgOC4JApp.pl.bk
2. Replace the following line as follows :
$proc ->run ( { command => { text => "$oh/opmn/bin/opmnctl",
To
$proc ->run ( { command => { text => "/<BASE_PATH>/<SID>/inst/apps/<SID>_<hostname>/admin/scripts/adopmnctl.sh",
i.e.
As per in my env..
$proc ->run ( { command => { text => "/u01/app/oracle/visr12/inst/apps/visr12_appsnode_new/admin/scripts/adopmnctl.sh",
3. Rerun Rerun command
[oracle@appsnode_new bin]$ $FND_TOP/bin/txkrun.pl -script=CfgOC4JApp
[oracle@appsnode_new bin]$ $FND_TOP/bin/txkrun.pl -script=CfgOC4JApp
*** ALL THE FOLLOWING FILES ARE REQUIRED FOR RESOLVING RUNTIME ERRORS
*** Log File = /u01/app/oracle/visr12/inst/apps/visr12_appsnode_new/logs/appl/rgf/TXK/txkCfgOC4JApp_Fri_Aug_3_16_08_01_2012.log
Program : /u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl started @ Fri Aug 3 16:08:01 2012
*** Log File = /u01/app/oracle/visr12/inst/apps/visr12_appsnode_new/logs/appl/rgf/TXK/txkCfgOC4JApp_Fri_Aug_3_16_08_01_2012.log
Enter Application name for re-deployment ? forms
Enter Oc4j Instance password for re-deployment ?
Run Autoconfig <Yes/No> ? No
*****************************************************
Required values for starting OC4J instance "forms":
====================================================
s_formsstatus = enabled
s_forms_nprocs = 1 (value should be greater than 0)
Existing values from the context file:
======================================
s_formsstatus = enabled
s_forms_nprocs = 1
----------------------------------------------
** Values for context variables are VALID ***
*****************************************************
Stopping all OPMN processes.
OPMN stopped.
OPMN started.
Deplolying Application : "forms" onto OC4J instance: "forms"
Application deployed successfully.
Stopping and starting OC4J instances.
Started OC4J instances.
Binding webApp : "forms" with webmodule : "formsweb" for OC4J instance: "forms"
Web application bound successfully.
Stopping OPMN.
OPMN stopped.
Program : /u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl completed @ Fri Aug 3 16:08:41 2012
End of /u01/app/oracle/visr12/apps/apps_st/appl/fnd/12.0.0/patch/115/bin/txkCfgOC4JApp.pl : No Errors encountered
[oracle@appsnode_new bin]$ adautocfg.sh
Enter the APPS user password:
The log file for this session is located at: /u01/app/oracle/visr12/inst/apps/visr12_appsnode_new/admin/log/08031615/adconfig.log
AutoConfig is configuring the Applications environment...
AutoConfig will consider the custom templates if present.
Using CONFIG_HOME location : /u01/app/oracle/visr12/inst/apps/visr12_appsnode_new
Classpath : /u01/app/oracle/visr12/apps/apps_st/comn/java/lib/appsborg2.zip:/u01/app/oracle/visr12/apps/apps_st/comn/java/classes
Using Context file : /u01/app/oracle/visr12/inst/apps/visr12_appsnode_new/appl/admin/visr12_appsnode_new.xml
Context Value Management will now update the Context file.
Since Auto Config ran successfully this the opmn will start fine too....
Since Auto Config ran successfully this the opmn will start fine too....
No comments:
Post a Comment