Friday, 4 October 2013

unable to find the log4j / any jar. even it is in the java class path

If while running your server you find that it is unable to load any file or unable to find any class .  As a last resort add that jar file in WAS library 

Go to websphere variables and see

WAS_LIBS_DIR  ---->  ${WAS_INSTALL_ROOT}/lib   

go to this location and paste you jar file

Tuesday, 27 August 2013

How to read a property file in WAS server

Some times we need a common EAR file in the different server and place individual property file in server location.

Settings done:

Application servers > server1 > Process definition > Java Virtual Machine > Custom properties >

Name: ws.ext.dirs

Value: D:\props (property file folder location)

And application is working fine, so now we can go head with unique EAR file for all the ENV’s and placing “xyz.properties” as specific to ENV’s in override

folder, please find settings below:

Application servers > server1 > Process definition > Java Virtual Machine > Custom properties >

Name: ws.ext.dirs

Value: /apps/props