facebook

How do I stop the JEE libraries from being deployed

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #313161 Reply

    Steven Fines
    Member

    How 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

    #313172 Reply

    support-swapna
    Moderator

    sfines,

    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.

    #313187 Reply

    Steven Fines
    Member

    Here’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.class

    when 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…

    #313259 Reply

    Brian Fernandes
    Moderator

    sfines,

    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.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How do I stop the JEE libraries from being deployed

You must be logged in to post in the forum log in