- This topic has 2 replies, 2 voices, and was last updated 18 years ago by sdunlop.
-
AuthorPosts
-
sdunlopMemberI’m playing around with the EAR deployment. And here is my situation.
I have multiple war files that use struts that i’ve created within MyEclipse that gets deployed as a single ear.
Each war file contains a number of supporting library files like the “commons libraries and struts.jar (along with a few others).
Do I have to have those libraries included within each war file?
I’ve tried to figure out how to get only one copy of the these supporting library files into the ear and can’t seem to figure it out. I’ve tried selecting the option under the EAR->Properties->MyEclipse-EAR-> and selecting both the “Jars exported from dependent Java projects” and “User library jars exported from dependent Java projects”, but that doesn’t seem to do anything.
Any thoughts? Thanks.
GregMemberThere is an advanced topic covered in the EAR quickstart that details how to add libraries/jars to your EAR and have them put on the included War’s classpaths.
http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/
Then go down to section 9 and it describes the process.
sdunlopMemberYeah, I’ve read that a number of times and I don’t feel it address (or maybe I’m missing something) what I’m looking to do.
Example. I have an ear project called TestEAR, that has two MyEclipse Struts enabled war projects called OneWAR and TwoWAR.
Both OneWAR and TwoWAR have the following libraries (placed in by MyEclipse enabling struts).
– struts.jar
-commons-beanutils.jar
-commons-loggin.jar
-jakarta-oro.jar
-commons-digester.jar
-commons-fileupload.jar
-commons-validator.jarI don’t like that I have these libraries in two war files (seems redundant to me).
So can i put them in common library?
-
AuthorPosts