I am somehow getting a feeling that the structure in which I'm packaging the EAR is having problem.
In the EJB jar file, I've included all EJB classes, DD and all the other helper classes used by EJBs.
In war file, I've included all the jsps, servlets, DD and helper classes being used by jsps and servlets.
Now, in the EAR file, if I just keep the jar, war and META-INF/application.xml, it throws exception for BasicConfigurator.class which is part of log4j.jar. This is inspite of the fact that log4j.jar file is already present in WEB-INF\lib.
If I include this log4j.jar file in APP-INF\lib directory, then it is able to find that class and then it gives me an exception that not able to find one of the .propertis file.
Now, if I copy this properties file under APP-INF\classes folder, it is able to find the properties file but then gives me NoClassDefFoundError for that class which is being loaded through Class.forName.