<cocoon user-roles="/WEB-INF/myroles.xconf">
...

is working for me

> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag
> von roy huang
> Gesendet: Mittwoch, 10. M�rz 2004 08:51
> An: [EMAIL PROTECTED]
> Betreff: Re: Configuration of own roles in external file?
>
>
> Sorry to bring up this again,I check cocoon.java source and
> thought it should be:
> <cocoon user-roles="WEB-INF/myroles.xconf">
> But when I access cocoon,error occurs:
>
> Original Exception: java.io.FileNotFoundException
>       at
> org.apache.naming.resources.DirContextURLConnection.getInputStream
> (DirContextURLConnection.java:344)
>       at java.net.URL.openStream(URL.java:913)
>       at org.apache.cocoon.Cocoon.configure(Cocoon.java:410)
>       at org.apache.cocoon.Cocoon.initialize(Cocoon.java:295)
>       at
> org.apache.avalon.framework.container.ContainerUtil.initialize(Con
> tainerUtil.java:283)
>
> My file is in WEB-INF,I change the name as
> "/WEB-INF/myroles.xconf","WEB-INF\\myroles.xconf","WEB-INF\myroles
> .xconf",the result is the same.
> Any suggestion?
>
> Roy Huang
> ----- Original Message -----
> From: "roy huang" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 10, 2004 3:01 PM
> Subject: Re: Configuration of own roles in external file?
>
>
> > What does it mean to this--->   <*cocoon*
> *user*-*roles*="WEB-INF/myroles.xconf">
> > Is <cocoon user-roles="WEB-INF/myroles.xconf"/> or <*cocoon*
> *user*-*roles*="WEB-INF/myroles.xconf">?
> >
> > Roy Huang
> > ----- Original Message -----
> > From: "Upayavira" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, February 29, 2004 12:15 AM
> > Subject: Re: Configuration of own roles in external file?
> >
> >
> > > Stephan Coboos wrote:
> > >
> > > > Upayavira wrote:
> > > >
> > > >> Stephan Coboos wrote:
> > > >>
> > > >>> Hello,
> > > >>>
> > > >>> long long time ago I had heard that own roles can be
> configured in a
> > > >>> separate config file. But I have forgotten which
> structure this file
> > > >>> must have and how to set the path to this file. The only thing I
> > > >>> know is there was an attribuite in <cocoon/> of
> cocoon.xconf to set
> > > >>> the path, but which? Maybe roles="..." ?
> > > >>
> > > >>
> > > >>
> > > >> <*cocoon* *user*-*roles*="WEB-INF/myroles.xconf">
> > > >>
> > > >> Regards, Upayavira
> > > >>
> > > >>
> > > >>
> > > > Ahh yes. Thank you. Which structure must myroles.xconf have? This:
> > > >
> > > > <user-roles>
> > > >   <component .../>
> > > > </user-roles>
> > >
> > > Same as cocoon.roles, IIUC.
> > >
> > > Upayavira
> > >
> > >

Reply via email to