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.

Similar Messages

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

  • CLASSPATH & servlet.jar

    Hi Folks,
    I'm currently working through the Core Servlets and JavaServer Pages books. I've been trying to set up the development environment, but am having some difficulty. I'm using Tomcat 4.0 and am using the guide on the www.coreservlets.com site.
    When I tried to compile the following servlet, I got the following error:
    C:\jdk1.3.1_02\bin>java HelloWorld.class
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/class
    My assumption is that my CLASSPATH is screwed and the servlet.jar can't be found.
    Here's my CLASSPATH that I set in Windows 2000:
    .;C:\ServletDevel;C:\tomcat\common\lib\servlet.jar;%CLASSPATH%
    Thanks in advance for any help.

    Hi keruilin11,
    C:\jdk1.3.1_02\bin>java HelloWorld.class
    Checkout the statement once again .
    It should be javac HelloWorld.java instead of java HelloWorld.class.
    If you have mistaken in typing here, checkout the CLASSPATH of the environment which you are trying to compile.
    Type SET | more at the command prompt and check the class path available for that environment.
    Thanks,
    Sanath Kumar

  • Re : servlet.jar

    Hello, i just want to know,
    where to get servlet.jar for servlet 2.3;
    I tryed :
    java.sun.com/products/servlet/download.html only got the spec. and class files,
    and i also download the J2EE, no luck, can some one help me through?

    thanks, i found it under apache-tomcat-5.5.12 :)

Maybe you are looking for

  • "No Wi-Fi" displayed in iPhone Settings

    I can no longer access wifi using my iphone. In settings, the wifi option is greyed out and un-clickable, displaying the message "No Wi-Fi". I have reset the iphone, and then restored it (both to a previous backup, and then as a new iphone), but to n

  • Suppressing using GroupName

    Post Author: jalmeida CA Forum: Formula I have a report that is made up of two groups; grouper 1, then grouper 2. I supress the details section, and group footers. The report is being used as table of contents(sub report) at the beginning of my main

  • How can disconnect  my iPad information from my iPhone

    I had an iPad mini for a year now, my fiancé recently bought me an iPhone. So he told me I could since my iPad mini with my phone. But my mini is so full of storage, every time I plug in my iPhone it says it can't be backed up. But I want it to be. H

  • It works perfectly fine in all wifi networks except for one

    Hi everybody! I have a black macbook from 2007. It works perfectly fine in all wifi networks except for one. It´s a new network, a much faster one they say, that has been installed where I work. It works perfectly fine in my home wifi network and in

  • Domain.sites" could not be opened. After power loss

    Oh sht have i got a prob. I'm getting this message after a power loss, iweb will just not open anything............ The document "Domain.sites" could not be opened. IWEB Can't open file "~/Library/Application Support/iWeb/Domain.sites." I have main s