cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: my.roles file
Date Fri, 08 Nov 2002 15:02:54 GMT
On Fri, 2002-11-08 at 10:48, Ryan Heise wrote:
> 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 copy&pasting the
> example from the FAQ, but that didn't work either)
> 

You should not copy the cocoon.roles file to my.roles. The my.roles file
is for declaring roles for *additional* components. When using the
my.roles file, all roles declared in cocoon.roles also continue to
exist.

> 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)?

Yes that is true.

If you want to know how all that works (from Java-developer viewpoint),
you should go read the developing with avalon guide at
http://jakarta.apache.org/avalon/developing/index.html

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org


---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message