Title: Message
Guys,
 
I am having a problem with using tomcat.  I installed it fine - and have run the JSP examples, and the servlet examples o.k.  I now need to add a new application ...I installed the application as per the following folder structure:-
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
jakarta-tomcat-4.0.1
    webapps
        examples
        harweb
 
I then tried the examples...just in case - and all was well....But when I tried the /harweb application i got the 404...
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Apache Tomcat/4.0.1 - HTTP Status 404 - /harweb
type Status report
message /harweb
description The requested resource (/harweb) is not available.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I think that this is related to a context mapping that is maybe needed - this isn't mentioned in the application installation manual...so I tried replicating the "/examples' context in the server.xml file as follows:-
 
<!-- Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true">
 
<!--  harweb  Context -->
<Context path="/ harweb " docBase=" harweb " debug="0"
reloadable="true">
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
But now I get this message when I execute tomcat startup.bat
PARSE error at line 14 column 12
org.xml.sax.SAXParseException: The content of element type "servlet" must match
"(icon?,servlet-name,display-name?,description?,<servlet-class|jsp-file>,init-param*,load-on-startup?,security-role-ref*)".
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Software:-
Windows NT4, SP6
Windows IIS
Tomcat 4.0.1
 
Any ideas would be greatly appreciated...
 
Regards
 
John

Reply via email to