2009-07-16

How to configure Glassbox 2.0 with WebSphere Portal 6.0

This installation is done in an WebSphere Portal Cell. e.g cluster.

I this example, I choosed the following custom directories to install library JAR files

GLASSBOX_BIN_DIR=D:\IBM\WebSphere\AppServer\profiles\wp_profile\config\bin
GLASSBOX_LIB_DIR=D:\IBM\WebSphere\AppServer\profiles\wp_profile\config\lib
GLASSBOX_HOME=D:\IBM\WebSphere\AppServer\profiles\wp_profile\config\lib\glassbox


1. Set the following settings in setupCmdLine.bat(sh)

\\[servername]\d$\IBM\WebSphere\AppServer\profiles\wp_profile\bin\setupCmdLine.bat

:: ** Glassbox unique **
set GLASSBOX_BIN_DIR=D:\IBM\WebSphere\AppServer\profiles\wp_profile\config\bin
set GLASSBOX_LIB_DIR=D:\IBM\WebSphere\AppServer\profiles\wp_profile\config\lib
set GLASSBOX_HOME=D:\IBM\WebSphere\AppServer\profiles\wp_profile\config\lib\glassbox


2. Update JAVA_OPTIONS section in setupCmdLine.bat(sh) to look like this

set JAVA_OPTIONS=%JAVA_OPTIONS% "-Xbootclasspath/p:%GLASSBOX_LIB_DIR%\java14Adapter.jar" "-Xbootclasspath/a:%GLASSBOX_LIB_DIR%\createJavaAdapter.jar;%GLASSBOX_LIB_DIR%\aspectj14Adapter.jar;%GLASSBOX_LIB_DIR%\aspectjweaver.jar;%GLASSBOX_LIB_DIR%\glassboxMonitor.jar;%GLASSBOX_LIB_DIR%\aspectjrt.jar" -Daspectwerkz.classloader.preprocessor=org.aspectj.ext.ltw13.ClassPreProcessorAdapter "-Dglassbox.install.dir=%GLASSBOX_HOME%"

3. Set the following WebSphere Variables under: Environment -> WebSphere Variables
(Scope is up to you, I prefer Cell-scope for global stuff)

GLASSBOX_BIN_DIR=${USER_INSTALL_ROOT}/config/bin
GLASSBOX_LIB_DIR=${USER_INSTALL_ROOT}/config/lib
GLASSBOX_HOME=${USER_INSTALL_ROOT}/config/lib/glassbox

Update Generic Java Arguments under: Application servers -> WebSphere_Portal -> Process Definition -> Java Virtual Machine
-Xbootclasspath/p:${GLASSBOX_LIB_DIR}/java14Adapter.jar -Xbootclasspath/a:${GLASSBOX_LIB_DIR}/createJavaAdapter.jar;${GLASSBOX_LIB_DIR}/aspectj14Adapter.jar;${GLASSBOX_LIB_DIR}/aspectjweaver.jar;${GLASSBOX_LIB_DIR}/glassboxMonitor.jar;${GLASSBOX_LIB_DIR}/aspectjrt.jar -Daspectwerkz.classloader.preprocessor=org.aspectj.ext.ltw13.ClassPreProcessorAdapter -Dglassbox.install.dir=${GLASSBOX_HOME}

4. Once the monitored node/server is running you can install your WAR onto any JVM.

Deploy onto any node and the you can access glassbox using the following url:
http://[servername]:[webtransport-port]/glassbox/



1 comment:

Rahul Sudhakar Pawar said...

Thanks for the steps to configure Glassbox with WebShpere Application Server (WAS). I tried them but not quite able to make it. The server could not start & it failed with errors - "java.lang.NoClassDefFoundError: com.ibm.ws.management.configservice.TypeRegistry" or "java.lang.ClassNotFoundException: com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl" even though the JARs containing these classes are in the 'plugins' dir of WAS.

The only way I could get my server up again is by editing the server.xml file and giving bootClasspath="C:\software\IBM\WID7_WTE\runtimes\bi_v7\plugins" in the jvmEntries tag.

Maybe I'll try these steps again and then get back with results.