Hard to tell from a small snippet like that , but if I had to guess, it doesn't appear to meet the dtd specified
by the web.xml. Try sending us the entire web.xml in your email.


Paul Wallace wrote:

Hi All,
        After implementing my simple Servlet under Tomcat thus:

<servlet>
        <servlet-name>OpenResource</servlet-name>
        
<servlet-class>com.ia.mapping.servlets.OpenResource</servlet-class>
</servlet>

where the Servlet OpenResource has been compiled in the correct
directory, containing no functionality (below), I start up Tomcat and
get the less-than-pleasant error message in the console:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
PARSE error at line 19 column 11
org.xml.sax.SAXParseException: The content of element type "web-app"
must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*
,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,
mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,r
esource-ref*,
security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ej
b-local-ref*)".
Starting service Tomcat-Apache
Apache Tomcat/4.0.4

This error message immediately suggests that web.xml is not fully
formed. It is. When the OpenResource entry is removed, TC starts up
fine, suggesting the Servlet is at fault. But on inspection, there is no
source present to cause such a problem (it is a bare-bones Servlet).

I have looked and looked, but cant see what's at fault. (Tomcat although
appearing to have started does not serve anything (404)).


Thanks for any help or insight into this error message.

Paul.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to