Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Steps for creating development direcory in Tomcat

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am new to Tomcat.I configured tomcat 4.1.27 and it works fine.I need to create development directory for my project outside tomcat home directory.Could u tell me steps for creating development direcory.Also tell me whether are we having anything like Global.asa in tomcat so that i can intialize the application variables.Also tell me how to configure session timeout and default web page.

Thanks in advance...
Regards,
Vasu
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I will tackle only the first question. The others are beyond me. Well not the default page question anyway. Maybe you could go into a little more detail as to what you want.
You can put your development directory anywhere you want. I have placed mine in ~/Projects/DevelServlet. I also set up a symbolic link to the deployment directory. As long as your classpath is set up properly, you will be fine.
Good luck,
Elton
[ October 03, 2003: Message edited by: Elton Hughes ]
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For development/deployment, read this (and every linked page under 'Table of Contents'):
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

As for the other questions... understand the following about Tomcat and webapps. Webapps are configured through a web.xml file. web.xml is ALWAYS located in the WEB-INF directory of your application. It's DTD is extremely self-documenting. Download this DTD and view it with a text viewer. IE tries to parse the DTD as XML and apply it's default XSL stylesheet and fails (duh). You'll need to use Netscape or wget to retrieve the dtd. update: I've just tried it with IE, and it seems to work. Perhaps that was a different file I was remembering. YMMV.

The Tomcat part to understand? Tomcat will read in $CATALINA_HOME/conf/web.xml and apply all the settings in this file as the DEFAULTS for any application deployed. So, to override any of those settings for a particular application, you'd make an appropriate entry in that application's WEB-INF/web.xml file.

global.asa -> this is an ASP thing? I don't know how ASP does it, but in JSP-land, application-level parameters are configured through web.xml. As a hint.. you're looking for <context-param>

session-timeout -> is also in web.xml. You are looking for <session-config>

default web page -> you get one guess. You are looking for <welcome-file-list>

If you don't download the DTD, then there are some minimal comments within the CATALINA_HOME/conf/web.xml that will help you out.
[ October 03, 2003: Message edited by: Mike Curwen ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic