Replacing servlet.jar

I need to upgrade the javax.servlet to the current version.
Is it simply a matter of replacing the servlet.jar file and reloading or is it more complicated than that ?

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Alan Smith:
I am facing the same difficulty! I downloaded the TomCat added to the project path in JDev. I'm still having JDev recognizing getAttribute() and setAttribute() methods. You have mentioned 2.2 servlet api solves the problem. I couldn't find that in the TomCat website. Do I need to do anything additional from JDev in order to recognize 2.2 servlet API?
TIA,
A<HR></BLOCKQUOTE>
Download the jakarta-servletapi file, extract into a directory and add to classpath. This will cater for the command line compiles.
For JDev put the newly extracted servlet.jar on top of the one in the JDEV hierarchy ..\jswdk-1.01\servlet.jar if i remember correctly. This will BREAK servlet debugging from within the IDE - but at least you can compile and deploy.
null

Similar Messages

  • ABOUT Servlet.jar

    I need Help to Configure JBOSS IN eclipse

    Hi TCz28,
    Some files and dir's aren't unpacked until Tomcat is run for the first time.
    The startup error is very strange, I don't know the solution for that.
    The servlet.jar-error comes from the classpath (which doesn't). On NT it works a little different, but on Win'95 your must add SET CLASSPATH=.; %TOMCAT_HOME%\LIB\SERVLET.JAR to your autoexec.bat. The dir %tomcat_home% is mentioned in the Tomcat-docs, but you can replace it with c:\java\jakarta-tomcat-x.x.x-lib, for instance.
    Good luck!
    Alexander

  • Error loading servlet.jar

    I deployed a web application in tomcat server. I'm getting following error when starting the server
    WebappClassLoader: validateJarFile(D:\jakarta-tomcat-4.1.27\webapps\registeruser
    \WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
    Offending class: javax/servlet/Servlet.class

    I am trying to deploy a web application using Netbeans 6.1 but when I am running it I am getting the following errors:
    deployed with moduleid = S
    validateJarFile(/home/aadhya/sanju/S/build/web/WEB-INF/lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    ##### Error java.lang.ClassNotFoundException: com.mysql.Driver
    ##### Error java.lang.ClassNotFoundException: com.mysql.Driver
    Can any body please tell me how to solve this problem???
    I tried even by deleting servlet.jar from my application but still the same problem exists.
    Thanks & Regards,
    Sanjeev K
    Edited by: sanjeev.pk on Sep 2, 2008 3:35 PM

  • Some problems with servlet.jar and tomcat 4.1.27

    Hello everybody,
    I used to work with tomcat 3.3.1 and i've decided to use tomcat 4.1.27 now. The manual explains that we have to change de version of servlet.jar, it's done with servlet-2.3.jar but on tomcat starting i have this message:
    jar not loaded. See servlet spec [...]. Offending class: javax/servlet/Servlet.class
    what can i do, i've red all de documentation and i think all versions a OK??
    thanks per advance
    antoine

    I am running Tomcat 4.1.18, so your configuration may be slightly different. I found the Servlet.class file you are missing residing in the Tomcat/common/lib directory in the Servlet.jar file. Check your path and also make sure your Servlet.jar file contains the missing class.

  • Error compilng servlet - even after including servlet.jar in classpath

    I have the tomcat installation , which shows the default page on stating the tomcat.
    I have my classpath set to -
    set CLASSPATH=c:\tomcat4.1\comman\lib\servlet.jar;c:\j2sdk1.4\lib\tools.jar;
    set PATH=c:\j2sdk1.4\bin;
    I have a greetserv.java which is a simple example servlet. When i try to compile this, it gives me the error javax.servlet.jar does not exist.I have it included in the classpath, but it still doesnt work.
    Any help will be appreciated.
    Thanks,
    Jyothi

    What is javax.servlet.jar?

  • Servlet.jar problem

    Hi all
    Could anyone help me out this problem, I keep trying to figure it out these days but I still cant find my way.
    I cannot compile a simple HelloWorldServlet.java, as it gave me 6 errors:
    ===========================================
    package javax.servlet does not exist
    import javax.servlet/*;
    ^
    package javax.servlet.http does not exist
    import javax.servlet.http/*;
    ^
    the other 4 errors also pointing to the HttpServlet, HttpServletRequest, HttpServletResponse and ServletException
    ===========================================
    I have installed Tomcat 4.1.24 and j2sdk1.4.1_01 on my computer. I know the compiler javac needs the servlet.jar when compiling servlet source code, so I have set the path like this
    PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\J2SDK1.4.1_01\BIN;C:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar
    However, same errors are still generated after I set the path. So can anyone can tell me what thing goes wrong with my setting? or this is not the servlet.jar and path problem?
    With uncountable thank : )
    Kelvin

    Hi,
    My questions are the same.
    But I have also set up the classpath for the servlet component.
    After that, I found I can't call user-defined obecjts in my servlet.
    Even when I just write a simple Java command-line progarm which call the outside objects, it also can't find the user-defined objects; unless I move out the setup of CLASSPATH. So does anyone have the further solution? or tell me where I can find the answer!
    Thank you so much!

  • Servlet.jar

    can anyone tell me what this error message means. Ive installed a .war file that should work. but i get this error. Is it something to do with not being able to find servlet.jar ? if it is where do i need to put it?
    Thanks
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         org.apache.jsp.products_jsp._jspService(org.apache.jsp.products_jsp:72)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    No, it means you have a null reference in your JSP page.

  • Servlet.jar not in jdk 1.3.1?

    I've always added servlet.jar into the classpath when compiling servlets and it worked fine until i upgraded to jdk1.3 which dosent come with a servlet.jar and cant find javax.servlet classes normally- so what do i have to do then besides finding my old servlet.jar file? what are the javax.servlet classes hidden in for jdk13?

    You can download the J2EE add-on to the JDK1.3.
    That will have the javax.servlet
    --lichu                                                                                                                                                                                   

  • Error message - servlet.jar ?

    can anyone tell me what this error message means. Ive installed a .war file that should work. but i get this error. Is it something to do with not being able to find servlet.jar ? if it is where do i need to put it?
    Thanks
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NullPointerException
         org.apache.jsp.products_jsp._jspService(org.apache.jsp.products_jsp:72)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    can anyone tell me what this error message means. Ive
    installed a .war file that should work. but i get
    this error. Is it something to do with not being able
    to find servlet.jar ? if it is where do i need to put
    it?
    Thanks
    exception
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(J
    spServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(J
    spServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServl
    et.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:802)
    root cause
    java.lang.NullPointerException
         org.apache.jsp.products_jsp._jspService(org.apache.js
    p.products_jsp:72)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJsp
    Base.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:802)
         org.apache.jasper.servlet.JspServletWrapper.service(J
    spServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(J
    spServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServl
    et.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.ja
    va:802)
    Pal..pls quote d JSP code....
    Hope the forum could get more info regarding your problem, and help u !
    Cheers !
    Shekhar

  • Compiling file with servlet.jar

    Hi,
    I can compile my file under the arm/pdm package fine by using this command:
    javac -classpath .;.. pdm\FileName.java
    but now i wrote a servlet which imports the javax.servlet directory.
    So in order for the class to compile i have to give it the path of the servlet.jar file which is in this directory: c:/jdk1.3.1_07/lib/servlet.jar
    The problem am having is that i can't give both the classpaths at one time in order to compile my servlet which also uses classes in the pdm directory and also from a different directory under arm.
    Please help
    Thanks

    Perhaps
    javac -classpath .;..;c:\jdk1.3.1_07\lib\servlet.jar pdm\FileName.java

  • Location of SunServer7 Servlet.jar file?

    Hello All I have AppServer7 development edition installed on my machine and I'm trying to compile a simple helloworld servlet to test my installation, but I can't seem to find servlet.jar in the AppServer7 directory structure. Any ideas which file has the servlet interfaces?
    Thanks,
    Coop

    The forum for AppServer questions is:
    http://swforum.sun.com/jive/forum.jspa?forumID=114
    Having said that, did you check under server_root/jwsdp/common/lib directory?
    Thanks
    Manish

  • Where is servlet.jar?

    Dear Forum,
    I try to develop custom tag library under JDeveloper 9.0.3.2 (build 1145). When I create tld file and try to add a tag by clicking the right mouse button no popup window apears.
    When i try to compile my old custom tag java classes classes from package javax.servlet.jsp.tagext can not be accesses though JSP Runtime and Servlet Runtime libraries are included in project's classpath.
    The Servlet Runtime libraray has servlet.jar entry in [JDevHome]\j2ee\home\lib directory though no servjet.jar file can be not even in that library but also in all subdirectories of [JDevHome]
    Where is servlet.jar?
    Oh please, make it apear :)
    Than You in advance.
    Justinas

    Look under common/lib in the %CATALINA_HOME% (%TOMCAT_HOME%).
    Also the servlet classes can be in the j2ee.jar file.

  • Looking for servlet.jar

    I've loaded a project into Eclipse that requires servlet.jar. This apparently doesn't come with the current version of Tomcat or Sun Application Server. How can I get the file and if I get an older version, is it going to work with Tomcat 5.5?

    Alice Sufka wrote:
    >
    > Anyone else come across this problem? :
    >
    > When trying to define a new sever runtime for JBoss 3.2.x, cannot create
    > runtime if version 3.2.6 of JBoss is selected. The error "Missing
    > classpath
    > entry c:\jboss-3.2.6\server\default\lib\javax.servlet.jar" is displayed
    > and the
    > "Finish" button is disabled.
    >
    > This occurs using the Server/Installed Runtimes preferences dialog.
    >
    > The definition of a server runtime using the same procedure but pointing
    > to an
    > install of version 3.2.3 of JBoss does not give this error and completes
    > successfully.
    >
    > A clean install of JBoss 3.2.6 does not have the javax.servlet.jar file
    > that
    > the eclipse process is looking for; I believe that the eclipse process is
    > looking for that file in error and that it should not be looking for
    > that file
    > for the 3.2.6 version of JBoss. Since the dialog is for the option of
    > defining
    > any 3.2.x JBoss runtime, I am guessing it is expecting all 3.2.x
    > installs of
    > JBoss to look alike when this is not the case.
    >
    Any way to fix this?

  • Where from can i download "servlet.jar"

    Hi Friends,
    I've JDk1.5 and Tomcat installed on my system,I am going through some servlet tutorials and i need to run them.So,i guess i need to have servlet.jar file in my classpath.Can someone tell me where from can i install that?I have this link
    www.java.sun.com/products/servlet/index.html
    But,I dont want the whole J2EE download,i just need a customized installation or just this file.Please help.

    hey kefgolfs,
    Thanks ...that helped me too...That was written over two years ago. Thanks for resurrecting it.

  • Addes servlet.jar but still doesn't compile

    I'm building a servlet and therefor I added the servlet.jar file in my java/lib directory. After changing the classpath (adding the path to the lib directory), my servlet still doesn't compile. What could be wrong?
    debeumers

    to add a jar to the classpath, you must add the full path to the jar, for example java/lib/servlet.jar

Maybe you are looking for