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 6254913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:16:05+00:00 2026-05-24T14:16:05+00:00

I got some old JSP web project at work that I am trying to

  • 0

I got some old JSP web project at work that I am trying to import into eclipse. My experience with java and eclipse is far from great.

In one of the jsp files I am having error:
The import javax.servlet.jsp.JspWriter cannot be resolved

The code:

<%@ page import="org.apache.axiom.om.OMAbstractFactory,
             org.apache.axiom.om.OMElement,
             org.apache.axiom.om.OMFactory,
             org.apache.axiom.om.OMNamespace,
             org.apache.axis2.AxisFault,
             org.apache.axis2.Constants,
             org.apache.axis2.addressing.EndpointReference,
             org.apache.axis2.client.Options,
             org.apache.axis2.client.ServiceClient,
             org.apache.axis2.context.ConfigurationContext,
             org.apache.axis2.context.ConfigurationContextFactory,
             javax.servlet.ServletContext,
             javax.servlet.http.HttpServletRequest,
             javax.servlet.http.HttpServletResponse,
             javax.servlet.jsp.JspWriter,                   <- Problem is HERE
             javax.xml.parsers.SAXParser,
             javax.xml.parsers.SAXParserFactory"
     session="false" %>

And, of course, on any other place where I have reference to JspWriter I get same error.

I looked at Java Build Path and I have following:
1) servlet-api.jar – C:\Program Files…
2) Ear Libraries
3) JRE System Library (jdk1.6.0_25)
4) Web App Libraries

I used to have one item for Apache Tomcat 6.0 library which was unbound so I removed it. I tried to add it but couldn’t. When I click Add Library > Server Runtime I get new window says: “Select a runtime to add to the classpath”, but there is nothing to select.

I have installed: Eclipse Java EE IDE for Web Developers, Apache Tomcat installed (6.0), latest version of Ant and Windows 7 64bit.

Any ideas?

Thanks.

  • 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-24T14:16:06+00:00Added an answer on May 24, 2026 at 2:16 pm

    The import javax.servlet.jsp.JspWriter cannot be resolved

    In case of Tomcat, it’s part of jsp-api.jar file. However, do not manually add this file to the buildpath like as you did for servlet-api.jar, that would not be the right way! It would make your webapp unportable to other target runtimes (read: servletcontainers). I.e. your webapp would be compatible with Tomcat 6.0 only, but not with other container makes/versions like Tomcat 7, Glassfish, JBoss AS, etc.


    I looked at Java Build Path and I have following:

    1) servlet-api.jar – C:\Program Files…

    Remove this one. It’ll only collide with any target runtime which you’re going to configure soon.


    I used to have one item for Apache Tomcat 6.0 library which was unbound so I removed it. I tried to add it but couldn’t. When I click Add Library > Server Runtime I get new window says: "Select a runtime to add to the classpath", but there is nothing to select.

    Go to Servers view in Eclipse. Rightclick it and choose New. Pick the appropriate servletcontainer make and version and walk through the wizard. Now you’ve a target runtime in Eclipse.

    Then, in the project’s properties, go to Targeted Runtimes and select the server in there. Nothing else needs to be done. Eclipse will take care of the remaining magic.

    See also:

    • How do I import the javax.servlet API in my Eclipse project?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got my hands on an old Microsoft J++ project that uses some old
I've got some old 3d models in a .DWB file format. The application that
Recently, in company we got some MSSQL database from some old project which we
We've got some old serial code which checks whether a serial port is available
I've got to do some significant development in a large, old, spaghetti-ridden ASP system.
I got some legacy code with that caption spread out as comment almost in
I got some legacy code that has this: <?PHP if(isset($_GET['pagina'])==homepage) { ?> HtmlCode1 <?php
I've got some (C#) code that relies on today's date to correctly calculate things
I've got an JSP tag that I would like to use in my JSF/Seam
I've got some old Excel VBA code where I want to run a task

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.