THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Wiki Markup \[#Q1 I am unable to compile my JSP!\]
Wiki Markup \[#Q2 I can't get servlets to work under /servlet/\*!\]
Wiki Markup \[#Q3 Why is the invoker evil?\]
Wiki Markup \[#Q4 How to I get Tomcat's version number?\]
Wiki Markup \[#Q5 Tomcat eats 100% of the CPU!\]
Wiki Markup \[#Q6 How do I get a customized error page?\]
Wiki Markup \[#Q7 Should I use the LE version?\]
Wiki Markup \[#Q8 How do I configure Tomcat to NOT to store the sessions during shutdown?\]
Wiki Markup \[#Q9 How do I disable tag pooling?\]
Wiki Markup \[#Q10 Is there a DTD for server.xml?\]
Wiki Markup \[#Q11 How do I change the welcome file? ( I want to show index.jsp instead of index.html)\]
Wiki Markup \[#Q12 How do I enable/disable directory listings?\]
Wiki Markup \[#Q13 How do I use symbolic links with jars?\]
Wiki Markup \[#Q14 How do I change the name of the file in the download Save-As dialog from a servlet? (or jsp)\]
Wiki Markup \[#Q15 Is tag pooling broken? It doesn't call release!\]
Wiki Markup \[#Q16 Why do I get java.lang.IllegalStateException ?\]
Wiki Markup \[#Q17 How do I make a scheduled event on Tomcat?\]
Wiki Markup \[#Q18 What is Element "web-app" does not allow "servlet" here?\]
Wiki Markup \[#Q19 How do open a file for reading in my webapp?\]
Wiki Markup \[#Q20 Can I run tomcat with the JRE, or do I need the full JDK?\]
Wiki Markup \[#Q21 Is tomcat an EJB server? Can I use EJBs with tomcat?\]
Wiki Markup \[#Q22 Can I access Tomcat's JNDI provider from outside tomcat?\]
Wiki Markup \[#Q23 Who uses tomcat in production?\]
Wiki Markup \[#Q24 I'm getting java.lang.ThreadDeath exceptions when reloading my webapp.\]
Wiki Markup \[#Q25 Help! Even though I run shutdown.sh (or shutdown.bat), Tomcat does not stop!\]
Wiki Markup \[#Q26 How do I debug JSP errors in the Admin web application?\]
Wiki Markup \[#Q27 What order do webapps start (or How can I change startup order)?\] \\
Answers
I am unable to compile my JSP!
...
- Download Tomcat's base and admin webapp distributions (binaries), unzip to a directory of your choice. We'll use c:\temp in this example. 2. Edit c:\temp\server\webapps\admin\WEB-INF\web.xml to remove the JSPC-generated servlet mappings. These are marked in the web.xml file with comments indicating the beginning and end of the JSPC section. You can simply comment out all these servlet-mappping elements. Be careful not to comment out other servlet mappings such as the Struts dispatcher servlet. 3. Open c:\temp\server\webapps\admin\WEB-INF\lib\catalina-admin.jar with a zip file program like
WinZip
. Remove the files named *_jsp.class, as these are the compiled JSPs. Do not remove the other class files, the ones under the org/apache/ paths. 4. Download a Tomcat source distribution and unzip it to a directory of your choice, but not the same directory that you used above. We'll use c:\src in this example. 5. Copy everything except the WEB-INF/lib directory from c:\src\container\webapps\admin to c:\temp\server\webapps\admin. Now you will have the uncompiled admin webapp JSPs. 6. If you haven't already, define an admin user in %CATALINA_HOME%\conf\tomcat-users.xml. 7. Start Tomcat, navigate to http://localhost:8080 (or your actual server:port if you have modified the default values), and access the admin web application. It will run slower because Tomcat is now compiling the JSPs on-demand the first time you access them, but should otherwise appear normal.
What order do webapps start (or How can I change startup order)?
There is no expected startup order. Neither the Servlet spec nor Tomcat define one. You can't rely on the apps starting in any particular order.