Win a copy of Learning Java by Building Android Games this week in the Android forum!

Bill Milligan

+ Follow
since Jan 20, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bill Milligan

I've quite a few hours trying to migrate an existing websphere app to Jboss4.0.3. I've made exactly no progress.

The structure of the ear, for better or for worse, is this:

- warfile
- ejb jar, which also includes common code
- several dozen common jars

The problem comes when Tomcat tries to load a servlet from the warfile. NoClassDefFound errors abound! It cannot find common classes from the ejb jar or any other common jar. I've tried munging with the tomcat classloading settings Java2ClassLoadingCompliance and UseJBossWebLoader to no avail. I've also tried adding the jars into the application.xml (they are not present in the websphere app).

Restructuring the app is out of the question; the idea is for me to be able to run the app in jboss for local machine development purposes, but then do serious integration testing and deployment in websphere, our corporate standard. I can rewrite config files with impunity, however. Anybody have any ideas?

(Yes, I've read several articles about this, but they go into much greater detail about sharing definitions between applications, etc; I only care about this one ear.)


- Bill
12 years ago
If you're having issues with this (I assume you are, from the context), it may behoove you to double check your product.equals() methods. .equals() and .hashcode() are generally overlooked, even by very experienced developers, and frequently don't work the way you believe them to.
14 years ago