IndexThis document explains how to setup beSee in your installed WebLogic Server. The beSee configuration proposed here is very basic and is mainly for illustration purpose. DownloadDownload the beSee version you want from sourceforge server farm: InstallationDirectory structure
We assume you downloaded beSee and unpacked the downloaded file in
$BESEE_HOME
directory. For Windows users, this directory should be referenced as
%BESEE_HOME%
$BESEE_HOME runtime jakarta-regexp-1.2.jar log4j-1.2.6.jar conf log4j.properties log4j.sample.properties besee.properties besee.sample.properties ... lib jadvise.jar javassist.jar WebLogic integration
Modify your weblogic startup script to add the following:
beSee configuration
The beSee configuration file is the one you specified with the -Dbesee.conf option.
# the following can work on windows too # it assumes /cvs_02 is on the same drive (C:, D: ...) # as your BEA WebLogic Server installation besee.runtime=/cvs_02/besee_sf/besee/runtime besee.log=/cvs_02/besee_sf/besee/conf/log4j.sample.properties besee.keep= ...
Open $BESEE_HOME/conf/log4j.sample.properties which is referenced by the
besee.log
configuration directive and customize as needed
Try to start your WebLogic server using the modified script.
Starting WebLogic Server... <Loading configuration C:\bea\user_projects\mydomain\.\config.xml> <Security initializing using realm myrealm.> <Starting WebLogic Admin Server "myserver" for domain "mydomain"> <beSee> <DEBUG> configuring runtime LibLoader with \cvs_02\besee_sf\besee\runtime <beSee> <DEBUG> runtime: C:\cvs_02\besee_sf\besee\runtime\log4j-1.2.6.jar <beSee> <DEBUG> runtime: C:\cvs_02\besee_sf\besee\runtime\jakarta-regexp-1.2.jar <beSee> <DEBUG> log4j bootstrapped with /cvs_02/besee_sf/besee/conf/log4j.properties <beSee> <DEBUG> chaining D:com.gnilux.besee.preprocessor.AllMethodsPreProcessor <beSee> <DEBUG> chaining E:com.gnilux.besee.preprocessor.AllMethodsPreProcessor <beSee> <DEBUG> sequence is [2]: D > E Pre-processor com.gnilux.besee.preprocessor.ChainingPreProcessor loaded and initialized ... Next stepsFrom the previous section you learned how to install beSee and check that your server is still running. Now you need to create a besee.properties and probably a log4j.properties file to suit your needs. Note that the log4j.properties file is never reloaded, to avoid having instrumented class using old log4j configuration not referenced any more.
You can refer to samples besee.xxx.properties file in the $BESEE_HOME/conf/ directory of the distribution.
TroubleshootingIf you encounter startup problems after this stage, you shoudl first double-check the configuration as this document explains it. beSee comes with a default "do nothing except stdout log" class preprocessor. Just add the besee- version .jar in the WebLogic classpath and start WebLogic with the following java options: -Dweblogic.classloader.preprocessor=com.gnilux.besee.preprocessor.BasicPreProcessor Starting WebLogic Server... <Loading configuration C:\bea\user_projects\mydomain\.\config.xml> <Security initializing using realm myrealm.> <Starting WebLogic Admin Server "myserver" for domain "mydomain"> <beSee> <DEBUG> BasicPreProcessor.initialize() Pre-processor com.gnilux.besee.preprocessor.BasicPreProcessor loaded and initialized <beSee> <DEBUG> BasicPreProcessor.preProcess(weblogic.rmi.internal.dgc.DGCServerImpl_WLSkel,...) <beSee> <DEBUG> BasicPreProcessor.preProcess(weblogic.jndi.internal.RootNamingNode_WLSkel,...) .... |