Error in compiling servlet..

hi all,
i had gone through the previous people who posted about the import.javax.httpServlet is not found... I am also encounting this error.. I do not understand what to change and include in the classpath.. i had installed JDK 1.3.1_01 and Apache TomCat under windows.
i had written a simple servlet and i had put it in the directory name web-inf/classes under tomcat. What should i need to do next??
Thanks for your help.

Hi,
Set servlet.jar file in CLASSPATH. You would not
encounter this problem again.
Regards,
Sudhir

Similar Messages

  • Getting error in compiling servlet

    I am trying to compile servlet and I am getting error "cannot resolve symble : class HttpServlet"
    there are 6 error almost same not resolve servlet or http. I already add jdk1.3.1 and tomcat in my path I don't understand why I am getting this error please help me.

    You need to add servlet.jar into the classpath. You can find servlet.jar in tomcat_home\lib dir.

  • Error while compiling Servlet

    Hello everyone,
    I am quite new to the Java Technology.
    I have this simple servlet program which gives me an error when I try to compile it.
    The error is as follows:
    TestServlet.java:1: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    TestServlet.java:2: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    Is this anything to do with the classpath or path settings?
    Any help would be highly appreciated.
    Thanks in advance,

    I have this file called servlet.jar which has some
    .class files.And this file is in the classpath.Just open it with WInZip or some ZIP viewing utility and check if the required classes are present.

  • Error when compiling servlet

    I have this error and don't understand exactly what it means. Any advice on where to look to research it? I tried typing in the exception itself and even wrapper, but am not getting anything that explains to me why it happened and how to fix it.
    [code error]
    javax.servlet.ServletException: Wrapper cannot find servlet class com.kpotter.servlet.EmployeeServlet or a class it depends on
    [code error]
    package com.kpotter.servlets;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.kpotter.beans.EmployeeProfile;
    public class EmployeeServlet extends HttpServlet {
         public void doGet(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
              //Set the Content-Type header
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              EmployeeProfile profile = new EmployeeProfile();
              * Write out the HTML page.
              out.println("<HTML>");
              out.println("<HEAD><TITLE>Employee</TITLE></HEAD>");
              out.println("<BODY>");
              out.println(profile.getfirstName());
                    out.println("</BODY></HTML>");
                 out.close();
         // End of the HTTP doGet() method.
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
                   doGet(req, res);
    }

    HTML PAGE
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <head>
    <title>My Template</title>
    <script language="JavaScript">
    <!--
    if (document.images) {
      image1on = new Image();
      image1on.src = 'images/b1off.gif';
      image2on = new Image();
      image2on.src = 'images/b2off.gif';
      image3on = new Image();
      image3on.src = 'images/b3off.gif';
      image4on = new Image();
      image4on.src = 'images/b4off.gif';
      image5on = new Image();
      image5on.src = 'images/b5off.gif';
      image1off = new Image();
      image1off.src = 'images/b1.gif';
      image2off = new Image();
      image2off.src = 'images/b2.gif';
      image3off = new Image();
      image3off.src = 'images/b3.gif';
      image4off = new Image();
      image4off.src = 'images/b4.gif';
      image5off = new Image();
      image5off.src = 'images/b5.gif';
    function changeImages() {
      if (document.images) {
        for (var i=0; i<changeImages.arguments.length; i+=2) {
          document[changeImages.arguments].src = eval(changeImages.arguments[i+1] + ".src");
    // -->
    </script>
    </head>
    <body bgcolor="#6F7A9E" text="#000000" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr valign="top"><!-- row 1 -->
    <td width="10%">
    <table border="0" cellpadding="0" cellspacing="0" width="159">
    <tr valign="top"><!-- row 1 -->
    <td colspan="2"><img name="topleft" src="images/topleft.gif" width="159" height="225" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 2 -->
    <td><img name="image1" src="images/b1.gif" width="131" height="34" border="0"></td>
    <td rowspan="6" background="images/side.gif"><img name="side" src="images/side.gif" width="28" height="230" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 3 -->
    <td><img name="image2" src="images/b2.gif" width="131" height="32" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 4 -->
    <td><img name="image3" src="images/b3.gif" width="131" height="32" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 5 -->
    <td><img name="image4" src="images/b4.gif" width="131" height="34" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 6 -->
    <td><img name="image5" src="images/b5.gif" width="131" height="35" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 7 -->
    <td><img name="ibot" src="images/ibot.gif" width="131" height="63" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 8 -->
    <td colspan="2" height="300" background="images/leftbg.gif" valign="top"><img name="leftbg" src="images/leftbg.gif" width="159" height="10" border="0"></td>
    </tr>
    </table>
    </td>
    <td width="90%">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr valign="top"><!-- row 1 -->
    <td background="images/top.gif"><img name="top" src="images/top.gif" width="14" height="85" border="0"></td>
    </tr>
    <tr valign="top"><!-- row 2 -->
    <form name="frmKathy" method="post" action="/kpotterApp/servlet/EmployeeServlet">
    <table width="75%" border="1" cellspacing="3" cellpadding="1">
    <tr>
         <td><img name="top" src="images/javalogo.jpg" width="100%" height="90" border="1"></td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtFirstName">First Name</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtLastName">Last Name</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtEmail1">Work Email Address</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtEmail2">Personal Email Address**</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtWorkPhone">Work Phone</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtCellPhone">Cell Phone</td>
    </tr>
    <tr>
    <td>�<input type="text" name="txtCellPhone2">Cell Phone2**</td>
    </tr>
    <tr>
    <td>�
    <input type="text" name="txtAddress">
    Address</td>
    </tr>
    <tr>
    <td>�
    <input type="text" name="txtCity">
    City</td>
    </tr>
    <tr>
    <td>�
    <select name="txtStates">
    <OPTION> Alabama</OPTION>
    <OPTION> Alaska</OPTION>
    <OPTION> Arizona</OPTION>
    <OPTION> Arkansas</OPTION>
    <OPTION> California</OPTION>
    <OPTION> Colorado</OPTION>
    <OPTION> Connecticut</OPTION>
    <OPTION> Delaware</OPTION>
    <OPTION> Florida</OPTION>
    <OPTION> Georgia</OPTION>
    <OPTION> Hawaii</OPTION>
    <OPTION> Idaho</OPTION>
    <OPTION> Illinois</OPTION>
    <OPTION> Indiana</OPTION>
    <OPTION> Iowa</OPTION>
    <OPTION> Kansas</OPTION>
    <OPTION> Kentucky</OPTION>
    <OPTION> Louisiana</OPTION>
    <OPTION> Maine</OPTION>
    <OPTION> Maryland</OPTION>
    <OPTION> Massachusetts</OPTION>
    <OPTION> Michigan</OPTION>
    <OPTION> Minnesota</OPTION>
    <OPTION> Mississippi</OPTION>
    <OPTION> Missouri</OPTION>
    <OPTION> Montana</OPTION>
    <OPTION> Nebraska<OPTION>
    <OPTION> Nevada</OPTION>
    <OPTION> New Hampshire</OPTION>
    <OPTION> New Jersey</OPTION>
    <OPTION> New Mexico</OPTION>
    <OPTION> New York</OPTION>
    <OPTION> North Carolina</OPTION>
    <OPTION> North Dakota</OPTION>
    <OPTION> Ohio</OPTION>
    <OPTION> Oklahoma</OPTION>
    <OPTION> Oregon</OPTION>
    <OPTION> Pennsylvania</OPTION>
    <OPTION> Rhode Island</OPTION>
    <OPTION> South Carolina</OPTION>
    <OPTION> South Dakota</OPTION>
    <OPTION> Tennessee</OPTION>
    <OPTION> Texas</OPTION>
    <OPTION> Utah</OPTION>
    <OPTION> Vermont</OPTION>
    <OPTION> Virginia</OPTION>
    <OPTION> Washington</OPTION>
    <OPTION> West Virginia</OPTION>
    <OPTION> Wisconsin</OPTION>
    <OPTION> Wyoming</OPTION>
    </select>
    State </td>
    </tr>
    <tr>
    <td>�
    <input type="text" name="txtZipCode">
    Zip</td>
    </tr>
    <tr>
    <td>�
    <select name="txtDepartment" >
    <OPTION>Inventory</OPTION>
    <OPTION>Stockroom</OPTION>
    <OPTION>Clothing</OPTION>
    <OPTION>Outdoor</OPTION>
    <OPTION>Garden</OPTION>
    </select>
    Department </td>
    </tr>
    <tr>
    <td>�
    <select name="txtTitle">
    <OPTION>President</OPTION>
    <OPTION>Vice President</OPTION>
    <OPTION>Secretary</OPTION>
    <OPTION>Laborer</OPTION>
    <OPTION>Stock Person</OPTION>
    </select>
    Title </td>
    </tr>
    <tr>
    <td>�Pay scale
    <input type="radio" name="rdoOpt1" value="payscale1">
    $10-$20</td>
    </tr>
    <tr>
    <td>�Pay scale
    <input type="radio" name="rdoOpt1" value="payscale2">
    $30-$40</td>
    </tr>
    <tr>
    <td>�Pay scale
    <input type="radio" name="rdoOpt1" value="payscale3">
    $50-$60</td>
    </tr>
    <tr>
         <td>�Pay scale
    <input type="radio" name="rdoOpt1" value="payscale4">
    $70-$80</td>
    </tr>
    <tr>
    <td>�Pay scale
    <input type="radio" name="rdoOpt1" value="payscale5">
    $90-$100</td>
    </tr>
    <tr><td>�Hobbies**
         <SELECT NAME="selHobbies" MULTIPLE>
         <OPTION> Music</OPTION>
         <OPTION> Playing Pool</OPTION>
         <OPTION> Hiking</OPTION>
         <OPTION> Tennis</OPTION>
         <OPTION> Basketball</OPTION>
         </SELECT>
         </td>
         </tr>
         <tr>
              <td>�Swag Order List**
         <SELECT NAME="selSwagList" MULTIPLE>
    <option value="$39.95">Great Advancement $39.95</option>
    <option value="$139.95">Paid Vacations $139.95</option>
    <option value="$69.95">Seniority Counts $69.95</option>
    <option value="$139.95">Medical $139.95</option>
    <option value="$149.95">Dental $149.95</option>
    </SELECT>
         </td>
         </tr>
    </table>
         <p>All ** are optional, all other text boxes are required</p>
         <input type="submit" name = "submit" value="Submit">
         <input type="Reset" name = "reset" value = "reset">
    </form>
    </tr>
    </table>
         </td>
    </tr>
    </table>
    </body>
    </html>
    Isn't that the correct path? I named it: kpotterApp/servlet/EmployeeServlet in my html form. Am I understanding it incorrectly?

  • Compile error Identifying Javax.servlet

    Hi,
    I installed JDK 1.6 and Tomcat server.
    But when I use this code it shows the error
    import javax.servlet;It says package not available.
    How can I resolve this error.?
    Can anybody help me who are already using Tomcat and JSP

    sabre150 wrote:
    georgemc wrote:
    Because you've done something wrong. The compiler won't just ignore a dependency, as a jokeAs I posted earlier, the obvious problem is that one cannot just import a package, one has to import classes from that package (using * if one wants to import ALL classes in the package).I assumed he'd made a typo in his post there. Trying to import like he's actually posted, the compiler would moan about not finding the symbol servlet, rather than moan about a missing package
    Irrelevant, either way, since he's clearly been kidnapped by those aliens again

  • Error: Invalid element 'servlet' in content of 'web-app'

    Hi,
    I m working on a project that includes JSPs, whenever I wanna add JSP to my project it shows following compilation error:
    Invalid element 'servlet' in content of 'web-app', expected elements '[error-page, taglib, resource-env-ref, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref, ejb-local-ref]'
    I have thoroughly checked the web.xml. It is perfectly alright. It is as follows:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>myServlet</servlet-name>
    <servlet-class>com.project.MainServlet</servlet-class>
    <init-param>
    Long postings are being truncated to ~1 kB at this time.

    The Complete web.xml is as follows:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>montana</servlet-name>
    <servlet-class>com.masstech.montana.boundary.uii.MainServlet</servlet-class>
    <init-param>
    <param-name>db</param-name>
    <param-value>MontanaDS</param-value>
    </init-param>
    <init-param>
    <param-name>user</param-name>
    <param-value>MS</param-value>
    </init-param>
    <init-param>
    <param-name>password</param-name>
    <param-value>MS</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-n[i]Long postings are being truncated to ~1 kB at this time.

  • Problem in compiling servlets

    Hi
    I have j2sdk1.4.0 and i am using J2ee application server.My problem is while compiling i get error as "javax.servlet" package not found.Can anybody suggest me how to give the classpath for successful compilation.
    regrds
    Vaijayanthi

    hi vaiju
    basically it gets struck while finding as well loading the appropriate library files when there is a request for servlet.. tats where it gave the error of javax.servlet is missing..
    all servlet and jsp related files (class files) reside in this javax.servlet package.. its there javax.servlet jar or simply servlet.jar or even you can use the j2ee.jar which the superset of all of these..
    you can any one of the following 2 things:
    (1) you can either set the classpath of your pc to point to or include the location where it contains any of these .jar files
    (2) you can put the reqd lib files in the container's (web/app server's) location which it internally maintains for searching while loading/running the applications...
    here you have two options
    (a) either you can include the jar files with the individual applications (your applications WEB-INF/lib folder, which you can find inside the <TOMCAT_HOME>/webapps/ YOUR_APP_ROOT/WEB-INF/lib folder)
    (b) you can put the jar files in the common place of the container in case of being required by several applications (in case of tomcat, you can put in <TOMCAT_HOME>/common/lib folder).
    Dont forget to mention this in the build.xml file in case if you use ANT tool to build your application. you can set the <property> for the classpath.
    Hope this helps...
    Good luck to your journey in Servlets....

  • Problem in compiling servlet class - using Tomcat

    Hi,
    I have a servlet pgm that I'm trying to compile.I using Tomcat application server.I have my servlet class in D:\servlet_wrk\project1\src
    and my deployment descriptor in D:\servlet_wrk\project1\etc
    my CLASSPATH var is set to C:\Sun\AppServer\jdk\bin
    and
    my PATH var is set to C:\Sun\AppServer\bin.
    When I compile my servlet class Ch1Servlet.java in the command line from the directory
    D:\servlet_wrk\project1 using the command
    javac -classpath D:\applications\tomcat-5.5.12\common\lib\servlet-api.jar -d classes src/Ch1Servlet.java,
    it says error:cannot read: src/Ch1Servlet.java
    Can somebody help me to solve this problem and help me to compile my servlet class.
    Thanks.

    Thanks...as u said I tried putting dir & found that
    my file was saved as Ch1Servlet.java.txt instead for
    Ch1Servlet.java......So that was a problem.Now I'm
    able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
    But on compiling I'm getting the following error
    package java.servlet.* does not exist
    package java.servlet.http.* does not exist
    package java.io.* does not exist
    Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation.

  • Not Able to compile Servlet from ?

    Hi All,
    I am not able to compile Servlet from my package:
    1) I Have set the CLASSPATH Variable using below line in System Variables:
    C:\CC4\prog\jakarta-tomcat-4.1.30\common\lib\servlet.jar
    2) Also Set the CATALINA_HOME with value
    C:\CC4\prog\jakarta-tomcat-4.1.30
    as per above setting servlet should be compiled but still i m getting error message:
    1) C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac ListenerTest
    er.java
    ListenerTester.java:17: cannot resolve symbol
    symbol : class Dog
    location: class com.example.ListenerTester
    Dog dog = (Dog) getServletContext().getAttribute("dog");
    ^
    ListenerTester.java:17: cannot resolve symbol
    symbol : class Dog
    location: class com.example.ListenerTester
    Dog dog = (Dog) getServletContext().getAttribute("dog");
    ^
    2 errors
    2) Error while compiling other file:
    C:\CC4\prog\jakarta-tomcat-4.1.30\project\classes\com\example>javac MyServletCon
    textListener.java
    MyServletContextListener.java:12: cannot resolve symbol
    symbol : class Dog
    location: class com.example.MyServletContextListener
    Dog d = new Dog(dogBreed);
    ^
    MyServletContextListener.java:12: cannot resolve symbol
    symbol : class Dog
    location: class com.example.MyServletContextListener
    Dog d = new Dog(dogBreed);
    ^
    2 errors
    So what could be the posible solution here :
    do reply !!!
    please
    Thanks
    prabhat

    I have added servlet.jar in the classpath. But the program is not compiling.The error message says that it can not find classes like ServletConfig, ServletException, Cookie etc. Please help.

  • Error:    package javax.servlet.http does not exist

    Hi all,
    How do I import javax.servlet?
    package com.example.web;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class BeerSelect extends HttpServlet {
      public void doPost(HttpServletRequest request,
                         HttpServletResponse response)
                         throws IOException, ServletException {
        response.setContentType("text/html");
        PrintWriter out = response.getWrite();
        out.println ("Beer Selection Advide<br>");
        String c = request.getParameter("color");
        out.println ("<br>Got beer color " + c);
    }What does this error mean? The error message:
    Compiling 1 source file to C:\Program Files\Apache Software Foundation\MyProjects\J2EE\build\classes
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:3:
    package javax.servlet does not exist
    import javax.servlet.*;
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:4:
    package javax.servlet.http does not exist
    import javax.servlet.http.*;
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:7:
    cannot find symbol
    symbol: class HttpServlet
    public class BeerSelect extends HttpServlet {
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:8:
    cannot find symbol
    symbol  : class HttpServletRequest
    location: class com.example.web.BeerSelect
      public void doPost(HttpServletRequest request,
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:9:
    cannot find symbol
    symbol  : class HttpServletResponse
    location: class com.example.web.BeerSelect
                         HttpServletResponse response)
    C:\Program Files\Apache Software Foundation\MyProjects\J2EE\src\com\example\web\BeerSelect.java:10:
    cannot find symbol
    symbol  : class ServletException
    location: class com.example.web.BeerSelect
                         throws IOException, ServletException {
    6 errors
    BUILD FAILED (total time: 0 seconds)Thank you.

    Hi,
    The file servlet-api.jar / servlet.jar is not available in your classpath.
    To compile an Servlet you need the jar file to be in classpath.
    The jar file can be found in your webserver / application server lib folder.
    Regards,
    Zack

  • NWDI - Runtime error while compiling JSPs (PAR DC)

    Hello
    I am creating a PAR DC that needs to use some in house developed
    ValueObjects (accessed through a J2EE server library).
    Though my developed JSPDynPage is able to access the ValueObjects, when I try to use it in a JSP, I get a runtime compilation error.
    According to my understanding, setting the PrivateSharingReference helps the controller (jspdynpage) find the classes it needs at runtime,
    But the JSP Compiler does not have access to those classes.
    Can anyone suggest a solution that does not include copying jar files
    manually?
    I have an open CSN about this, but no answer there yet...
    <a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smp_custmsg/main.do?event=LOAD&smpsrv=h">CSN 0120025231 0001708061 2005</a>

    <a href="https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smp_custmsg/main.do?event=LOAD&smpsrv=h">updated link to CSN 0120025231 0001708061 2005</a>
    full stack trace:
    Exception ID:10:40_27/12/05_0011_2189050
    [EXCEPTION]
    com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Resource
    Component : pcd:portal_content/zachrefs/com.checkpoint.ReferencingIview
    Component class : com.cp.test.references.ReferencingIview
    User : Administrator
                at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:444)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Caused by: com.sapportals.portal.prt.component.PortalComponentException: PortalComponentException
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:127)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                ... 38 more
    Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                ... 43 more
    >>> JSPCompiler >>> error  [email protected]a27
    [EXCEPTION]
    com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    >>> JSPCompiler >>> ERROR in Compiling :JSPFileInfo :29823520
    JSP File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparpageletReferencingIview.jsp
    Class Name: sapportalsjspReferencingIview
    Java File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparworkpagelet\_sapportalsjsp_ReferencingIview.java
    Package Name : pagelet
    Class File : D:usrsap AKJC00j2eeclusterserver0appssap.comirjservlet_jspirj
    ootWEB-INFportalportalappsappl.test2.runtimereferencingparworkpagelet\_sapportalsjsp_ReferencingIview.class
    Is out dated : false [email protected]a27
    [EXCEPTION]
    com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: Error in executing a process for compilation, D:/usr/sap/ZAK/JC00/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/appl.test2.runtimereferencingpar/work/pagelet/_sapportalsjsp_referencingiview.java:18: package com.cp.test2.references.vo does not exist
    import com.cp.test2.references.vo.IMyValueObject;
                                      ^
    1 error
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.launchCompilerProcess(J2eeCompiler_6_30.java:562)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compileExternal(J2eeCompiler_6_30.java:370)
                at com.sapportals.portal.prt.servlets_jsp.server.compiler.impl.J2eeCompiler_6_30.compile(J2eeCompiler_6_30.java:672)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPParser.parse(JSPParser.java:2143)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.compile(JSPCompiler.java:76)
                at com.sapportals.portal.prt.servlets_jsp.server.jsp.JSPCompiler.run(JSPCompiler.java:122)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.compileJSP(JSPComponentItem.java:279)
                at com.sapportals.portal.prt.core.broker.JSPComponentItem.getComponentInstance(JSPComponentItem.java:129)
                at com.sapportals.portal.prt.core.broker.PortalComponentItemFacade.service(PortalComponentItemFacade.java:355)
                at com.sapportals.portal.prt.core.broker.PortalComponentItem.service(PortalComponentItem.java:934)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:435)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:527)
                at com.sapportals.portal.prt.component.AbstractComponentResponse.include(AbstractComponentResponse.java:89)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:232)
                at com.sapportals.portal.htmlb.page.JSPDynPage.doOutput(JSPDynPage.java:76)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
                at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)

  • I can't compile servlets

    Please ignore my previous Thread.
    Where do you get the nessecary libaries to compile servlets, and what directory of the JSDK1.4.0/ directory do you put them in (Im using Win98se)

    File To Compile:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class HelloClientServlet extends HttpServlet
         protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
         res.setContentType("text/html");
         PrintWriter out = res.getWriter();
              out.println("<HTML><HEAD><TITLE>Hello Client!</TITLE>"+
         "</HEAD><BODY>Hello Client!</BODY></HTML>");
              out.close();
         public String getServletInfo()
              return "HelloClientServlet 1.0 by Stefan Zeiger";
    Error Messages:
    C:\ServletDevelopment\HelloClientServlet.java:2: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    C:\ServletDevelopment\HelloClientServlet.java:3: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    C:\ServletDevelopment\HelloClientServlet.java:4: cannot resolve symbol
    symbol : class HttpServlet
    location: class HelloClientServlet
    public class HelloClientServlet extends HttpServlet
    ^
    C:\ServletDevelopment\HelloClientServlet.java:6: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class HelloClientServlet
         protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
    ^
    C:\ServletDevelopment\HelloClientServlet.java:6: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class HelloClientServlet
         protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
    ^
    C:\ServletDevelopment\HelloClientServlet.java:6: cannot resolve symbol
    symbol : class ServletException
    location: class HelloClientServlet
         protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
    ^
    6 errors
    Tool completed with exit code 1

  • 9iAS javac is running well but also want to compile Servlets

    Dears!
    I have installed Oracle 9iAS on Windows NT4.I want to develop servlet & JSP
    using Oracle 9iAS.
    I have tried compiling my servlet in Command Prompt after setting up the
    PATH for the JSDK & JDK shipped with 9iAS but i got the following error:
    Package javax.servlet not found in import.
    import javax.servlet.*;
    ^
    Supperclass HttpServlet of class (my class) not found.
    public class (my class) extends HttpServlet.
    ^
    The home of my 9iAS is as,
    e:\9ias_home & i found the JDK & JSDK folders as,
    e:\9ias _home\Apache\Jdk
    e:\9ias _home\Apache\Jsdk respectively.
    Similarly when i tried to compile the servlets(given in 9iAS) i got the
    same above error.(But Java's Application programs are running OK! and not
    Servlet & JSP etc!)
    I think that this problem is because of environmental variables etc.
    but i have set the paths but did not succeeded.i have set the path of
    JDK & JSDK using (Controll panel->System->) environment tab as
    .;e:\9ias_home\apache\jdk;e:\9ias_home\apache\jdk\bin
    ;e:\9ias_home\apache\jdk\lib\tools.jar;e:\9ias_home\apache\jsdk
    ;e:\9ias_home\apache\jsdk\bin;e:\9ias_home\apache\jsdk\lib\jsdk.jar
    .. it is very important and your help can makes a great.
    Many thanks!
    [email protected]
    null

    To set up Tomcat, here's what I'd do.
    1) Remove j2ee.jar from C:\JDK1.3\jre\lib\ext
    That will cause more headaches than you can imagine.
    2) Add servlet.jar to your classpath. Servlet.jar is located in lib under your tomcat directory. ( so, something like C:\jakarta-tomcat\lib\servlet.jar )
    3) Make sure that you have your JAVA_HOME environment variable set to C:\JDK1.3. If this is not set up correctly then you will get the error: sun/tools/javac/Main not found...
    Hope that helps.
    Anne

  • How to compile servlet in tomcat

    hi,i have wrote the servlet java file, and then i have saved that
    inside webapp/webinf/class and then i tried to compile
    that it shows error during compilation like javax.servlet.*;
    package does not exit like that.

    hi,i have wrote the servlet java file, and then i
    have saved that
    inside webapp/webinf/class and then i tried to
    compile
    that it shows error during compilation like
    javax.servlet.*;
    package does not exit like that.
    hi,i have wrote the servlet java file, and then i
    have saved that
    inside webapp/webinf/class and then i tried to
    compile
    that it shows error during compilation like
    javax.servlet.*;
    package does not exit like that.check out whether you have written this line while listing packages
    import javax.servlet.*;
    The error you are getting during compilation clearly mentions that the server is unable to find the package that it has to refer to.

  • Compiling servlets

    I cant compile servlets.
    Im using tomcat and I tried to compile the servlets in the example seperately but theres always errors. However when I execute the file from the example folder it runs just nicely.
    This is an example of the error produced:
    equestInfoExample.java:22: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    RequestInfoExample.java:23: package javax.servlet.http does not exist
    import javax.servlet.http.*;
    ^
    RequestInfoExample.java:25: package util does not exist
    import util.HTMLFilter;
    ^
    RequestInfoExample.java:33: cannot resolve symbol
    symbol : class HttpServlet
    location: class RequestInfoExample
    public class RequestInfoExample extends HttpServlet {
    ^
    RequestInfoExample.java:38: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class RequestInfoExample
    public void doGet(HttpServletRequest request,
    ^
    RequestInfoExample.java:39: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class RequestInfoExample
    HttpServletResponse response)
    ^
    RequestInfoExample.java:40: cannot resolve symbol
    symbol : class ServletException
    location: class RequestInfoExample
    throws IOException, ServletException
    ^
    RequestInfoExample.java:105: cannot resolve symbol
    symbol : class HttpServletRequest
    location: class RequestInfoExample
    public void doPost(HttpServletRequest request,
    ^
    RequestInfoExample.java:106: cannot resolve symbol
    symbol : class HttpServletResponse
    location: class RequestInfoExample
    HttpServletResponse response)
    ^
    RequestInfoExample.java:107: cannot resolve symbol
    symbol : class ServletException
    location: class RequestInfoExample
    throws IOException, ServletException
    ^
    RequestInfoExample.java:76: cannot resolve symbol
    symbol : variable HTMLFilter
    location: class RequestInfoExample
    out.println(HTMLFilter.filter(request.getRequestURI()));
    ^
    RequestInfoExample.java:84: cannot resolve symbol
    symbol : variable HTMLFilter
    location: class RequestInfoExample
    out.println(HTMLFilter.filter(request.getPathInfo()));
    ^
    12 errors
    why is this.
    Please someone help me here!!
    Thanks in advance.

    what ever the above steps had i done i got the same error
    httpservletrequest unable to resolve symbol
    what i made is mycomputer>properties>advaced>envirinment variables>path>C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.*;(as am i using tomcat 5)and
    in cmd prompt set classpath=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.*;and
    in cmd prompt set path=C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.*;got the same result unable to resolve the symbol pls i need some ones help

Maybe you are looking for

  • Why won't my Time Capsule allow me to connect more than one device to the network at a time?

    Ok here is the shortest story I can come up with... Several months ago lightening struck my house and ruined the power cord for my old AIR PORT EXTREME....after replacing the power cable my wireless network began to prohibit more than one device at a

  • 7300GT with DVI and DVI to svideo

    I just wanted to be sure there were no issues when using a DVI connection to an lcd screen and the dvi-to-svideo converter to a television. I don't have a second dvi lcd to test, but the Mac isn't recognizing the dvi-to-svideo connection.

  • Check printing - user cannot print

    Wwe have a user who has generated check runs using the wizard with no errors. If this user generates, she cannot print the check either from the check wizard or the document printing screen. User has full authorizations to everything but is not a sup

  • Dbxml_java - linker error

    Was pretty careful about setting up the correct needs for the build. Command Lines Creating temporary file "c:\Program Files\Oracle\Berkeley DB XML 2.3.10\dbxml\build_windows\Release\dbxml_java\RSP00012B54444212.rsp" with contents /O2 /Ob2 /I "." /I

  • Using Entourage - Importing from Outlook XP

    I'm not sure where to post this question so I thought I would try here. I would like to import a .pst file (Outlook XP file from my PC) into Entourage 2004. Is there any way to do this? I noticed that using the import function in Entourage shows an i