Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

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
0
lilyyan
Asked:
lilyyan
  • 3
  • 2
2 Solutions
 
koppchaCommented:
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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
 
RaftorCommented:
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now