simple.jar won't be available in the application classpath. You'll have to move it to .ear/lib folder (create the lib folder if it isn't there) so that jars within that folder are available to the entire .ear application.
Another option(cleaner) is to put the jar in your %JBOSS_HOME%/server/<profile>/lib folder to allow all apps access to the same version of the jar.
Saves you headaches down the line
but in this case the scope is the hole server (as you mentioned) and this might not what you want because of different versions in different EARs.
Also you are not able to hotdeploy this during development time.
Thank you. That was the problem.
Adding defaultLibBundleDir to the maven-ear-plugin configuration did the trick.
I am having same problem eventhough I have used <defaultLibBundleDir>lib</defaultLibBundleDir> but unable to resolve my issue . It is saying that my-ejb.jar not found so please help out.
Suraj, please create a separate topic with all the relevant details including the JBoss AS version, the Java vendor and version and the application packaging and the entire exception stacktrace.