File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

configuring web application

 
Murasoli Maran
Ranch Hand
Posts: 193
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64173
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Tomcat forum.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic