Tomcat session expires after compiling servlet/ class

Hi,
Does anybody know why tomcat(4.1) session expires if you modify a serlvet or class and compile it.
After compiling I refresh the page and I get session invalidated page. And every time I compile I have to relogin.
Any ideas ? Is there a work around ?

In serverl.xml, if you have set the reloadable="true" attribute in your <Context/> tag for your web application then each time one of the servlet classes is modified, tomcat will reload the web application. Set reloadable="false" and this will stop.
tobes

Similar Messages

  • 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.

  • Compiling servlet class:javac gives 'bad command'

    I have a servlet class in the path: E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes
    I am using Tomcat 3.2.4 and Just Go (the tomcat launcher) provides this log of my settings:
    CLASSPATH:
    .;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\servlet.jar;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\ant.jar;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\jaxp.jar;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\crimson.jar;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\webserver.jar;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\jasper.jar
    Executable :
    E:\JBuilder35\jdk1.2.2\jre\bin\java.exe
    Command line arguments (in order appended) :
    -Dtomcat.home=E:\Tomcat324\jakarta-tomcat-3.2.4
    org.apache.tomcat.startup.Tomcat
    Environment Vars :
    TOMCAT_HOME=E:\Tomcat324\jakarta-tomcat-3.2.4
    TOMCAT_LIB=E:\Tomcat324\jakarta-tomcat-3.2.4\lib
    JAVA_HOME=E:\JBuilder35\jdk1.2.2\jre
    JAVA_EXE=E:\JBuilder35\jdk1.2.2\jre\bin\java.exe
    WINDIR=C:\WINDOWS
    CLASSPATH=.;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\servlet.jar;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\ant.jar;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\jaxp.jar;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\crimson.jar;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\webserver.jar;E:\Tomcat324\jakarta-tomcat-3.2.4\lib\jasper.jar
    In my DOS screen, I go to the path E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes and type in "javac helloWorld.java" and I get the message :Bad Command or File Name
    I'd greatly appreciate it if anyone could tell me what path to use in DOS to enable me to use the javac command.
    My problem is there are so many paths in the Tomcat settings (above), I am not sure which one to use to compile my servlet.

    Thanks for the suggestion. I am not trying to use JBuilder, just the command line from DOS so I hope that won't impact this.
    JAVAC is in e:\jbuilder35\jdk1.2.2\bin
    and the class that I am trying to run is in:
    e:\tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes
    and it's called CookieExample.java
    Here's a copy of my DOS Screen of what I did and the result:
    E:\>set path = javac e:\jbuilder35\jdk1.2.2\bin;%path%
    E:\>cd e:\tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes
    E:\Tomcat324\jakarta-tomcat-3.2.4\webapps\examples\WEB-INF\classes>javac CookieE
    xample.java
    Bad command or file name
    -Any idea why I am still getting the error?

  • Portal Session Expiration after 10 minutes.

    Hello Experts,
    We are running on EP 7.0 ABAP+JAVA stack.The UME has been configured on ABAP stack.
    We have a requirement to auto logoff the portal if no activity is done for 10 minutes.
    I have gone through SAP Notes and came to know this is not possible in current portal framework. In some threads I got clue to set some parameters for SSO expiration and Security session expiration but that did not gave desired result.
    I have set the security session to 10minutes in Visual administrator.(default 27h) [Security Provider -> SessionExpirationPeriod ]but nothing happened I am still in portal session after 10 minutes.
    I made the change in -> /usr/sap/<SID>/<inst>/j2ee/cluster/server0/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/web.xml
    And change the session time out to 10 minutes. But same result nothing happened.
    Please guide what settings I am missing. What else I have to do to get the session expire.
    thanks & regards
    shankar

    Hi,
    Check this:
    Redirect user to a custom "logoff" page after 10 minutes of user inactivity
    To set Logon Tickets Validity Period:
    http://help.sap.com/saphelp_nw70/helpdata/EN/45/18b6cfe1235d79e10000000a11466f/frameset.htm
    Regards,
    Praveen Gudapati

  • Session Expired after logging on to Visual Administrator - SLD Config

    Hey Guys,
    I have a NW2004s installation, both ABAP and Java stack, with UME pointing to the ABAP stack.
    I created a user in ABAP stack, and assigned the J2EE_ADMIN role to this user.
    I try to log into the Visual Administrator with this user. The login is successful.
    However right after I navigate to the sld data supplier node and click it, I get the error message, Session Expired.
    I think it is because I am not authorized to configure SLD or something like that.
    When I created the user in the ABAP stack I entered all the roles for the user with which I am logging on to the Visual Admin:
         SAP_SLD_ADMINISTRATOR
         SAP_SLD_CONFIGURATOR
    Anyhelp so that I can get over this problem and configure the SLD in the system.
    Thank You.
    Sumit.

    J2EE_ADMIN role has all the rights(configure SLD etc) , make sure you configure the SLD and import the CIM model content you can login to SLD at http://<host>:5XX00/SLD and then access the data supplier bridge
    where XX is your instance number

  • Session expires after the script1 in the job is over

    hi,
    i created a job. in my application i have to maintain the session. in the job, when script 1 gets over, and script starts, i dont know for what reason, the session expires. can this be due to cookies??

    If the session is needed for the second script in the job, then try to change the following settings for the second script using Options -> Current Script -> Playback -> Script. In the Automation Actions frame, uncheck the first three checkboxes for Reset Browser, Start new browser session and use distinct cookie directory. Also remember to uncheck the checkbox for Use same settings for all new scripts, that is the last option on the Current Script Setting dialog. Otherwise the above settings will apply to any of the new scripts that you create.
    Hope this helps.

  • Set up the classpath for tomcat 5.0 to compile servlet

    I am totally confused how do you set up the class path, i use this command:
    c:\set CLASSPATH=.;C:\tomcat5.0\common\lib\servlet-api.jar;%CLASSPATH%
    and I compile my file which i put in j2sdk1.4.2_10\bin
    here is the command line:
    c:\j2sdk1.4.2_10\bin\servletexercise1.java
    and it gives me the error message to say that it can't find the servelt, javax.servlet.
    Please help! thanks in advance!

    I am totally confused how do you set up the class
    path, i use this command:
    c:\set
    CLASSPATH=.;C:\tomcat5.0\common\lib\servlet-api.jar;%C
    LASSPATH%I don't have a CLASSPATH environment variable on any machine that I work with.
    and I compile my file which i put in j2sdk1.4.2_10\binThat's a pretty stoopid place to put a Java source file. You shouldn't be putting any files in that directory.
    The right thing to do is to add the Java /bin directory to your PATH environment variable. When you do, make sure there are no spaces in the path name. (e.g., don't install Java to the "Program Files" directory) OR replace it with its 8-char DOS equivalent (e.g., c:\Progra~1).
    here is the command line:
    c:\j2sdk1.4.2_10\bin\servletexercise1.javaSorry, I don't see where you execute javac.exe.
    and it gives me the error message to say that it
    can't find the servelt, javax.servlet.
    Please help! thanks in advance!What is this telling you? That the javac.exe totally ignores the CLASSPATH that you set? (Hint: Right answer.)
    The correct way to do it is to use the -classpath option on javac.exe.
    %

  • Session expires after popup windows

    I am using JDeveloper 9.0.3.10.
    I need to use the javascript function window.open to open a new (popup) dialog. I lose my session after I close the new dialog and since I validate my session in everypage, I get forwarded to the login page after opening any popup.
    This only happens when I run the application locally in JDeveloper. I do NOT have this problem when I deploy the application on a server.
    I'd really appreciate your help.

    I had that problem too and it seems to be a bug in Internet Explorer.
    It seems that IE tries to keep a count of how many windows are interested in the current session, and when you close the last one, it gets rid of the session cookie. But it gets the counting wrong sometimes.
    It especially gets it wrong if the browser has gone from a file-url to an http-url (!). Which explains why it breaks when you run it from jdeveloper (the webapp runner loads a local file into the browser and then goes to the proper url).
    If this is what's causing your problem then you will probably find that if you run your application from jdeveloper, make a note of the url, then immediately close that browser (because it has been through a file url so it's going to get its counting wrong) and open a fresh one, paste the url into that fresh browser and everything should work fine.
    I think the bug has been in IE for a long time.
    There's an article about it here:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;311072

  • Session Expired error in browser

    Hi guys,
    I hope everyone had an excellent festive period. I have been trying to access certain parts of websites and after I have successfully logged in and trying to access the member section i receive this error: 
    Session expired
    Why does my session expire?
    This could be either...
    For your security, your session expires after 10 minutes of no activity. This means no link has been clicked or data has been submitted in last 10 minutes.
    You have entered the URL of a particular page, which cannot be viewed without prior authentication.
    I have previously accessed these websites on my PlayBook but I am unable to any longer. These include the Etihad careers section along with the Emirates careers section.
    I have tried clearing the browser history, cookies, cache and local storage along with restarting the PlayBook, but all to no avail.
    Any help would be greatly appreciated.
    Regards,
    Dave

    I completely miss read that my apologies. I have tried the hard reset and still to no avail. Any other suggestions would be greatly appreciated. I have also tried the bridge browser and I have also tried the basic browser and also the comic sans browser and all of these have the same errors as well.

  • Session expired within 10-20 seconds while working on Visual Administartor.

    session expired within 10-20 seconds while working on Visual Administartor.
    Details: In VA, each dispatcher and Server process have four components:
    kernel, Interfaces, Libraries and Services.
    While working on Kernel in VA of dispatcher or Server, I'm getting 'session expired' after every 10-20 seconds.
    I'm not getting the same 'session expired' problem while working on interfaces, libraries or services.
    After 2-3 minute of wait, again i'm able to work on kernel  but again after 10-20 seconds, session get expired.
    Pls suggets to resolve this problem. We are on SP level 20.
    r1n0v3:xpdadm 5> ./go
    java version "1.4.2.10"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.10-060112-14:28)
    Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.10-060112-19:42-IA64N IA64, mixed mode)
    java.lang.ClassCastException
            at com.sap.engine.services.adminadapter.impl.Util.trim(Util.java:167)
            at com.sap.engine.services.adminadapter.impl.Util.compareProperties(Util.java:142)
            at com.sap.engine.services.adminadapter.gui.node.ManagerNodeView.deselectSingleManagerNode(ManagerNodeView.java:86)
            at com.sap.engine.services.adminadapter.gui.node.ManagerNodeView.deselectNode(ManagerNodeView.java:79)
            at com.sap.engine.services.adminadapter.gui.AdminManager.deselectManagerNode(AdminManager.java:266)
            at com.sap.engine.services.adminadapter.gui.AdminManager.deselectNode(AdminManager.java:146)
            at com.sap.engine.services.adminadapter.gui.AdminManager.valueChanged(AdminManager.java:96)
            at javax.swing.JTree.fireValueChanged(JTree.java:2392)
            at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:2763)
            at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:629)
            at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1076)
            at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:287)
            at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:170)
            at javax.swing.JTree.setSelectionPath(JTree.java:1168)
            at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2215)
            at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.handleSelection(BasicTreeUI.java:2863)
            at javax.swing.plaf.basic.BasicTreeUI$MouseHandler.mousePressed(BasicTreeUI.java:2824)
            at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:222)
            at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
            at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:221)
            at java.awt.Component.processMouseEvent(Component.java:5161)
            at java.awt.Component.processEvent(Component.java:4961)
            at java.awt.Container.processEvent(Container.java:1569)
            at java.awt.Component.dispatchEventImpl(Component.java:3679)
            at java.awt.Container.dispatchEventImpl(Container.java:1627)
            at java.awt.Component.dispatchEvent(Component.java:3541)
            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195)
            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
            at java.awt.Container.dispatchEventImpl(Container.java:1613)
            at java.awt.Window.dispatchEventImpl(Window.java:1606)
            at java.awt.Component.dispatchEvent(Component.java:3541)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Exception occurred during event dispatching:
    Thanks in advance
    Amar

    Update on my problem of VA:
    'Session expired' session only happened when i'm clicking the 'cluster manager' of Kernel or server instances.
    For all managers in kernel, i'm not getting this problem.
    I have seen some following properties in Cluster Manager. Not sure, these are the cause of problems:
    Key                                                                              value
    ___MS_PROP_GET_CLIENT_STATISTIC                        -
    ___MS_PROP_GET_HARDWARE_ID                            M0565709169
    ___MS_PROP_GET_INFO                                             -
    ___MS_PROP_GET_PARAMS                                      -
    ___MS_PROP_GET_SERVICE_INFO                            -
    ___MS_PROP_GET_STATISTIC                                    -
    ___MS_PROP_GET_SYSTEM_ID                                 XPD
    cluster.name                                                               -
    Pls suggets if your dispatcher or server kernel have the above mentioned properties value and what would be the impacty if i remove the properties that have no value assigned.
    Thanks once again in advance.
    Amar

  • Varing the session expiration time

    Hi all,
    the default session time with my server and the ADTB are too short (24 mins)
    Do you have a PROOFED WORKING way to extend the session lifetime?
    I tryed both to use the .htaccess variable and the ini_set("session.gc_maxlifetime")
    If I query then the ini_get("session.gc_maxlifetime") I get the new session length I decided.
    But in fact the session expires after a very short time?
    Any help would be really appreciated
    A. F.

    Hi Fonzie,
    if neither the .htaccess approach nor the ini_set function work on your host, I fear I have no idea what you could do instead, as the host admins seems to have disabled both features for whatever reason.
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Tomcat servlet class not refreshing

    I just started to work with Tomcat.
    My problem is that once I have compiled and put a servlet in myApps\WEB-INF\Classes directory even after I recompile it the browser displays old version. Only stopping and starting Tomcat shows the new version
    My browser is IE v 6.
    I have done everything as instructed in the book Java for the Web with Servlets... by Kurniawan.
    My web.xml looks like so
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!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>
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    <servlet>
              <servlet-name>Testing</servlet-name>
              <servlet-class>TestingServlet</servlet-class>
    </servlet>
    </web-app>      
    My CLASSPATH variable looks like so
    c:\j2sdk1.4.2_01\lib;.;c:\1ourfolder\Java Stuff;c:\jakarta-tomcat-4.1.27\common\lib\servlet.jar;C:\IBM\SQLLIB\java\db2java.zip;C:\IBM\SQLLIB\java\db2jcc.jar;C:\IBM\SQLLIB\java\sqlj.zip;C:\IBM\SQLLIB\bin;C:\IBM\SQLLIB\java\common.jar
    Is there something I need to add in the web.xml file? On the comp.lang.java.help forum there was reference to the WEB-INF\classes directory being in classpath and removing that made it work but I don't have that situation AFAIK.
    Thanks

    This must have been answered many times but with the software evolving as it does there must be different ways of doing this. This is what I did
    On your browser go to the manager page.
    http://localhost:8080/manager/html
    You may be prompted for a userid and password
    If you haven't done so already edit the conf\tomcat-users.xml file in the tomcat directory and add a line to set you up as a manager. This is going to be something like this
    <user username="manager" password="tomcat" roles="manager"/>
    Login as manager/tomcat.
    On the resultant webpage you should see a list of applications, myApps will be in that list. Stop it and start it (follow the grid to the right)
    Now your servlet class will be refreshed.
    I looked at other responses in this forum and found this answer
    http://forum.java.sun.com/thread.jsp?forum=33&thread=404559
    "...If it is tomcat 4.1 then you can use its adminitrator jsp page to make your context(webapp) reloadable. This in turn will make chages to your your server file and will add the context back to tomcat without stopping it..."
    At this time I haven't figured out how to do this ;-)
    Oh, and could you use code tags the next time?

  • Not able to compile servlet pgm - 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.

    **MAJOR SPAMMING SCUM BAG ALERT**
    I was puzzled in that you asked a SQL Server question in one post and then in another thread asked a Oracle related question... and then I noticed you had cross posted one of your questions at JavaRanch and I was more annoyed....
    and then I found this....
    http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=10&t=002447
    You sir -> Michael Byrd -> are a scum sucking dirtbag.
    To quickly explain. Mr. Byrd posts his messages (which he copies wholesale from other posters) so that he can get better google caching for the website listed in his profile.
    This is such scummy behaviour I don't even know what to say. Other than basically everyone that has ever helped you had totally wasted their time.
    You are scum. Your company is scum. I hope you rot in hell.

  • Newbie question: how to compile servlet using tomcat?? Thank you

    How to set classpath? How to compile servlet.java?

    jsp is also converted into a servlet .java nd then into a class file
    this is index.jsp
    <%@ page contentType="text/html;charset=windows-1252"%>
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>untitled</title>
      </head>
      <body>
      </body>
    </html>this is _index.java
    /*@lineinfo:filename=/index.jsp*/
      /*@lineinfo:generated-code*/
    import oracle.jsp.runtime.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    public class _index extends com.orionserver.http.OrionHttpJspPage {
      public final String _globalsClassName = null;
      // ** Begin Declarations
      // ** End Declarations
      public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {
        response.setContentType( "text/html;charset=windows-1252");
        /* set up the intrinsic variables using the pageContext goober:
        ** session = HttpSession
        ** application = ServletContext
        ** out = JspWriter
        ** page = this
        ** config = ServletConfig
        ** all session/app beans declared in globals.jsa
        PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
        // Note: this is not emitted if the session directive == false
        HttpSession session = pageContext.getSession();
        if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
          pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
          JspFactory.getDefaultFactory().releasePageContext(pageContext);
          return;
        int __jsp_tag_starteval;
        ServletContext application = pageContext.getServletContext();
        JspWriter out = pageContext.getOut();
        _index page = this;
        ServletConfig config = pageContext.getServletConfig();
        try {
          // global beans
          // end global beans
          out.write(__oracle_jsp_text[0]);
        catch( Throwable e) {
          try {
            if (out != null) out.clear();
          catch( Exception clearException) {
          pageContext.handlePageException( e);
        finally {
          OracleJspRuntime.extraHandlePCFinally(pageContext,false);
          JspFactory.getDefaultFactory().releasePageContext(pageContext);
      private static final char __oracle_jsp_text[][]=new char[1][];
      static {
        try {
        __oracle_jsp_text[0] =
        "\n<html>\n  <head>\n    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">\n    <title>untitled</title>\n  </head>\n  <body>\n  </body>\n</html>\n".toCharArray();
        catch (Throwable th) {
          System.err.println(th);
    }as you can see.. my IDE converts it into a java class so it can be conpiled to a class file.. by the way i use Oracle Jdeveloper 10g for this pupose of showing you what is happening to your jsp

  • How to install servlet classes in order to compile a simple servlet...

    When trying to compile a simple servlet (java file), I get errors having to do with not finding any object of the javax.servlet class. I am using J2SE v.1.4, and from what I know, it does not have built-in support for Servlets-JSP.
    Do I need to install myself the servlet classes (downloaded from Sun's site) in order for my servlet to be able to compile and work under tomcat? And if so, where should I put them? Or is there something else I have to do?
    Thank you in advance for your assistance!

    If you have Tomcat already, the files you require are in:
    (Tomcat4)
    [TOMCAT_HOME]/common/lib/servlet.jar
    or
    (Tomcat5)
    [TOMCAT_HOME]/common/lib/servlet-api.jar
    [TOMCAT_HOME]/common/lib/jsp-api.jar
    This file needs to be added to your classpath when compiling a servlet.

Maybe you are looking for