I have a ear where in war A depends on war B for few classes.....and i use Eclipse ide for setting up the ear..
when i deploy it ..the war B loads properly but ,,War A gives error,,and the exception is classnot found...its not able to find the classes referenced from war b.
WAR files must be self contained and cannot depend on each other. So your design is flawed. Just because it works in Eclipse does not make it up to spec. Change the structure of your code to put the common classes in a JAR in WEB-INF/lib for each WAR.