Tomcat, installating servlet

Hi.
I've asked this question a couple of times, but I can't figure this out...
I've installed an applet in Tomcat, and the requesting works fine. But my applet has to import a .jar file. I've tried to place this file in the same directory as my applet, but it doesn't work.
Do I have to give rights to the applet, change my classpath?
It keeps giving me this:
java.lang.NoClassDefFoundError: net/sf/saxon/value/StringValue
     at SaxonServlet.apply(SaxonServlet.java:93)
     at SaxonServlet.service(SaxonServlet.java:41)

This question is already answered:
http://forum.java.sun.com/thread.jsp?forum=33&thread=419559

Similar Messages

  • I need to install servlet-api.jar in the libext folder.

    Hi I am doing a tutorial on struts 2.0.11.
    i need to install servlet-api.jar in the libext folder which I have created inside WEB-INF
    Now I have downloaded servlet.api which is in the zip form.
    When I extract the files. Its giving me two folders
    1. javax
    2. META-INF
    Inside javax there is a folder called servlet. Inside servlet folder there are
    a) bunch of call files
    b) http folder
    c) resources folder
    Inside http folder there are
    a) class files
    b) properties files
    Inside the resources folder there are
    a) dtd files
    b) xsd files
    Inside the META-INF folder there is the manifest.mf file
    I just need servlet-api.jar
    I think that I have extracted the contents of servlet-api.jar by using the extract feature of winzip.
    Do you think that by just changing the extension of the file from servlet-api.zip to servlet-api.jar it will do the trick or do i need to do something else.
    Please guide

    pksingh79 wrote:
    Hi ^^,
    your replies were very helpful. I did try to check the lib folder of the webserver and there was not servlet-api.jar. However I downloaded a dummy project and it did have servlet-api.jar in it, so I am ok for now.
    thanks and regards,
    PrashantYou should not be doing that. Always use the one from the application server which you're going to use. Otherwise you will possibly get in runtime trouble due to version differences.
    The actual location and filename of the servlet API might differ per application server implementation. If it was for example Tomcat 6, it is the servlet-api.jar in the /lib directory. If it was for example Glassfish (the current release), then it is the javaee.jar in the /lib directory.

  • Tomcat Java Servlets, how to log System.out.println() messages

    I have recently installed a new (x86) Mac OS Xserve, and am porting some Java application Servlets from an existing older Mac OSX server. All the servlets were working (I am connecting via port 9006). I have carefully used the old JDK 1.4 compiler, edited my server.xml (for port 9006) and web.xml files, etc. The Tomcat example servlets work fine, and all my (other) servlets work fine, with one exception, where I get the typically vague "java.io.IOException: Server returned HTTP response code: 500" message.
    Trouble is, I cannot get the Java System.out.prinln statements to go to the Tomcat/logs/ log files (they are all there and updating with Tomcat HttpServlet messages), in order to properly debug.
    Is there a server.xml value somewhere I can make the change?
    On another minor (possibly related) point, does anyone know what the path info ='null' means in the Tomcat access log? e.g.,
    StandardContext[/my_servlets]: Mapped to servlet 'myServlet' with servlet path '/myServlet' and path info 'null'
    It is the only other suspicious message I get in all the logs.
    One other point: my java application that fails uses threads. All the individual classes that use the threads work when run interactively, but as soon as I call them from final Serlet class that extends HttpServlet, I get a null pointer exception. Is there something unique about the Tomcat 4.1 threading that could be causing it?
    I want to avoid upgrading to Tomcat 5 at this point, if I can avoid it. My applications are modest in scope, and the last time I upgraded to Tomcat 5, it took me days to get it working properly, and I lost all access to it from the Server Admin application.

    I have found a solution: Via the Tomcat Admin web page I set the Context field "Swallow Output" to "true".

  • Tomcat ?& servlet

    Hi,
    I am new to tomcat and servlet and dont know how to execute servlets in tomcat3.3. I have saved my servlet files in webapps\examples\web-inf\classes but when I try to run the servlet in browser I get the error messgae page not found. Please help
    thanks

    have u configured your servlet in web.xml in ..\webapps\examples\web-inf ?? you need to add your servlet name and servlet class at least there? see the web.xml file provided in ..examples\web-inf
    regards,
    Padmanava

  • Tomcat loading servlet ..twice..

    Hello,
    I have a web application in which I am facing one wiered pbm. I see tomcat loading servlet twice , on which my application logic is failing and quits.
    Getting below error in log file.
    My findings : One thing I did was , inside comp folder I made a copy of website folder and renamed it to website_old. Now both folders contains servlet.jar. Will it be causing a pbm???
    ==========================================================
    Jan 29, 2009 10:48:34 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(.\comp\website_old\WEB-INF\lib\servlet.jar) - jar no
    t loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    ==========================================================
    Ani

    One more findings :
    I have
    Server.xml has an entry of below
    <Context docBase="C:\Program Files\Avaya/comp/website" path="/website" reloadable="false" crossContext="true" />
    So tomcat should look for website folder in the specified directory, but in the C:\Program Files\Avaya/comp directory, there are two directories , website and website_old.
    Why tomcat is searching for C:\Program Files\Avaya/comp/website_old application if it gets the C:\Program Files\Avaya/comp/website . ??
    I have tomcat6.
    Any reason??

  • Problem with instaling servlet -Tomcat 4.01 -Win98

    Problem is in web.xml fajl
    I use
    <servlet>
    <servlet-name>name</servlet-name>
    <servlet-class>package.name</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>name</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    Fajl are in webapps/xxx folder Then I start aplication it's work but there is no pictures. (I put them in webapps/xxx/pictures folder, and call them in servlet with img src=\"/xxx/pictures/picture1.gif"\)
    Thanks

    Hi,
    if I understand, you generate img tag from your servlet.
    But the img tag is evaluate by client (navigator), so the path must be relative to the servlet root :
    img src="pictures/xxx.jpg"
    if don't work, try ./pictures/xxx.jpg, but I think it work for Websphere, the first path should work under tomCat.
    Regards.

  • Error in Tomcat with Servlet

    Hi,
    I made a webapplication in JBuilder. When I run the project it runs just fine, even when I type the URL http://localhost:8080/webshop/file.shtml in explorer. Very simple.
    I installed the project war file in tomcat with the manager and tomcat made a webshop dir in web-app. This dir contains all the files needed for Tomcat to run a web-app
    I configured the web.xml, it looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!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>
    <servlet-name>dbservlet</servlet-name>
    <servlet-class>webwinkel.DBServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>dbservlet</servlet-name>
    <url-pattern>/dbservlet</url-pattern>
    </servlet-mapping>
    </web-app>
    But the web-app doens't run online. When I try to reach the servlet I get a 404. Tomcat can't find the servlet. Am I forgetting something here, if it runs local in JBuilder shouldn't it just as easy run on a webserver?
    please help I'm desperate
    Susan

    looks like you should be pointing to the following url to get to your servlet:
    http ://localhost:8080/webshop/dbservlet
    Is this what you or your form is pointing to? Are you able to get to /file.shtml but not the servlet?

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

  • How to install servlet-2_3-fcs-classfiles.zip???

    Hi!
    I am using jdk1.3.1_02 and I try to compile a servlet source code. But I got error message
    C:\tomcat\webapps\examples\WEB-INF\classes\HelloWorldExample.java:8: package javax.servlet does not exist
    import javax.servlet.*;
    ^
    I already unzip the contents of servlet-2_3-fcs-classfiles.zip in my jdk1.3.1_02 directory, but still it doesn't work. Anyone any ideas how to install it properly?

    When you unzip the servlet, there should be a folder named javax, you can either move that folder to C:\jdk1.3.1_02 and compile the program normally (assuming that you have already defined a ckasspath that contains C:\jdk1.3.1_02). Or, you can add the path to your javax folder to the CLASSPATH environment variable.
    V.V.

  • Installing Servlets API

    How do i do this, i've got the download with all the classes but i can't find and instructions anywhere, i assume i have to install it into the jdk directory but where in it??
    i've tried the bin directory and it doesn't like that ....
    ideas?

    Hi, ashcarrot,
    There'r different implementations and versions of Servlets. The J2EE Reference Implementation includes the Tomcat implementation of Servlets (c below), and J2SE does not include Servlet technology.
    I assume u have installed the standard edition SDK/JDK. This is the download page from Sun for Servlet technology:
    http://java.sun.com/products/servlet/download.html
    The Tomcat 4.0.4 link is no longer valid and u could go to the Tomcat homepage to download the latest Tomcat 4.1.12 and find detailed information on installation:
    http://jakarta.apache.org/tomcat/index.html
    Jack

  • Step By Step instructions to deploy simple site to seperate tomcat install

    Greetings,
    I am a Neophite at both servlets and web development but very ambitious. I created a little website using JSCreator just to get familiar with the tool(useless really). I am able to run it in the IDE (smart enough to press "run main application" but I don't know how to deploy it to a seperately installed version of Apache tomcat. I know it should work, I just don't know where to put things nor which xml files to update.
    Can anyone help?
    Thanks,
    Richard

    Please look at FAQ http://developers.sun.com/prodtech/javatools/jscreator/reference/faqs/technical/depsrvs/dep_tomcat.html

  • Java 64-bit Windows 7 - Error with Tomcat Install

    Downloaded and ran jre-6u20-windows-i586-s.exe on a Win host (Dell PowerEdge R610 with 16 Core 2.27 GHz Intel Xeon) running Windows 7 64-bit. The website said if you're running a 64-bit Windows OS then download that file.
    When I run the command "java -version" it says,
    "C:\Users\plozanci>java -version
    java version "1.6.0_20"
    Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
    Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)"
    I'm trying to install Apache Tomcat 6.0.26. Getting the error: "[206 javajni.c] [error] %1 is not a valid Win32 application."
    After searching the web, it looks like the Tomcat is looking for a 64-bit JRE but encountering a 32-bit version. I thought that the jre-6u20-windows-i586-s.exe file had the 32-bit & 64-bit versions. If this is true, how do I get Tomcat to use the right version?
    If its false, where is the 64-bit version for Windows 7?

    No. They are separate installers. The 32bit will run on a 64bit OS, but it is not 64bit. If you need the 64bit, you will need to download the 64bit installer.
    You will need: jre-6u20-windows-x64.exe
    Go: http://java.sun.com/javase/downloads/index.jsp
    select: Download JRE
    select: Windows x64
    Happy downloading!
    -Roger

  • How to install servlet and jsp on win xp?

    I am new in jsp and servlets. I would like to follow some jsp books and examples. The j2eesdk-1_4-dr-windows-eval.exe is already installed on my computer. I can write and run java codes. I downloaded the jsp-2_1-edr-api.zip file from http://java.sun.com. I extracted and moved to dir:\Sun\AppServer\ folder. When I search, I cannot see any jsp.jar file as some documents say, nor servlet.jar. How can I install jsp and servlet on windows xp? Any help? I will be very grateful.

    For starters, you would probably have better luck getting an answer on the general Java forums, since this a very general question- it is hard to see how this is specific to the Web Application Framework technology, except of course that it uses JSP and servlets naturally,
    But to try to help you here, more information is needed: from exactly where are you do\wnloading the file jsp-2_1-edr-api.zip and what is the product title of this file? I ask this since a general search of sun.com returns no evidence of the existence of this file.
    Also, what documents are being referred to here?
    Thanks

  • Using Weblogic ACL from Tomcat in Servlet/SJP

    Hi all,
    I'm trying to use weblogic ACL from a servlet in a remote Servlet/JSP
    container (Tomcat). I've managed to log a user as decribed is the
    "examples.security.acl.Client exemple" but what i need now is to be able to
    get back the user group and/or permissions. Does anyone have done this
    before ? I've look in the Weblogic documentation center but I did not manage
    to found any exemple.
    Thank you in advance.
    Frederic

    Sorry, but I believe you are going to be limited to the information
    available through the JNDI interface and the interfaces of the EJB's that
    you deploy to the weblogic EJB container. The ACL information is intended
    for use only within the scope of the server environment. So, even though you
    are running as a Servlet/JSP you're running in the Tomcat container which is
    actually outside the weblogic Servlet/JSP or EJB container(s), in essance
    you're running under the same access limitiations as an EJB client app.
    BTW, you do realize that the weblogic 6.0 server does include a very nice
    Servlet/JSP container?
    Alfred Wallace <[email protected]> wrote in message
    news:3a9fbc66$[email protected]..
    Hi all,
    I'm trying to use weblogic ACL from a servlet in a remote Servlet/JSP
    container (Tomcat). I've managed to log a user as decribed is the
    "examples.security.acl.Client exemple" but what i need now is to be ableto
    get back the user group and/or permissions. Does anyone have done this
    before ? I've look in the Weblogic documentation center but I did notmanage
    to found any exemple.
    Thank you in advance.
    Frederic

  • Tomcat recompiling servlets

    While I am still making changes to a servlet code, how can I make a servlet reload every time I test it?
    Mani

    http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
    Check out the "reloadable" attribute. That's as close as you can get.

Maybe you are looking for

  • Movies and TV Shows Missing form iPod menu -- what's up with that?

    I purchased my fist movie and TV episode last night to see how well I will like them on my iPod classic. I am connecting to the most up to date version of iTunes on my IBM/Win XP computer. I watched the episode (Journeyman's first episode -- missed i

  • Can't start film in Elements organizer after upgrade to 12.1

    Hello Upgraded from Elements (Photoshop and Premiere) ver 12 to ver 12.1. After that I can't start a film (from my Sony RX100), file extension MTS. Worked Before in ver 12. Says there is a codec missing. There is also a link in the error message, poi

  • Somebody hack my macproo what can i do to restart my system.

    Someone recently introduced in my son's macbook with your ID and password, and reported as stolen, the mac then went out and asked for a key to restart my son did not know, we talked with telephone support and found that the mac is our property and t

  • Billed $24 for renewal. But I did not renew.

    Hi, 3months ago, I purchased an online phone number for $24. Fast forward 2months and 2x days, and I've just billed another $24 for the service. I did not authorise a subscription. Furthermore, My app clearly askes if I want to 'renew' the service. S

  • Regular expressions - annoyance

    If: Pattern p = Pattern.compile( "(\\d){2}:(\\d){2}-(\\d){2}:(\\d){2}", Pattern.CASE_INSENSITIVE ); matches "01:02-03:04" matcher.group(1) returns: 1, instead of the "01" that should be matched. This is also the case with what should be a character m