My Status: Planning for the Future...

Clearing Cache for WebLogic instance

Posted by cemetery on Sep 22, 2012 in Others

Hey smart WLA, Here I am with one more interesting story of WebLogic Administration “Clearing Cache”. This is most often in development environments, where you need to clear the cache for new releases for Web-tier changes, XML loadings, JDBC connection changes, JMS issues etc.,.

Some of the great developers think like this “I can change minor things directly in the jsp files to test stuff”

What is actually WebLogic Cache?
Basically all the web-tier related files (.jsp .class, JSPCompiled files etc.,) get stored in ./wlnotdelete/app_yourapplicaiton directory. This is treated as cache whenever there is restart of a WebLogic instance happen then the WebLogic server will look-up for last serviced object status stored in the cache to service for any pending requests. Usually, when your EJB Classes need sessions, JMS object requires persistance, your web-tier may contain static contents then Cache will be used by WebLogic Application Server instance.

Why we need to remove Cache?
Whenever your application is accessed for the first time that fresh deployment of a new version, WebLogic server lookup in this directory, if there are older objects persists that will be conflict with new code objects. This is where the need of removal of cache arises.

Where there is a need of new version deployment we might need to clear the cache when the changes to the new version is not reflected. In the old version WebLogic 8.1 below we used to remove .wldonotdelete folder. In new version of WebLogic 9.x onwards removal of cache means deleting each server instance’s tmp folder contains cache, stage folders or you can simply remove tmp folder too provided there should not be configuration changes happen to the server.

Generally for WebLogic 9.x and higher versions
WIN: C:\bea\user_projects\domains\yourdomain\servers\yourserver\tmp
UNIX: /bea/user_projects/domains/yourdomain/servers/yourserver/tmp

you can use the following commands to clear the cache:
WIN: rd C:\bea\user_projects\domains\yourdomain\servers\yourserver\tmp \s
UNIX: rm -rf /bea/user_projects/domains/yourdomain/servers\yourserver/tmp

Here I am removing all the subdirectories and files in the the given directory.

When to do this?
After Stopping the WebLogic server instance you can go for removal of cache.
Mostly, Spring framework users, struts framework users have this no changes reflected issue for their web applications.

Alternative solution is you can use ‘stage’ mode set to ‘no_stage’ deployment. when undeployed an applicaiton then WebLogic server itself removes the cache objects.




Joomla 1.5 vs PHP 5.3.8

Posted by cemetery on Sep 9, 2012 in Others

Đang ngồi làm website cho khách thì gặp cái lỗi này, search 1 lúc thì ra.

Chẳng biết save vào đâu cho hợp lý, chợt nhớ blog muối dưa muối cà lâu lắm rồi không update. Phang tạm vào đây vậy.

Lỗi không hiển thị menu list trong Admin của Joomla 1.5 khi sử dụng PHP 5.3.8

Mở /libraries/joomla/html/html/menu.php

Tìm dòng

function treerecurse( $id, $indent, $list, &$children, $maxlevel=9999, $level=0, $type=1 )

Sửa lại thành

function treerecurse( $id, $indent, $list, $children, $maxlevel=9999, $level=0, $type=1 )

(xóa mỗi cái & đi mà giải quyết được ối việc :| )

— update 10/09/2012

Tìm trong php.ini dòng

error_reporting = E_ALL | E_STRICT

đổi thành

error_reporting = E_ALL & ~E_NOTICE

Sau đó vào configuration.php, đổi giá trị của $error_reporting từ default về 6135

Copyright © 2021 Bùi Hoài Nam – cemetery All rights reserved. Theme by Laptop Geek.