Wednesday, February 22, 2006

Using IBMJCE Outside of Websphere

In order to run unit tests involving encryption, I needed to compile my code with the same JCE providers available inside Websphere. The IBMJCE Java classes are located in [install_dir]\java\jre\lib\ext\ibmjceprovider.jar. However those classes have a dependency on References on the internet indicated that the Debug class was located in ibmpkcs.jar but I did not have such a file on my computer.

I found the Debug class in [install_dir]\java\jre\lib\security.jar. In order to find out which jar file contained the needed class, I modified the startserver.bat file by adding '-verbose:class' to the Java command line. Additionally, I installed the 4NT utility from which allowed me to redirect the console output to a file which I examined to find the following line:

  [Loaded from .....\security.jar]

Since the was the package I was interested in I unziped security.jar to see if it contained the Debug class. It did!

Tuesday, February 07, 2006

Selenium IDE Rocks!

I've been deploying applications to WebSphere using the Administrative Console. Updating a war file requires clicking through 11 pages, 10 of which I just accept the default values. So I downloaded the Selenium IDE and recorded the action. Then I replayed the script. In literally three minutes, I had a working script so that updating the war file is now just a one-click operation. I am so happy!