Showing posts from March, 2010





public boolean deepEquals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

ThisClass other = (ThisClass) o;
if(!ObjectUtils.equals(this.getFoo(), other.getFoo())) {
return false;

if(!ObjectUtils.equals(this.getBar(), other.getBar())) {
return false;


return true;

Also need to cascade into collections. Pass along a result object to track status and differences for reporting. Don't fail fast because reporting differences is extremely useful for debugging.

Java Open Single Sign-On JOSSO

Java Math Expression Parser

Browser testing

Eclipse buttons don't work fix

export GDK_NATIVE_WINDOWS=1 before starting Eclipse ...

HowTo change JBoss ear/war deploy directory

If your IDE and/or maven builds and ear/war in /home/tcollinsworth/svn/someApp/someProj/target/blah

In $JBOSS_HOME/server/ServerName/conf/jboss-service.xml add:

<attribute name="URLs">

From here

And here

Web apps require changing profile.xml

Installing Oracle on Linux

HowTo install SQL*PLUS on Ubuntu 9.10

Download the Instant Client Package Basic and SQL*PLUS zips from here.

Create a directory and unzip them both into that directory, they unzip into the same sub-dir

The sql*plus .rpm files don't download properly, they just show partial data in firefox.
Besides you would need alien to install the .rpm files since ubuntu used .deb.

gedit ~/.bashrc

Add the following editing paths as appropriate:

export LD_LIBRARY_PATH=/home/tcollinsworth/Oracle/instantclient_10_2
export TNS_ADMIN=~

gedit ~/tnsnames.ora

Add the following editing as appropriate:


Reload the .bashrc with:

. ~/.bashrc

Connect to oracle with:

>sqlplus user/pwd@your_alias_name

Followed this blog


Sun Java System Directory Server

Error on Ubuntu

error while loading shared libraries: cannot open shared object file: No such file or directory

There is lots of old info out there about fixing this that points to missing pages. Also there is lots of solutions that just don't work with latest Ubuntu 9.10 karmic koala.

Simplest solution:

Download and install it from here and select install with deb

Download it from here and select install with deb
bin/nsperl: error while loading shared libraries: cannot open shared object file: No such file or directory

sudo ln -s /usr/lib/ /usr/lib/

Issues found trying to install Sun One LDAP 5.2 on Ubuntu 9.10 Karkic Koala