Cocoon2 -changes in web.xml

2001-10-03 Thread Lakshmi Anantharaman

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-nameextra-classpath/param-name
 
param-valuec:\Tomcat\tomcat\common\lib\servlet.jar/param-value
   /init-param
  
THis is imediatly followed by 
 /servlet
  servlet-mapping
servlet-nameCocoon2/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cocoon2 -changes in web.xml

2001-10-03 Thread Jeff Turner

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cocoon2 -changes in web.xml

2001-10-03 Thread Jörg Heinicke

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 [EMAIL PROTECTED]
To: Cocoon-Users (E-mail) [EMAIL PROTECTED]
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-nameextra-classpath/param-name

 param-valuec:\Tomcat\tomcat\common\lib\servlet.jar/param-value
/init-param

 THis is imediatly followed by
  /servlet
   servlet-mapping
 servlet-nameCocoon2/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]