I have a ear project which has ejb,web and other util jars. while deploying to server, ejb jar is unable to refer to util jars. so NoClassDefFoundErrors are coming. If i copy util jars into server, then it is working fine. I am using MyEclipse 10 blue. Please give me suggestion on adding other util jars to ejb jar file. I already tried in adding for properties-->build path. and order and export i checked jar files. still of no use.. Please provide a suggestion
Akhilesh Trivedi wrote:Have you tried using Ant to build? On Ecilpse you may need to right click on the jar and chose -->BuildPath-->Add to build path so that it becomes available to the path.
I have tried it. But it didn't work. when i start server, throwing NoclassDefFoundError exception.
Joined: Jun 22, 2005
Did not work means?
Joined: Oct 14, 2010
Akhilesh Trivedi wrote:Did not work means?
kk..will explain clearly. I have a ear project which has log4j.jar file. In the ear project i am having ejb.jar,utils.jar,sample.web. I added log4j.jar from ear to ejb.jar build path. during compilation, it is ok. but during run-time , throwing NoClassDefFoundError.
seems like log4j.jar is deployed in concord.ear, ejb.jar is unable to refer to log4j.jar during run-time.