Thank you for your response.
The problem got resolved. Yes the class and referenced classes were in the
path. On debug I noticed it was finding the class but then throwing an error. I
had used 7-zip to delete the log4j.jar from the war. This must have corrupted
the file somehow. Once I created
deployment of the same ear file works in 4.0.3 but fails in 4.2.2
Getting a NoClassDefFoundError error when deploying war file embedded inside an
ear file.
The class that is not found is present in one of jars in WEBINF/lib directory
of the war file.
I can see the jar in
tmp\deploy\tmp4482