• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

configuring web application

 
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the Tomcat forum.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Murasoli Maran
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic