...
- I am unable to compile my JSP!
- I can't get servlets to work under /servlet/*!
- Why is the invoker evil?
- How to I get Tomcat's version number?
- Tomcat eats 100% of the CPU!
- How do I get a customized error page?
- Should I use the LE version?
- How do I configure Tomcat to NOT to store the sessions during shutdown?
- Is there a DTD for server.xml?
- How do I change the welcome file? ( I want to show index.jsp instead of index.html)
- How do I enable/disable directory listings?
- How do I use symbolic links with jars?
- How do I change the name of the file in the download Save-As dialog from a servlet? (or jsp)
- Is tag pooling broken? It doesn't call release!
- How do I disable tag pooling?
- Why do I get java.lang.IllegalStateException ?
- How do I make a scheduled event on Tomcat?
- What is Element "web-app" does not allow "servlet" here?
- How do I open a file for reading in my webapp?
- Can I run tomcat with the JRE, or do I need the full JDK?
- Is tomcat an EJB server? Can I use EJBs with tomcat?
- Can I access Tomcat's JNDI provider from outside tomcat?
- Who uses tomcat in production?
- I'm getting java.lang.ThreadDeath exceptions when reloading my webapp.
- Help! Even though I run shutdown.sh (or shutdown.bat), Tomcat does not stop!
- How do I debug JSP errors in the Admin web application?
- What order do webapps start (or How can I change startup order)?
- What's the different between a Valve and Filter?
- How do I set system properties at startup?
Answers
Anchor | ||||
---|---|---|---|---|
|
...
In 1.4.1 JVMs there is a memory leak which could hampering the garbage collector. More information Otherwise - get a memory profiler and/or tweak your memory settings.
Anchor | ||||
---|---|---|---|---|
|
Example (windows): SET JAVA_OPTS='-DpropName=propValue'
Example (UNIX): export JAVA_OPTS='-DpropName=propValue'
Windows service users - use this
...
get a customized error page?
In web.xml ...
No Format |
---|
<error-page>
<error-code>404</error-code> |
In web.xml ...
No Format |
---|
<error-page> <location>/error/404.html</location> <error-code>404<</error-code> <location>/error/404.html</location> </error-page> page> |
You may also catch error 500's as well as other specific exceptions or exceptions which extend Throwable. For more information, see the Servlet Specification for all the gory details of how you can play with this.
...
If you can achieve the desired functionality with a Filter, it is the preferred way to go.
Anchor | ||||
---|---|---|---|---|
|
Set JAVA_OPTS to be something BEFORE calling startup.bat or before calling catalina.bat. (or you can edit those files, but it isn't advised)
Example (windows): SET JAVA_OPTS='-DpropName=propValue'
Example (UNIX): export JAVA_OPTS='-DpropName=propValue'
Windows service users - use this
...