Ok, I have confirmed with MuyEclipse 5, this problem still exists. Here is a breakdown of the problem.
1 EAR project (contains 1 EJB project)
1 EJB Project (depends upon 1 Java Project)
1 Java project (this java project also contains another jar /lib/log4j.jar)
We have tried all deployment options for EARs and EJBs and we still can not get MyEclipse to package this scenario correctly. Our expectation is that since the Java project contains a JAR file on its build path, which also happens to be contained within the Java project, that the log4j.jar file would also be packaged up within the EAR file. Here is a snippet of the .classpath file from the EJB project and the Java projects.
EJB:
<classpath>
<classpathentry kind=”src” path=”src”/>
<classpathentry kind=”con” path=”org.eclipse.jdt.launching.JRE_CONTAINER”/>
<classpathentry kind=”con” path=”com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER”/>
<classpathentry combineaccessrules=”false” kind=”src” path=”/ajavaproject”/>
<classpathentry kind=”lib” path=”/ajavaproject/lib/log4j.jar”/>
<classpathentry kind=”output” path=”classes”/>
</classpath>
Java:
<classpath>
<classpathentry kind=”src” path=”src”/>
<classpathentry kind=”con” path=”org.eclipse.jdt.launching.JRE_CONTAINER”/>
<classpathentry kind=”lib” path=”lib/log4j.jar”/>
<classpathentry kind=”output” path=”bin”/>
</classpath>