- This topic has 3 replies, 3 voices, and was last updated 13 years, 11 months ago by Brian Fernandes.
-
AuthorPosts
-
Steven FinesMemberHow do I tell myeclipse not to deploy the libraries included in JEE 5 Library to the internal sandbox Tomcat? Currently, when I use the default deploy it just copies them over, even if they’re not included in the WEB-INF/lib.
Thanks,
Steve Fines
support-swapnaModeratorsfines,
Is there any specific reason why you do not want to deploy the JEE 5 libraries?
You can go to Window > Preferences > MyEclipse > Java Enterprise Project > Web Project. Go to the deployment tab.You can modify the Library Deployment Policies in this window accordingly.
Do let us know if you have any issues.
Steven FinesMemberHere’s Why:
INFO: validateJarFile(C:\Documents and Settings\dv43568\workspace\.metadata\.me_tcat\webapps\ESAPITest\WEB-INF\lib\servlet-api-2.4.jar) – jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classwhen this happens, it blocks a deployment of servlet filters and so forth (according to the Tomcat 6.0.X FAQ)
I want to deploy all of the jars from user libraries Except the JEE 1.5 jars- but every build type (packaged or exploded) includes these jars…
Brian FernandesModeratorsfines,
From the error you pasted (with a reference to servlet-api-2.4.jar in your lib folder), it appears that you are trying to deploy a Java EE 4 application in a project which is set up for Java EE 5?
As far as the internal tomcat and Java EE 5 containers are concerned, we do not deploy all the JARs, but a subset – which does not include the javax.servlet.Servlet class. The JARs deployed are jstl-1.2.jar, jsf-api.jar and jsf-impl.jar.
Have you been able to successfully deploy to any other serve? Could you tell me how you verified that offending JARs are being deployed?
As a quick fix, I would recommend creating a new Web Project with the J2EE spec set to 1.4, copy your resources into that project and deploy with that.
Please let me know how it goes.
-
AuthorPosts