Excellent articles. Unfortunately, they didn�t solve my problem. Maybe, I was not able to process the information correctly. Anyway, the problem is still there.
See:
App.ear
|- AppEJB.jar
| |- EJBs
| |- /manifest/manifest.mf with Class-Path
| pointing to fwk.jar in WEB-INF dir
|- AppWeb.war
| |- index.jsp
| |- /WEB-INF
| |- /classes/ApplicationResources.properties
| |- /lib/fwk.jar
| |- /lib/struts.jar
If I don�t put the Class-Path information in the
manifest file, I�m not able to deploy the AppEJB.jar (ClassNotFound exception).
Now that I got everything deployed I�m having another issue.
If in my
JSP I try to use ClassA from fwk.jar that inherits from ClassStrs from struts.jar, I get a "java.lang.NoClassDefFoundError: org/apache/.../ClassStrs"
I think it has something to do with different contexts.
If I put both fwk.jar and struts.jar in the root of the EAR file. I can compile and deploy the EJBs, I don�t get the NoClassDefFoundError, but I can�t use the struts� resource bundle. Even if I put just the fwk.jar in the root of the
EAR file (pointing to struts.jar inside the WEB-INF/lib) I have this same problem.
Could somebody help me.