|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
We've just installed Tomcat on our server, but it doesn't seem to want to display .jsp pages. It always gives 404 Errors.
URL The file is definitely there. What would be causing this? |
|
#2
|
|||
|
|||
|
Two ways to troubleshoot:
1) Start with basic test case and see if it works. 2) Simplify the current situation and clean it up. Take the first and second approach: 1) a. Try a totally simple hello WWW webapp in tomcat. Register a context element in server.xml b. Once you get that to work, copy some files from your real webapp and restart Tomcat. 2) a. take a look at your current web-app. b. Look at the doctype in your web.xml file. Is it missing the xml declaration and/or doctype? Are all of the elements in the correct order? Do the servlet-mappings and url-patterns exist? A bad web.xml file will cause problems. Usually this problem prevents Tomcat from even starting, but I am using 4.0.2, not 4.0.3, maybe there is a difference. you can save your web.xml file as _web.xml and make a new web.xml to test. Just use an xml declaration, a doctype, and a webapp element.
__________________
http://dhtmlkitchen.com/ |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > 404 Error With Apache Tomcat/4.0.3 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|