This content has been marked as final.
Show 4 replies
-
1. Re: Struts + ClassLoading
jaikiran May 19, 2009 4:47 AM (in response to thanz)Fist, when we add struts.jar to the EAR the class-Loader doesnt find it.
Try placing the jars in EAR/lib folder. The jars in EAR/lib folder will be available to all components in the EAR. -
2. Re: Struts + ClassLoading
jaikiran May 19, 2009 4:47 AM (in response to thanz)So why does on Project find the Class in the Jar, and the other doesnt ?
Just a guess, maybe the other project uses the Classpath attribute MANIFEST.MF of the jar(s) to point to the struts jar? -
3. Re: Struts + ClassLoading
thanz May 19, 2009 6:02 AM (in response to thanz)Which Manifest.mf do you mean ? The one from the EAR ? They are both empty :
Manifest-Version: 1.0 Class-Path:
Well...i created an lib Folder in the EAR and put all jar's in it.
And now everything works in the new Project.
But i dont know why the old Project works when there all jar's are just in the root of the EAR and not in a lib-Folder ?
Anyone can explain this :)? -
4. Re: Struts + ClassLoading
jaikiran May 19, 2009 7:22 AM (in response to thanz)"thanz@gmx.at" wrote:
Which Manifest.mf do you mean ? The one from the EAR ?
I meant the MANIFEST.MF files in the jars within the EAR.