tomcat5.5.7 , where to put a new application

Posted on 2005-04-10
Last Modified: 2010-04-01
Hello, experts,

I'm using tomcat5.5.7, and I want to know besides I can put the application under : <tomcat_home>\jakarta-tomcat-5.5.7\webapps\ROOT, what else place( other directory) I can put the application. It shoud be in the : http://localhost:8080/manager/html, but how?

Thanks for your reply
Question by:lilyyan
    LVL 8

    Accepted Solution

    You can create a project for your application under this directory
    Create a folder here and build the rest of the structure inside that

    Expert Comment

    You can put your application anywhere you want and simply make a reference to it in your server.xml and then it will be picked up automatically by localhost as you name it there too.

    Author Comment

    Hi, thanks for the replies
    I wish to use the management tool in http://localhost:8080/manager/html   Any idea ?

    Expert Comment

    Yes thats fine. Just go to the server.xml file located at C:\jakarta-tomcat-3.3.1\conf\ or wherever you have installed your tomcat server to.  In the server.xml file add a context to point to manager folder.  To do this look about 3/4 way down the page you will find an example on how to do it, change the path to point to your folder e.g. path="c:\manager\html" Then change the name to manager e.g. name="manager"  Then you can access by typing  http://localhost:8080/manager/html

    Author Comment

    Hi, Raftor

    Appreciate your reply. i can go to http://localhost:8080/manager/html ( if you use tomcat.5.5.7). the question is how to fill out the items in this page, if i want to deploy an web application under another directory instead of ...\ROOT ?

    Assisted Solution

    Where it says <!-- Tomcat Root Context --> in your server.xml file you can add a new context here to point to your
    directory structure that contains your files.

    Lets say for example your files are located at c:\project and you
    want to be able to type in http://localhost/project into the browser to display the index.jsp file, this is the new context you would add.

    <Context path="/project" docBase="C:\project" debug="0"
                            reloadable="true" crossContext="true" />

    The position of where to add the context is about 200 lines down the page and the area is denoted by <!-- Tomcat Root Context -->


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    unit test DAO layer 1 132
    AlarmClock Challenge 35 143
    TreeSet comparator example 7 86
    instanceof  operator in java 26 54
    Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
    Great sound, comfort and fit, excellent build quality, versatility, compatibility. These are just some of the many reasons for choosing a headset from Sennheiser.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now