File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes configuring web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "configuring web application" Watch "configuring web application" New topic

configuring web application

Murasoli Maran
Ranch Hand

Joined: Jun 08, 2003
Posts: 193
Hi all,
I m having a JSP application
my path in webserver is /home/users/myuser/
i wanna install my application in this folder.but the tomcat webapps folder is in another directory.
how to configure Tomcat or context settings(web.xml)for tomcat to look my app?.
and if u dont mind,plz tell me the issues related to JSP + Tomcat + Mysql common deployment issues.
thanks in advance.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

Moving to the Tomcat forum.

[Asking smart questions] [About Bear] [Books by Bear]
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Exactly what is your setup? It sounds like you already have a running webserver (IIS? Apache? what?) and now want to add Tomcat to handle JSP.
You should also mention the operating system, the Java SDK version and the Tomcat version.
Murasoli Maran
Ranch Hand

Joined: Jun 08, 2003
Posts: 193
Hi Brogden,
I have developed the application in windows.using Tomcat 4.1.and it's working cool.
my deployment server is Gentoo Linux.
the version of tomcat in server is 4.1(similer to me).
and the directory to put my files is /home/users/myuser/.not webapps.
how to deply my application?.i have developed some webapps but first in deployment.
plz tell me the to configure web.xml or server.xml.
any cool links to Tomcat linus deployment will also be very helpfull.
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
You may want to simply configure the docBase context of your web application. You could do this either in the server.xml file, or in a separate context configuration file.
For example, to install my admin web app (running at context root /admin), I place a context configuration file named admin.xml in the webapps directory of tomcat, with the following contents.You could place a similar Context tag in the server.xml file.
Or, (I'm not sure I'm remembering this option correctly) you could edit the Host tag in the server.xml file to change the appBase value from webapps to a different location. Then, any web app could be installed to that other location.
If you have another domain to use, then you could create an entirely new Host tag for that domain.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Murasoli Maran
Ranch Hand

Joined: Jun 08, 2003
Posts: 193
Thanks for your reply.
but i have done results.maybe some configuration mistakes from me.i'll tell u the data more specific.
my web application now resides TOMCAT ROOT/webapps/mywebapplication folder.
it works's not a war file.
My application now having a web.xml file inside TOMCAT ROOT/webapps/mywebapplication/WEB-INF directory.but i dont have a mywebapplication.xml it required?.If so,plz tell me the location and configuration.
In server.xml,i have made changes as you told.but i dont made any changes in my web.xml file.
I think it's a small problom.anyone plz help me
I agree. Here's the link:
subject: configuring web application
It's not a secret anymore!