| Author |
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
Marshal
Joined: Jan 10, 2002
Posts: 56224
|
|
|
Moving to the Tomcat forum.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12271
|
|
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. Bill
|
 |
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 solution.how to configure web.xml or server.xml. any cool links to Tomcat linus deployment will also be very helpfull. thanks
|
 |
Dirk Schreckmann
Sheriff
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 it.no 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 fine.it'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 file.is 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
|
 |
 |
|
|
subject: configuring web application
|
|
|