Tom Janofsky Consulting
Welcome.
Welcome to the home of Tom Janofsky Consulting. I provide services in enterprise architecture, design, and implementation.
I specialize in Java based development and education, particularly using J2EE.
Wednesday, July 07, 2004 A helpful tip
When you're delaing with ClassCastExceptions or ClassNotFoundExceptions in J2EE code, it's usually because your class is getting loaded from the wrong place. To figure out where it's coming from:
System.out.println("someObject.getClass()." +
"getProtectionDomain().getCodeSource().getLocation() = " +
someObject.getClass().
getProtectionDomain().
getCodeSource().
getLocation());