tomcat5.5.7 , where to put a new application

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
lilyyanAsked:
Who is Participating?
 
koppchaConnect With a Mentor Commented:
You can create a project for your application under this directory
<tomcat_home>\jakarta-tomcat-5.5.7\webapps\
Create a folder here and build the rest of the structure inside that
0
 
RaftorCommented:
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.
0
 
lilyyanAuthor Commented:
Hi, thanks for the replies
I wish to use the management tool in http://localhost:8080/manager/html   Any idea ?
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

 
RaftorCommented:
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
0
 
lilyyanAuthor Commented:
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 ?
0
 
RaftorConnect With a Mentor Commented:
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 -->

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.