Looking for javax.servlet, installed tomcat

I've just installed Tomcat and then updated to the new JDK 6 and I try to compile something and it tells me package javax.servlet and javax.servlet.http.* does not exists.
Where can I find these packages? Reinstallation of Tomcat really isn't an option.

I guess this is related to:
http://forum.java.sun.com/thread.jspa?threadID=792852&
messageID=4506628#4506628
Why did you not get them to install EE at the same
time they did tomcat? You knew about this before.
Also, I think you need to start saving your own
computer, it seems your school is giving you a
headache.aye, it is. I thought someone said that tomcat came with those packages. Oh well, I have my own computer ( a nice one, I built it) but my mother won't let me connect it to the internet (I'm 'that age' for pornography). I'm a senior, I'll be glad when I get out this coming spring. My lovely system admin has my e-mails filtered into his deleted items box... I really hate this place.
They did:
If you're just using Servlets an JSP, you don't need the whole J2EE stuff, Tomcat is enough, for example. The textbook should have mentioned that.
from JoachimSauer
Message was edited by:
Vagabon

Similar Messages

  • Searching for javax.servlet.jsp.tagext.*

    Hi,
    I am looking for the library which contains javax.servlet.jsp.tagext.*.
    Does anyone know what to download to get this library.
    Thanks,

    hi,
    You can get the javax.servlet.jsp.tagext.*. in servlet.jar.
    To unjar it in linux use the following command
    jar -xvf servlet.jar
    You will get the tagext folder in : /javax/servlet/jsp/
    ullas

  • Looking for 10.3 install disc

    My daughter has an iBook G3 that is running 10.2 at the moment. I used to have an install disc for 10.3 but I lost it at some stage and there are some big draw backs for her trying to use the latest versions of Safari and iTunes that she can on 10.2. Of course Apple don't sell old versions of their operating systems. Does anyone have a copy of it they don't need anymore?

    mickr7an:
    To install Tiger your computer will need to meet the minimum system requirements for Tiger. You will, also need to purchase the Full Retail version of Tiger.
    Please note that Computer specific or upgrade versions should be avoided since they are optimized for the computer to which they are specific and will therefore, very likely, cause problems during or after installation. On the legal side, it may be a violation of the Software License Agreement which statesThis License allows you to install and use one copy of the Apple Software on a single computer at a time. This License does not allow the Apple Software to exist on more than one computer at a time...
    Tiger can be purchased at The Apple Store. You can also find the Full Retail Version, if you shop carefully, at online outlets like FastMac, HardcoreMac, AllMac, etc. If you know what you are looking for, read all documentation carefully and ask questions of the seller, you may be able to get Tiger on eBay.
    If your computer meets the minimum system requirements for Tiger but does not have a DVD drive here are your options:
    If you already own Tiger on DVD
    •Use an external Firewire DVD Drive.
    •Use Firewire Target Disk Mode
    I am not sure why you are not able to boot from an external DVD drive, except:
    1. You have computer specific install disk that is not specific to the computer to which you are installing.
    2. Your DVD drive has a USB and not firewire interface.
    Please do post back with further questions or comments.
    Cheers
    cornelius

  • Looking for someone to install R12 London, UK

    Hi I'm looking for anyone that lives in the UK, preferably London, and is able to install R12 on Linux in Vmware. Please email me at marcusaurelio24 @ googlemail.com for your quotation. Thank you.

    cyber3, can you be a little more specific about what you're trying to do? One calendar on your machine accessible by 4 other users logging into your system? One- or two-way syncing of calendars among all users? It's difficult to try to help with the information you provided in your post.

  • Look for e-recruiting install guide

    I cannot find the install guide for e-recruiting at SMP.
    I see that ehp3 for ERP has e-recruiting.
    Is ehp3 the only way to have e-recruiting?
    Thanks!

    Hi,
    >
    > 1) In order to bring in e--recruiting , can I apply ehp3 directly without applying any e-recruiting add-on (i.e. baseline) first?
    >
    Depends on which system you want to install E-Recruiting, If it is an ECC system then by default when you will install ECC system then it will come at certain package level and then you can upgrade it to EHP3.
    If you install it on netweaver system then you can directly install it on EHP3 level.
    > 2) You mentioned it's an add-on on ECC/NW. Does it also have some files (e.g. *.sca) to be deployed on EP?
    >
    Yes, you need to deploy certain packages on Portal as well depend upon for which functionality you want to use E-Recruiting application.
    Check below link:
    https://websmp108.sap-ag.de/~sapidp/011000358700003087572006E
    > 3)  In terms of architecture, are e-recruiting, e-sourcing, e-service, ecommerce and e-market are similar?
    >
    In order to look on architecture of e-recruiting, please check below links:
    https://websmp206.sap-ag.de/~sapidb/012006153200000893642007E/Managing_External_Recruiting_ehp3.pdf
    http://wiki.sdn.sap.com/wiki/display/ERPHCM/SAP%20E-Recruiting
    Thanks
    Sunny
    Edited by: Sunny Pahuja on Sep 26, 2010 3:13 PM

  • Looking for a servlet expert

    can anyone explain to me how to write a file to the server using a servlet?
    everything i've tried as not been working
    thanks
    Andy

    thats what i thought about the way to write to the files, but i believe that i'm having troubles actually getting to the servlet code.
    here is what i have so far...
    //*********applet***********/
    try
    URL baseURL = getCodeBase();
    String protocol = baseURL.getProtocol();
    String host = baseURL.getHost();
    int port = 808;
    String urlSuffix = "/servlet/contactlist.servletOne";
    URL url = new URL(protocol, host, port, urlSuffix);
    URLConnection conn = url.openConnection();
    // inform the connection that we will send output and accept input
    conn.setDoInput(true);
    conn.setDoOutput(true);
    // Don't use a cached version of URL connection.
    conn.setUseCaches (false);
    conn.setDefaultUseCaches (false);
    InputStream inputStreamFromServlet = conn.getInputStream();
    inputStreamFromServlet.read();
    inputStreamFromServlet.close();
    System.out.println("testing for the end8");
    catch(IOException io) { io.printStackTrace(); }
    //********servlet***********/
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    System.out.println("get");
    try
    FileWriter f = new FileWriter("G:\\Intranet\\wwwroot\\Contact\\contactlist\\Departments\\test.htm");
    f.write("testing");
    f.flush();
    f.close();
    catch(IOException io) { io.printStackTrace(); }
    i've never been able to see the "get" in the log.

  • Looking for a free install tool.

    Does anybody know of a simple tool to make a windows install? Nothing fancy just install there jar files set up a class path and a launcher?

    lwatcdr wrote:
    Thanks I already have that. It looks like it will take as long to write the installer as it did to write the code to start with.
    If all else fails I will use that.Self-extracting zip file? RPM? WebStart? A shell script? If the installer is as much effort as the app, something's wrong, or it's barely worth the effort of deployment

  • I'm looking for OS 9 install CD

    Hi there,
    I would like to re-install OS 9 to my old
    machine a G4 PowerBook (black keyboard)
    that runs 10.4.6
    Where can I purchase an install CD?
    Actually, I did a copy from a friend's OS 9 CD
    but nothing happened when I tried it.
    So I guess
    it needs the original Mac CD. Right?
    thanks!
    Thanos

    Hi Tom,
    Depending on which 667MHz model you have, it came with OS 9.2.1 or OS 9.2.2 >installed. You can't install an OS lower than that originally installed. So you >can't use a retail OS 9 installer (white with orange 9).
    I don't remember which version was installed originally as I did some
    repair lat year to that machine and had to erase OS 9.
    you will need a gray installer for your model Mac. Do you want to boot OS 9 or >just run in classic mode. If the latter, copy the System Folder from another >Mac that has 9.2.1 or 9.2.2 installed. A USB thumb dive works great for this. >Transfer the folder to your Mac. It won't interfere with your OS X system which >is in a folder titled System.
    Actually I want to run some old software so I guess by just running OS 9 will do
    the job. Right?
    thanks for the tips.
    Thanos

  • Am looking for driver to install HP All in one 2050 for window 7

    please install my printer into this computer!

    Hi @sentichris, and thanks  for reaching out to the HP Forums! I can happily help you install your Deskjet 2050.
    You can either install the full feature software with the link below, or you can use the  HP Printer Install Wizard for Windows
    The HP Printer Install Wizard for Window was created to help Windows 7, Windows 8, and Windows 8.1 users download and install the latest and most appropriate HP software solution for their HP Printer.
    DJ2050_J510_1313-1.exe
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Running Servlet in Tomcat 5.0

    Hi!
    This is with reference to my previous mail. I want to run a servlet program on Tomcat 5.0 installed in Windows XP/2000 computer. I was suggested from community previously to set classpath to jar files in tomcat directory. I did the same thing, but still thing are not working. The program is not getting compiled giving compilation error like javax.servlet.* package not found.
    It's very important for me. So, if any one can help, then it would be really great.
    Thanks.

    Copy the servlet-api.jar file which is found in Tomcat
    "common\lib" folder to your
    "C:\<java-home>\jre\lib\ext" folder. Then compile
    your servlet using the usual javac command.
    I think this is terrible advice.
    Actually this is not a good practice because the
    servelet-api.jar file will get outdated once you
    install the next version of Tomcat. Correct - that's why you shouldn't do it.
    But to save
    yourself time from setting classpaths or including
    classpath option in javac command, this is a good
    shortcut. I did the same process for testing servlets
    using Tomcat 5.0 on my windows-XP desktop. It saved me
    a lot of time.
    How much time does it take to type in the classpath? If you're doing it that often, you ought to script the process. Better yet, learn how to use Ant for all your build needs:
    http://ant.apache.org
    MOD

  • Servlet failed with Exception java.lang.LinkageError: Class javax/servlet/ServletConfig

              Hi
              I registered a web app with Weblogic 5.1 in the weblogic.properties file. I try
              to run the web app from my browser typing http://localhost:7001/xxx(Webapp name)
              and a jsp page. Following is the error I get. It would be helpful if some one
              could point me to a fix for this problem
              Tue May 01 13:56:41 CDT 2001:<I> <ServletContext-omxclient> Generated java file:
              D:\weblogic\myserver\omxclient\_tmp_war\jsp_servlet\_omx\_login.java
              Tue May 01 13:56:43 CDT 2001:<E> <ServletContext-omxclient> Servlet failed with
              Exception
              java.lang.LinkageError: Class javax/servlet/ServletConfig violates loader constr
              aints
              at jsp_servlet._omx._login._jspService(_login.java:59)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:105)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:123)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:742)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              textImpl.java:686)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              ContextManager.java:247)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              a:361)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

              Sorry, I didn't look very closely - the exception is for
              javax.servlet.ServletConfig - should be in weblogicaux.jar.
              Is there anything wrong with it? What service pack are you
              using? Could be a problem with weblogic.policy.
              mike
              >>java.lang.LinkageError: Class javax/servlet/ServletConfig
              "KC" <[email protected]> wrote:
              >
              >Hi Mike
              >The login.jsp page just contains a javascript function and two text boxes
              >in it.
              >Will try making changing it. If that is not the issue could you let me
              >know of
              >any other issues.
              >
              >"mreiche" <[email protected]> wrote:
              >>
              >>I would guess that login.jsp is a very large JSP and that
              >>the generated service method is too large for the classloader's
              >>liking. Try making it smaller.
              >>
              >>Mike
              >>
              >>
              >>"KC" <[email protected]> wrote:
              >>>
              >>>Hi
              >>>I registered a web app with Weblogic 5.1 in the weblogic.properties
              >>file.
              >>>I try
              >>>to run the web app from my browser typing http://localhost:7001/xxx(Webapp
              >>>name)
              >>>and a jsp page. Following is the error I get. It would be helpful if
              >>>some one
              >>>could point me to a fix for this problem
              >>>
              >>>Tue May 01 13:56:41 CDT 2001:<I> <ServletContext-omxclient> Generated
              >>>java file:
              >>> D:\weblogic\myserver\omxclient\_tmp_war\jsp_servlet\_omx\_login.java
              >>>Tue May 01 13:56:43 CDT 2001:<E> <ServletContext-omxclient> Servlet
              >>failed
              >>>with
              >>>Exception
              >>>java.lang.LinkageError: Class javax/servlet/ServletConfig violates
              >loader
              >>>constr
              >>>aints
              >>> at jsp_servlet._omx._login._jspService(_login.java:59)
              >>> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              >>> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              >>>pl.java:105)
              >>> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              >>>pl.java:123)
              >>> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              >>>textImpl.java:742)
              >>> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
              >>>textImpl.java:686)
              >>> at weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
              >>>ContextManager.java:247)
              >>> at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
              >>>a:361)
              >>> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:261)
              >>>
              >>> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >>>
              >>>
              >>
              >
              

  • Why javax.servlet.http.HttpServlet is serializable ?

    As per serialization definition if super class implements java.io.Serializable then all sub classes are also get that behaviour.
    while coming to Servlets : javax.servlet.GenericServlet implents java.io.Serializable and this servlet class is super class for javax.servlet.http.HttpServlet and this also implemts java.io.Serializable. Is there any specific reason ?

    Quoting a reply from the link below:
    >
    Technically, I believe the servlet container is allowed to "passivate" the servlet object to disk, in a similar way that EJB session beans can be. So you're correct to ask the question if your app will fail due to non-serializable fields.
    In practise, I've never heard of a container doing this, so it's really just legacy baggage from the bad old days of early J2EE. I wouldn't worry about it.
    >
    [http://stackoverflow.com/questions/179743/why-does-httpservlet-implement-serializable]

  • Deploying servlet on Tomcat using "ant install" not working. Please help.

    Hello. Normally I can find answers by using search, but I can't today for some reason. So please bare with me if this has been mentioned before. I will try to provide as much info as possible so that helping me isn't too much a chore. Thank you.
    I have downloaded and installed the JWSDP 1.3. and Tomcat is running. I am also using Ant 1.5.4 (previous installation - not one included with JWSDP) and modeled my build.xml file after the template provided here:
    http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/build.xml.txt.
    When I run ant on my respository, everything builds fine. But when I run Ant with the install target, I get the following error:
    BUILD FAILED
    file:C:/owl/build.xml:366: java.io.IOException: Server returned HTTP response co
    de: 401 for URL: http://localhost:8080/manager/deploy?path=%2Fowl&war=file%3A%2F
    %2FC%3A%5Cowl%2Fbuild
    Here is line 366 build.xml:
    localWar="file://${build.home}"/>
    ...which is included in this block for the target "install":
    <target name="install" depends="compile"
    description="Install application to servlet container">
    <deploy url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"
    localWar="file://${build.home}"/>
    </target>
    When I point my brower to the url located in the error verbose, I get the following:
    FAIL - Encountered exception java.lang.NullPointerException
    I am trying to get my environment set up correctly before I start spending time developing servlets, but I am getting tempted to just develop to servlets and "manually" installing/deploying them either by copying and pasting or by using the Tomcat manager. I would really like to do everything from Ant though if possible. Please help.

    I don't think this is at all correct:
    localWar="file://${build.home}"/>You've got to create a real WAR file - a JAR file with WEB-INF and all its minions inside it:
    http://access1.sun.com/techarticles/simple.WAR.html
    That's the file you need to refer to there. You can manage that with Ant too, of course.
    Here's what my Ant build.xml looks like for Web apps (there's a build-web.properties file that follows):
    build-web.xml
    <project name="Tomcat Build Tasks" default="clean" basedir=".">
        <target name="init-props">
            <tstamp>
                <format property="touch.time" pattern="MM/dd/yyyy hh:mm aa" />
            </tstamp>
            <filterset id="ant.filters">
                <filter token="DATE" value="${TODAY}" />
                <filter token="TIME" value="${TSTAMP}" />
            </filterset>
            <!-- Load in all the settings in the properties file -->
            <property file="build.properties" />
            <!-- Load in all Tomcat settings in the properties file -->
            <property file="build-web.properties" />
        </target>
        <target name="prepare" depends="init-props">
            <mkdir dir="${war.classes}"/>
            <mkdir dir="${war.lib}"/>       
            <mkdir dir="${manifest}" />
        </target>
        <target name="clean" depends="init-props" description="clean up temporary files">
            <delete file="${project}.war" />   
            <delete dir="${war.root}"/>
            <delete dir="${manifest}" />
        </target>
        <target name="set-tomcat-classpath" depends="prepare">
            <path id="tomcat.class.path">                  
                <fileset dir="${tomcat.home}/bin">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${tomcat.home}/shared/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${tomcat.home}/common/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${tomcat.home}/server/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
                <fileset dir="${ant.home}/lib">
                    <patternset>
                        <include name="**/*.jar" />
                    </patternset>
                </fileset>
            </path>              
        </target>
        <target name="create" depends="set-tomcat-classpath" description="create the war file">
            <!-- All files at root level -->       
            <!-- Temporarily put the JSPs at root until you figure this out -->
            <copy todir="${war.root}">
                <fileset dir="${src.jsp}"/>
            </copy>
    <!--
            <copy todir="${war.root}">
                <fileset dir="${src.html}" includes="*.html"/>
            </copy>
    -->
            <copy todir="${war.root}/css">
                <fileset dir="${src.css}"/>
            </copy>
            <copy todir="${war.root}/images">
                <fileset dir="${src.images}"/>
            </copy>
            <copy todir="${war.root}/js">
                <fileset dir="${src.js}"/>
            </copy>
            <!-- All files at the WEB-INF level and below -->       
            <copy todir="${war.web}">
                <fileset dir="${src.etc}" includes="web.xml"/>
            </copy>
            <!-- All files in the CLASSPATH lib -->
            <copy todir="${war.web}/lib">
                <fileset dir="${src.lib}" includes="**/*.jar" excludes="**/*-tests.jar, **/junit.jar"/>
            </copy>
            <!-- Put the dispatcher XML in WEB-INF/config -->
            <copy todir="${war.web}/config">
                <fileset dir="${src.etc}" includes="${project}-config.xml"/>
            </copy>
            <!-- Put XSL stylesheets in WEB-INF/xsl -->
            <copy todir="${war.web}/xsl">
                <fileset dir="${src.xsl}" includes="**/*.xsl"/>
            </copy>
            <!-- Put the project JAR file in WEB-INF/lib -->
            <copy todir="${war.web}/lib">
                <fileset dir="${deploy}" includes="**/${project}.jar"/>
            </copy>
            <!-- Create the manifest -->
            <buildnumber />
            <manifest file="${manifest}/manifest.mf">
                <attribute name="Implementation-Title"      value="${project}" />
                <attribute name="Built-By"                  value="${user.name}"/>
                <attribute name="Build-Date"                value="${TODAY}" />
                <attribute name="Major-Version"             value="${major}" />
                <attribute name="Minor-Version"             value="${minor}" />
                <attribute name="Build-Number"              value="${build.number}" />
            </manifest>
            <!-- Create the WAR file -->
            <jar jarfile="${project}.war"
                 manifest="${manifest}/manifest.mf">
                <fileset dir="${war.root}"/>
                <metainf dir="${src.etc}" includes="context.xml"/>
            </jar>
        </target>
        <target name="create-tomcat-admin-tasks" depends="set-tomcat-classpath">
    <!--
            <pathconvert targetos="windows" refid="tomcat.class.path" property="converted.class.path" />
            <echo message="CLASSPATH: ${converted.class.path}" />
    -->       
            <taskdef name="install"     classname="org.apache.catalina.ant.InstallTask"     classpath="tomcat.class.path"/>
            <taskdef name="remove"      classname="org.apache.catalina.ant.RemoveTask"      classpath="tomcat.class.path"/>       
            <taskdef name="reload"      classname="org.apache.catalina.ant.ReloadTask"      classpath="tomcat.class.path"/>
            <taskdef name="deploy"      classname="org.apache.catalina.ant.DeployTask"      classpath="tomcat.class.path"/>       
            <taskdef name="undeploy"    classname="org.apache.catalina.ant.UndeployTask"    classpath="tomcat.class.path"/>       
            <taskdef name="start"       classname="org.apache.catalina.ant.StartTask"       classpath="tomcat.class.path"/>       
            <taskdef name="stop"        classname="org.apache.catalina.ant.StopTask"        classpath="tomcat.class.path"/>       
            <taskdef name="list"        classname="org.apache.catalina.ant.ListTask"        classpath="tomcat.class.path"/>       
            <taskdef name="resources"   classname="org.apache.catalina.ant.ResourcesTask"   classpath="tomcat.class.path"/>       
            <taskdef name="roles"       classname="org.apache.catalina.ant.RolesTask"       classpath="tomcat.class.path"/>
        </target>
        <target name="install" depends="create-tomcat-admin-tasks" description="install the war file on Tomcat">
            <install    url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}"
                        config="file:/${basedir}/${src.etc}/context.xml"
                        war="file:/${basedir}/${project}.war" />
        </target>
        <target name="remove" depends="create-tomcat-admin-tasks" description="remove the war file on Tomcat">
            <remove     url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="reload" depends="create-tomcat-admin-tasks" description="reload the war file on Tomcat">
            <reload     url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="deploy" depends="create-tomcat-admin-tasks" description="deploy the war file on Tomcat">
            <deploy    url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}"
                        config="file:/${basedir}/${src.etc}/context.xml"
                        war="file:/${basedir}/${project}.war" />
        </target>
        <target name="undeploy" depends="create-tomcat-admin-tasks" description="undeploy the war file on Tomcat">
            <undeploy   url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="start" depends="create-tomcat-admin-tasks" description="start an application on Tomcat">
            <start      url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}"/>
        </target>
        <target name="stop" depends="create-tomcat-admin-tasks" description="stop an application on Tomcat">
            <stop       url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        path="/${project}" />
        </target>
        <target name="list" depends="create-tomcat-admin-tasks" description="list all applications running on Tomcat">
            <list       url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"/>
        </target>
        <target name="resources" depends="create-tomcat-admin-tasks" description="list all resources on Tomcat">
            <resources  url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"/>
        </target>
        <target name="data-sources" depends="create-tomcat-admin-tasks" description="list all data sources on Tomcat">
            <resources  url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"
                        type="javax.sql.DataSource"/>
        </target>
        <target name="roles" depends="create-tomcat-admin-tasks" description="list all user roles on Tomcat">
            <roles      url="${tomcat.manager.url}"
                        username="${tomcat.username}"
                        password="${tomcat.password}"/>
        </target>
    </project>
    build.properties
    # Properties file for setting up an Ant build.xml
    # Project specific items that change each time
    project=api-prototype
    major=1
    minor=0
    version=${major}.${minor}
    jar.name=${project}
    versiondate=${TODAY}
    # Directory structure (these should never change)
    bin=bin
    deploy=deploy
    doc=doc
    manifest=META-INF
    xml=xml
    # Everything under src should come out of a repository
    src=src
    src.bin=${src}/bin
    src.config=${src}/config
    src.data=${src}/data
    src.dtd=${src}/dtd
    src.java=${src}/java
    src.lib=${src}/lib
    src.profile=${src}/profile
    src.properties=${src}/properties
    src.schema=${src}/schema
    src.sql=${src}/sql
    src.templates=${src}/templates
    src.testdata=${src}/testdata
    src.xml=${src}/xml
    src.xsl=${src}/xsl
    # These are created and deleted by Ant each time
    javadocs=javadocs
    reports=reports
    output=output
    output.classes=${output}/classes
    output.lib=${output}/lib
    # Required for proper use of XDoclet
    xdoclet.home = C:/Tools/xdoclet-1.2b3
    build-web.properties
    war.root=war-root
    war.pages=${war.root}/pages
    war.web=${war.root}/WEB-INF
    war.classes=${war.web}/classes
    war.css=${war.web}/css
    war.js=${war.web}/js
    war.lib=${war.web}/lib
    war.tld=${war.web}/tld
    # Properties needed by Tomcat tasks
    ant.home =
    tomcat.home         =
    tomcat.manager.url  = http://localhost:8080/manager
    tomcat.username     =
    tomcat.password     = MOD

  • Tomcat 5 can�t find javax.servlet.http.HttpServlet

    Hi.
    I don�t know if this is a simple question or not, but i didn�t find anything solving this problem and
    i�m new to tomcat......
    I�m trying to deploy my web application in my system. (Windows XP , j2sdk1.4.2_02, jakarta Tomcat 5, jakarta struts 1.1 and jakarta taglibs 1.1).No problems while compiling the .java classes and checked all the .jar files that my application needs to work (or that is what I think). I expand my .war file at /webapps on tomcat directory and startup Tomcat. Tomcat starts up but while starting I get the following errors...
    17-feb-2004 17:58:50 org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on port 8080
    17-feb-2004 17:58:51 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 4948 ms
    17-feb-2004 17:58:51 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    17-feb-2004 17:58:51 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.0.18
    17-feb-2004 17:58:51 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    17-feb-2004 17:58:51 org.apache.catalina.core.StandardHost getDeployer
    INFO: Create Host deployer for direct deployment ( non-jmx )
    17-feb-2004 17:58:51 org.apache.catalina.core.StandardHostDeployer install
    INFO: Processing Context configuration file URL file:C:\softProyecto\Tomcat5\conf\Catalina\localhost\admin.xml
    17-feb-2004 17:58:55 org.apache.commons.digester.Digester endElement
    GRAVE: End event threw exception
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
         at org.apache.commons.digester.Rule.end(Rule.java:276)
         at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
         at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:123)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.commons.digester.Digester.parse(Digester.java:1567)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:520)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:906)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:527)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
         at org.apache.catalina.core.StandardService.start(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    Caused by: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
    it seems like C:\softProyecto\Tomcat5\conf\Catalina\localhost\admin.xml (C:\softproyecto\tomcat5 = tomcat�s home directory) needs javax.servlet.http.HttpServlet. And that comes from a Tomcat .jar file, i think.
    After more and more messages..... here it comes my application (MapasRuido)...which needs javax.servlet.http.HttpServlet and compiled ok at compiling time!
    INFO: Installing web application at context path /MapasRuido from URL file:C:\softProyecto\Tomcat5\webapps\MapasRuido
    17-feb-2004 18:02:48 org.apache.catalina.startup.HostConfig deployDirectories
    GRAVE: Error durante el despliegue del directorio MapasRuido de la aplicaci�n web
    java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1296)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1677)
         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:900)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1350)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1677)
         at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:900)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1350)
         at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:979)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
         at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3960)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4283)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:638)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:320)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:875)
         at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:727)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:477)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1008)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:394)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
         at org.apache.catalina.core.StandardService.start(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:598)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
    17-feb-2004 18:02:48 org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path from URL file:C:\softProyecto\Tomcat5\webapps\ROOT
    17-feb-2004 18:02:48 org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /servlets-examples from URL file:C:\softProyecto\Tomcat5\webapps\servlets-examples
    17-feb-2004 18:02:48 org.apache.catalina.core.StandardHostDeployer install
    INFO: Installing web application at context path /tomcat-docs from URL file:C:\softProyecto\Tomcat5\webapps\tomcat-docs
    17-feb-2004 18:02:49 org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on port 8080
    tomcat�s web applications servlets-examples and tomcat-docs work fine, but my application doesn�t. Is there any relation between those errors? any idea about what happens?
    Thank you in advance.

    "...The CLASSPATH is ignored by Tomcat, of course. AND javac. AND java. AND Eclipse. AND NetBeans. AND JBuilder. And just about everything else in the Java universe..."
    What I mean by this, of course, is that each of these requires you to set the CLASSPATH in the way they expect. None of them even looks for a system environment variable named CLASSPATH. You can waste a lot of time thinking that your CLASSPATH is "all set", but it's not.
    Tomcat assumes the following for your Web app's CLASSPATH:
    (0) The JDK rt.jar, of course,
    (1) All the JARs in TOMCAT_HOME/common/lib,
    (2) All the JARs in your WEB-INF/lib,
    (3) All the .class files in your WEB-INF/classes
    That's it. (Maybe one or two others, but those are the important ones.)
    Eclipse and NetBeans have their own way to set CLASSPATH for each project. You'll have to learn how for those IDEs.
    The CLASSPATH is still vitally important. The system environment variable just isn't part of it. - MOD

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

Maybe you are looking for

  • Best Practice for SUP and WSUS Installation on Same Server

    Hi Folks, I have a question, I am in process of deploying SCCM 2012 R2... I was in process of deploying Software Update Point on SCCM with one of the existing WSUS server installed on a separate server from SCCM. A debate has started with of the coll

  • ActionScript 2 need to show graphic when doors open

    I had this working at one time but having a problem with adding a graphic display when the door starts to open. A button initiates the door to open, here is the script. the second part is where it fails, anyone help please. Can send fla if needed on

  • BAPI_SALESORDER_CHANGE problem in updating qty

    hi, i am working in bapi_saleorder_change . in that i want to update some fields but  some fields are not update properly. for qty(vbap-kwmeng) i set BAPISDITM-TARGET_QTY = qty ,  BAPISDITMx-TARGET_QTY = 'X' and BAPISDITMX-UPDATEFLAG = 'U' in the int

  • Interesting problem : table content difference

    Hi to all I am facing a problem... I am modifying a HR report ... I aaded wagetype .... In client 190 when i am referring the PA0008 table values are coming in fields for wage type 1065,1067. So i am getting the correct result in report o/p. But afte

  • Disabling of FORWARD and BACK Button of Internet Explorer.......

    Hello everybody, Can anyone tell me how to disable the FORWARD and BACK Button of Internet Explorer through JavaScript.......If possible give me the code snippet.....