Bill Milligan

Greenhorn
+ Follow
since Jan 20, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

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:

(root.ear)
- 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.)

Thanks!

- 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