- This topic has 2 replies, 2 voices, and was last updated 18 years, 3 months ago by Javier.
-
AuthorPosts
-
JavierMemberI got an EAR project that includes 2 war projects. Both projects uses same verion of struts and other libraries so i want to package this libraries in one location only so i copy the jar files in the EAR/ directory and modify the Manifest file of each war. The solution works fine but when i try to do it with MyEclipse 5 the war files contains the Struts libraries in the Web-inf/lib directory even if i go to the MyEclipse/Web/Deployment options and disable all the checkboxes in the Library Deployment Policies. I try to put this jars like classpath, like user libraries but still copy the files into the lib directory. I made a simple test: Disable all the ckeckboxes in Preferences/MyEclipse/Web/Deployment, create a web project, export it like war and the problem still appear. Can you tell me what is wrong with my procedure?
Regards
Scott AndersonParticipantThe solution works fine but when i try to do it with MyEclipse 5 the war files contains the Struts libraries in the Web-inf/lib directory even if i go to the MyEclipse/Web/Deployment options and disable all the checkboxes in the Library Deployment Policies.
Sorry to hear you’re having a problem, but I think I can help sort it out. Deployment policies only affect jars that are not physically located in the WEB-INF/lib directory in the web project already. So, if any of the jars exist in a web project’s lib directory, they will be deployed no matter what the settings are.
The other issue might be that you’ve unset the deployment options at the workbench level (Preferences), but they’re being overridden at the project level (Properties). Details on where these settings are specifically is in Section 10 of the Working with Web Projects quickstart.
JavierMemberThanks a lot Scott. i take out the jars in a user library and erase all files from lib. Now the deployment process works fine!!!!.
Thanks!
-
AuthorPosts