- This topic has 3 replies, 2 voices, and was last updated 16 years, 10 months ago by Loyal Water.
-
AuthorPosts
-
md10024MemberHi,
I’m using MyEclipse 6, JSF1.2 with facelets and Tomcat 6. Because Tomcat 6 includes support for Servlet 2.5 it is necessary to exclude jsp-api.jar, servletapi-2.5.jar and el-api.jar from the deployment to Tomcat. However, it *is* necessary to include this libs on the class path for compiling.
My problem is that I can’t figure out how to include these libs in the classpath for compliling yet exclude them from the deployment.
Up to now, I have been using Ant for deployment to an external Tomcat container. Now with MyEclipse 6.0 I would like to take advantage of the embedded Tomcat container and avoid the ant deploy during development.
How do I exclude jars from deployment that are required in my classpath? Also, I notice that JSF.12 is not explicitly supported in MyEclipse6. What’s up with that?
TIA!
Mark
Loyal WaterMemberMark,
You can go to Windows > Prefs > MyEclipse > Java Enterprise Project > Web Project > Deployment and uncheck “Web Project Deployment should Include Jars on Web Project Build Path “
md10024MemberThanks for the quick response. But how would I then include all the additional other libraries on my build path that I want deployed?
How or where does one define “jars in web project’s user libraries”?
On a separate question, I see that my project properties->MyEclipse->Spring shows “Spring version: 1.2”, I want Spring 2.0, how do I change this?
Loyal WaterMemberHow or where does one define “jars in web project’s user libraries”?
You can right click on your project and go to Build Path > Add Libraries > User Library and follow the wizard to add a User Library to your project.
On a separate question, I see that my project properties->MyEclipse->Spring shows “Spring version: 1.2”, I want Spring 2.0, how do I change this?
You will have to create a new project from scratch. You cannot change this in an existing project.
-
AuthorPosts