Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3240060
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:02:32+00:00 2026-05-17T18:02:32+00:00

I used ant when building my web app from eclipse to deploy to Tomcat

  • 0

I used ant when building my web app from eclipse to deploy to Tomcat 6 and referred to servlet-api.jar and el-api.jar within the Tomcat 6 release tree rather than pulling them in to my deployed library folder.

I am trying to deploy to Glassfish v3. I’ve pulled the jars from the http://www.java2s.com website.

  1. Was this the right place to get them?
  2. Did I need to do it at all? I searched within Glassfish and the jars weren’t there
  3. If I didn’t need to do it at all, is there another course of action to follow to ensure the same functionality is available?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:02:32+00:00Added an answer on May 17, 2026 at 6:02 pm

    Seeing this question and the other questions you posted I have the feeling that you’re doing things completely wrong. Here’s just an answer which should get it all straight.

    • You should never have separate copies of servletcontainer-specific libraries wandering around in the classpath.

    • You should never put copies of servletcontainer-specific libraries in webapplication’s WEB-INF/lib.

    • In an IDE like Eclipse, you should never add servletcontainer-specific libraries separately in project’s build path.

    • In a nut: just do not touch servletcontainer-specific libraries at all. Don’t even think of downloading them separately. That’s plain recipe for trouble. Having separate libraries of different servletcontainer makes will only result in collisions in classpath. The servletcontainer should be downloaded and treated as its whole own.

    • In Eclipse, when integrating a servletcontainer (Tomcat or Glassfish), just add it in the Servers view.

    • To associate a dynamic web project with a specific servletcontainer (server) so that you can compile servlets and so on, you need to select it in the Targeted Rumtimes section of the project properties. Then everything will go well automagically, thanks to Eclipse smartness. That’s also the place to change the servletcontainer implementation whenever necessary. When you’re creating a brand new dynamic web project, you can just choose the desired servletcontainer implementation from the servers dropdown in the wizard.

    When you want to create a WAR, simply rightclick the dynamic web project, choose Export and then WAR file. No need for a separate ant task or so.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From my small amount of experience, I've only used Ant as a build tool.
I have used the jarbundler ant task to create an OSX (10.6.4) XXX.app for
I'm used to work with properties files, for example from Ant. Where I can
I used to work with eclipse for nearly all the languages I need. I'm
We're developing a web application with Rational Application Developer 7.5 (based on Eclipse 3.4)
I use Eclipse with ant scripts, and Eclipse works well with the default JRE
Sorry, I'm not terribly experienced with Ant. I like the eclipse Export ant buildfile
I'm using Antenna to build, pack and obfuscate a j2me app. Building and packing
Findbugs reports this: findbugs: [findbugs] Executing findbugs from ant task [findbugs] Running FindBugs... [findbugs]
I'm working on a blackberry project using eclipse and bb-ant tools. I've created a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.