Showing posts from March, 2010


mvn dependency:tree Maven tips


State of OSGi


org.apache.commons.lang.ObjectUtils 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

Project home

Java Math Expression Parser

Singular Systems JEP Docs Other solutions including ANTL and other open source

Browser testing

Selenium ThoughtWorks

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"> deploy/,file:/home/tcollinsworth/svn/someApp/someProj/target/blah </attribute> From here And here Web apps require changing profile.xml

Installing Oracle on Linux

HOTOs Versions HowTo Oracle 11g in XUbuntu

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: PATH=.:$PATH:/home/tcollinsworth/Oracle/instantclient_10_2 export LD_LIBRARY_PATH=/home/tcollinsworth/Oracle/instantclient_10_2 export TNS_ADMIN=~ gedit ~/tnsnames.ora Add the following editing as appropriate: YOUR_ALIAS_NAME = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = YOUR_SERVICE_NAME) (SERVER = DEDICATED) ) ) Reload the .bashrc with: . ~/.bashrc Connect to oracle with: >sqlplus user/pwd@your_alias_name Followed this blog


Uses custom classloader and bytecode manipulation for testing of static methods, constructors, final classes, etc. Suppress unwanted behaviors in parent classes, etc.

Sun Java System Directory Server

Uninstall procedure

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