Categories

Main
Database
Java
Microsoft.NET
Adabas
DB2
Informix
Microsoft SQL Server
MySQL
Oracle
Pervasive.SQL
PostgreSQL
Sybase
Other
ASP
ColdFusion
Crystal Reports
Delphi, C etc
JAVA
Microsoft.NET
Perl and the DBI
PHP
ANSI SQL
Unix Shell Scripts
Visual Basic
XML & XSLT
Corel Paradox
FileMaker
Microsoft Access
Microsoft Excel
Other PC Databases
Applications & Tools
Database Concepts & Design
EJB programming & troubleshooting
EJB design
General J2EE
XML & Web services
Web tier: servlets, JSP, Web frameworks
Performance and scalability
Industry news
TSS feedback
Mobicents Contributors
Mobicents Users
JSLEE Resource Adaptor Types
Planning JavaOne 2008
Sun Tech Days
Other Java conferences
Binary Web Services and XML
Metro and JAXB
GlassFish
GlassFish Plugins
Project jMaki
GlassFish WebTier
Mural
Java Development Tools
Java WS & XML Community News
JAXP
Java SE
6uN Early Access
Java Quick Starter
Java SE Snapshots: Project Feedback
JCK Forum
Feedback and Suggestions
JDK Distros
JDK Open Source
General JSR Discussion
JCP 2.6
JXTA Community Forum
ME Interest
ME Cool Apps
ME General Help
ME Feedback & Suggestions
ME Application Developer Interest
Blu-ray Disc Java
ME Developer Days
Squawk
Mobile Developer Alliance
OpenCable
LWUIT
JavaFX Script Language Discussion
OpenJFX General Discussion
Scene Graph
General Performance Discussion
Your Java Career
NetBeans 6.0
Servlets
JSP
JSF
Portals and Portlets
EJB and Other Java EE Technologies
Distributed Java
Object Relational Mapping
JDBC
Web Services
Swing / AWT / SWT / JFace
JNLP and Web Start
Java Micro Edition
Sockets and Internet Protocols
Threads and Synchronization
Performance
Applets
I/O and Streams
Other Java APIs
Game Development
Java in General (beginner)
Java in General (intermediate)
Java in General (advanced)
Programmer Certification (SCJP)
Developer Certification (SCJD)
Associate Certification (SCJA)
Web Component Certification (SCWCD)
EJB Certification (SCBCD)
Mobile Application Certification (SCMAD)
Architect Certification (SCEA)
Web Services Certification (SCDJWS)
XML Certification
Product and Other Certifications
Mock Exam Errata
Sun Certification Results
Authors' Corral
Book Reviews
Events
Bunkhouse Porch
Teachers' Lounge
Testing
OO, Patterns, UML and Refactoring
IDEs, Version Control and other tools
Ant, Maven and Other Build Tools
Linux / UNIX
Mac OS
HTML and JavaScript
XML and Related Technologies
Agile and Other Processes
General Computing
Security
Groovy
Scala
Other Languages
Struts
Application Frameworks
Other Open Source Projects
BEA/Weblogic
IBM/Websphere
Oracle/OAS
Apache/Tomcat
JBoss
Other Java Products and Servers
JavaRanch
Cattle Drive (java college)
Moderators Only
Trash Can
Jobs Offered
Jobs Wanted
Jobs Discussion
Meaningless Drivel
Programming Diversions
Blatant Advertising
Java Announcements
New To Java
Advanced Java
Java Applets
Networking
Threads and Synchronization
Java 2D
AWT / Swing
SWT / JFace
CLDC and MIDP
CDC and Personal Profile
Sun Java Wireless Toolkit
Enterprise JavaBeans
JavaServer Pages (JSP) and JSTL
Java Servlet
JavaServer Faces
Web Frameworks
Database
XML
Lucene
NetBeans
Eclipse
IntelliJ IDEA
JCreator
Other IDEs
Java Tutorials
Java Tips
Jobs Discussion
Jobs Offered
Jobs Wanted
Professional Certification
Forum Lobby
Java Blogs
Introductions
Reviews / Advertising
Suggestions & Feedback

Resources

Java Database
Linux
Coding
Mobile
Hardware
Software Development
Software Development
iOS,OS X
iOS,OS X
ORACLE
IBM DEVELOPER
IBM DEVELOPER
MSDN
MSDN


Tags

Apache/Tomcat

The Tomcat Servlet Container

Tomcat settings in an production environment?


I'm currently about to go live with a webapp I've been working on for some time. I'm using Tomcat 5.5.1.7 as a server, and in that regard I've got some questions.Should I place my webapp under the ROOT folder in Tomcat?$CATALINA_HOME/webapps/ROOT/If not how else can I get the webapp to be displayed at the Tomcat root? I.ehttp://www.mysite.com/and nothttp://www.mysite.com/mywebapp/Are there any other Tomcat settings that needs to be changed in an production environment?All advices are much appreciated!

   
   
   
   
   
      Renaming your webapp to ROOT and placing under the webapps directory is the easiest way to deploy it as the root app on the server.Tomcat, pretty much ships in production mode.I usually change thing more for development mode.You might want to un-deploy any of the apps that ship with Tomcat (unless you're actually using them).I keep the manager app around but I re-name it.I also turn off directory browsing (from conf/web.xml) and build my own 404 error page that doesn't show the make and model of the appserver to any would be cracker.--------------------Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples

   
   

   
   
      Thank you for the informative reply!How can I prevent Tomcat from displaying stack traces in case of unforeseen errors? Is that also in conf/web.xml perhaps?Do you have any idea how the performance on Tomcat is compared to other lightweight servers (like i.e. Resin).[ September 23, 2006: Message edited by: Egil Poma ]

   
   
   
   
   
      You can create a custom 500 error page (as well as a custom 404 error page) for you app and map them with the web.xml file under your app's WEB-INF directory.Example:code:<error-page><error-code>404</error-code><location>/404-error.jsp</location></error-page><error-page><error-code>500</error-code><location>/500-error.jsp</location></error-page></web-app>--------------------Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples

   
   
   
   
   
      The default servlet, is mapped in the tomcat/conf/web.xml.This is where you would shut off directory browsing for all of Tomcat.code:<!--   listings            Should directory listings be produced if there --><!--                       is no welcome file in this directory?  [false] --><!--                       WARNING: Listings for directories with many    --><!--                       entries can be slow and may consume            --><!--                       significant proportions of server resources.   --><!--                                                                      --><--------------------Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples


Related Links

where can I find ssl enabled apache binary for windows
Getting TomCat5.5 to timestamp stdout logs
Problem refreshing a Stored Procedure
Failed to install Tomcat5 service. Check your settings and Permissions
foreach not working in scriptlet
How does a ServletRequest get created
help plz...tomcat on windows 98 check settings error
Tomcat on windows 98 no permission error
SQLNestedException: Cannot create JDBC driver of class ''
Cannot Compile Servlet with Tomcat
Problem while Installing Tomcat
missing application web.xml using defaults
cannot invoke servlet in Tomcat
Change the icon of an app...
about tomcat
Tomcat