My Oracle Support Banner

WLS 6.1 SP04 - weblogic.refresh not working when issued from the directory not containing the file to be refreshed (Doc ID 775839.1)

Last updated on JUNE 05, 2024

Applies to:

Oracle WebLogic Server - Version 6.1 and later
Information in this document applies to any platform.
Information in this document applies to any platform

Goal

Description :
weblogic.refresh not working when issued from the directory not  containing the file to be refreshed i.e using the
command java weblogic.refresh -url t3://localhost:<PORT> -username system -password weblogic -application ref -component
ref applications\DefaultWebApp\index.jsp 
The utility comes back saying that the application has been refreshed but the pages dont show the changes. The copy of
the application kept in the .wlnotdelete folder does not get updated. 

Enviroment
WLS Server 6.1 SP04 
Windows 2000 Advanced server
JDK 1.3.1
MS SQL Server 2000
Note:The error was replicated on Solaris and Windows 

Workaround :
 In case the weblogic.refresh command are used in the manner mentioed below it works fine and the pages are refreshed 

Scenario 1
=====
current dir : \<path\to>\config\<domain-name>\applications\DefaultWebApp
command : java weblogic.refresh -url t3://<server-name>:<PORT> -username weblogic -password password -application
DefaultWebApp -component DefaultWebApp index.html
result : works

Scenario 2
current dir : /<path/to>/<domain-name>/
command : java weblogic.refresh -url t3://<host>:<PORT2> -username <username> -password <password> -application DefaultWebApp
-component DefaultWebApp -root
/<path/to>/config/<domain-name>/<domain-name>/applications/DefaultWebApp index.html
result : WORKS

The command does not refresh in the following cases 

Scenario 3
=====
current dir : /<path/to>/config/<domain-name>
command : java weblogic.refresh -url t3://<HOST>:<PORT2> -username <username> -password <password> -application DefaultWebApp
-component DefaultWebApp applications/DefaultWebApp/index.html
result : FAILS

Scenario 4
=====
current dir : /<path/to>/config/<domain-name>/<domain-name>
command : java weblogic.refresh -url t3://<HOST>:<PORT2> -username <username> -password <password> -application DefaultWebApp
-component DefaultWebApp
/<path/to>/config/<domain-name>/applications/DefaultWebApp/index.html
result : FAILS

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.