You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lakshmi Anantharaman <La...@camsystems.com> on 2001/10/03 20:20:03 UTC

Cocoon2 -changes in web.xml

I made the following change in cocoon\webapp\WEB-INF\web.xml before making
the war file .

Added :

<!-- change param value to path to Catalina's servlet.jar -->
   <init-param>
	    <param-name>extra-classpath</param-name>
 
<param-value>c:\Tomcat\tomcat\common\lib\servlet.jar</param-value>
   </init-param>
  
THis is imediatly followed by 
 </servlet>
  <servlet-mapping>
    <servlet-name>Cocoon2</servlet-name>
    <url-pattern>/</url-pattern>
  </servlet-mapping>
</web-app>

Does the Error Message below indicate that the ordering of tags inside the
servlet tag !!!!!!!!!!!!!  ????????????

----------------------------------------------------------------------------
-----------------------------------
Starting service Tomcat-Standalone
Apache Tomcat/4.1-dev
PARSE error at line 220 column 13
org.xml.sax.SAXParseException: The content of element type "servlet" must
match
"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini
t-pa
ram*,load-on-startup?,security-role-ref*)".
Starting service Tomcat-Apache
Apache Tomcat/4.1-dev


Thanks 
Lakshmi 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Cocoon2 -changes in web.xml

Posted by Jörg Heinicke <jo...@gmx.de>.
This message occurs if the structure of the XML doesn't match the DTD. So
there seems to be an ordering problem or a completely wrong tag at this
place. I can not say what's wrong, because the opening tag <servlet> is
missing in your code-snippet. But the nodes in <servlet> must be like the
following:

1. 0 or 1 <icon> ('?' = maybe)
2. 1 <servlet-name> ('' = must)
3. 0 or 1 <display-name>
4. 0 or 1 <description>
5. either <servlet-class> or <jsp-file> ('|' = or) (exactly one of this two)
6. 0 or 1 or many <init-param> ('*' = as much as you want)
7. 0 or 1 <load-on-startup>
8. 0 or 1 or many <security-role-ref>

With this kind of writing the DTD the ordering of the tags is important!

Hope this helps,

Joerg


----- Original Message -----
From: "Lakshmi Anantharaman" <La...@camsystems.com>
To: "Cocoon-Users (E-mail)" <co...@xml.apache.org>
Sent: Wednesday, October 03, 2001 8:20 PM
Subject: Cocoon2 -changes in web.xml


> I made the following change in cocoon\webapp\WEB-INF\web.xml before making
> the war file .
>
> Added :
>
> <!-- change param value to path to Catalina's servlet.jar -->
>    <init-param>
>     <param-name>extra-classpath</param-name>
>
> <param-value>c:\Tomcat\tomcat\common\lib\servlet.jar</param-value>
>    </init-param>
>
> THis is imediatly followed by
>  </servlet>
>   <servlet-mapping>
>     <servlet-name>Cocoon2</servlet-name>
>     <url-pattern>/</url-pattern>
>   </servlet-mapping>
> </web-app>
>
> Does the Error Message below indicate that the ordering of tags inside the
> servlet tag !!!!!!!!!!!!!  ????????????
>
> --------------------------------------------------------------------------
--
> -----------------------------------
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1-dev
> PARSE error at line 220 column 13
> org.xml.sax.SAXParseException: The content of element type "servlet" must
> match
>
"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini
> t-pa
> ram*,load-on-startup?,security-role-ref*)".
> Starting service Tomcat-Apache
> Apache Tomcat/4.1-dev
>
>
> Thanks
> Lakshmi




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: Cocoon2 -changes in web.xml

Posted by Jeff Turner <je...@socialchange.net.au>.
Tomcat 4 validates web.xml against a DTD, so yes, order matters.

--Jeff

On Wed, Oct 03, 2001 at 11:20:03AM -0700, Lakshmi Anantharaman wrote:
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1-dev
> PARSE error at line 220 column 13
> org.xml.sax.SAXParseException: The content of element type "servlet" must
> match
> "(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini
> t-pa
> ram*,load-on-startup?,security-role-ref*)".
> Starting service Tomcat-Apache
> Apache Tomcat/4.1-dev
> 
> 
> Thanks 
> Lakshmi 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>