expires pipeline parameter

2003-03-30 Thread Ryan Heise
Can we use the expires pipeline parameter in cocoon 2.0, or should I
upgrade to 2.1?

Thanks,

Ryan

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



sendmail.xsl - how do I format email messages?

2003-01-03 Thread Ryan Heise
Hi

I'm trying to use sendmail.xsl to create a text email formatted with
newlines, but somewhere along the line (I'm not sure where), these
newlines are being stripped.

I'm simply doing:

sendmail:body
First line.
Second line.
/sendmail:body

and the result is: First line. Second line.

Does anyone know how to fix this?

Thanks for any assistance,

Ryan

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

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




Re: my.roles file

2002-11-13 Thread Ryan Heise
On Fri, Nov 08, 2002 at 09:44:39AM +0100, Joerg Heinicke wrote:
 Hello Ryan,
 
 the error message is non-ambiguous: You created a non-valid web.xml.
 Remove the changes you did and add the roles at the correct place
 according to the DTD. The important snippet of it you can see in the 
 error message. If you need more information have a look into the servlet 
 spec.

You're right, I had created a non-valid web.xml at some point in the
past (my session-config came after mime-mapping instead of before).

What puzzled me was that adding the user-roles attribute in cocoon.xconf
caused tomcat to detect the error in my web.xml file. Strange...

Ryan

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

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




Re: my.roles file

2002-11-08 Thread Ryan Heise
On Fri, Nov 08, 2002 at 09:44:39AM +0100, Joerg Heinicke wrote:
 Hello Ryan,
 
 the error message is non-ambiguous: You created a non-valid web.xml.
 Remove the changes you did and add the roles at the correct place
 according to the DTD.

Thanks for your reply..

Before I go tracking down the problem the hard way, can you tell me if
these instructions are wrong?

http://xml.apache.org/cocoon/faq/faq-configure-c2.html#faq-1


Here is what I did, I just:

1. edited one line of cocoon.xconf to read:

cocoon version=2.0 user-roles=WEB-INF/my.roles

2. created a file called WEB-INF/my.roles which I copied from
src/java/org/apache/cocoon/cocoon.roles (first I tried copypasting the
example from the FAQ, but that didn't work either)

I think I followed the instructions exactly. Could it be that these
instructions are ambiguous or wrong?

(Note: if I reverse step (1), the error message goes away)

Just a point of clarification: is it true that cocoon.xconf and my.roles
are just cocoon specific files, and not web.xml files (or included into
web.xml files)? Because, I only touched cocoon.xconf and my.roles.

Very confusing!

Thanks,

Ryan

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

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




my.roles file

2002-11-07 Thread Ryan Heise
I am trying to set up my own roles file according to this FAQ:

http://xml.apache.org/cocoon/faq/faq-configure-c2.html#faq-1

However, as soon as I add the user-roles attribute and restart cocoon,
it produces this error message in the catalina.out log file:

org.apache.commons.digester.Digester error
Parse Error at line 269 column 11: The content of element type web-app must match 
(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*).
org.xml.sax.SAXParseException: The content of element type web-app must match 
(icon?,display-name?,description?,distributable?,context-param*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*).
at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
at org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:173)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:362)
at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:296)
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1953)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:878)
...

Also, when I attempt to access a page served by cocoon, I get:

java.lang.NullPointerException
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
...

Any ideas?

Thanks,

Ryan

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

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