You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stephan Coboos <cr...@gmx.net> on 2004/02/28 09:10:46 UTC
Configuration of own roles in external file?
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="..." ?
Thank you.
Regards
Re: Configuration of own roles in external file?
Posted by roy huang <li...@hotmail.com>.
It works,thanks!
Roy Huang
----- Original Message -----
From: "Marco Rolappe" <m_...@web.de>
To: <de...@cocoon.apache.org>
Sent: Wednesday, March 10, 2004 3:58 PM
Subject: AW: Configuration of own roles in external file?
>
> <cocoon user-roles="/WEB-INF/myroles.xconf">
> ...
>
> is working for me
>
> > -----Ursprüngliche Nachricht-----
> > Von: dev-return-57299-m_rolappe=web.de@cocoon.apache.org
> > [mailto:dev-return-57299-m_rolappe=web.de@cocoon.apache.org]Im Auftrag
> > von roy huang
> > Gesendet: Mittwoch, 10. März 2004 08:51
> > An: dev@cocoon.apache.org
> > 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" <li...@hotmail.com>
> > To: <de...@cocoon.apache.org>
> > 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" <uv...@upaya.co.uk>
> > > To: <de...@cocoon.apache.org>
> > > 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
> > > >
> > > >
>
>
AW: Configuration of own roles in external file?
Posted by Marco Rolappe <m_...@web.de>.
<cocoon user-roles="/WEB-INF/myroles.xconf">
...
is working for me
> -----Ursprüngliche Nachricht-----
> Von: dev-return-57299-m_rolappe=web.de@cocoon.apache.org
> [mailto:dev-return-57299-m_rolappe=web.de@cocoon.apache.org]Im Auftrag
> von roy huang
> Gesendet: Mittwoch, 10. März 2004 08:51
> An: dev@cocoon.apache.org
> 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" <li...@hotmail.com>
> To: <de...@cocoon.apache.org>
> 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" <uv...@upaya.co.uk>
> > To: <de...@cocoon.apache.org>
> > 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
> > >
> > >
Re: Configuration of own roles in external file?
Posted by roy huang <li...@hotmail.com>.
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(ContainerUtil.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" <li...@hotmail.com>
To: <de...@cocoon.apache.org>
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" <uv...@upaya.co.uk>
> To: <de...@cocoon.apache.org>
> 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
> >
> >
Re: Configuration of own roles in external file?
Posted by roy huang <li...@hotmail.com>.
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" <uv...@upaya.co.uk>
To: <de...@cocoon.apache.org>
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
>
>
Re: Configuration of own roles in external file?
Posted by Upayavira <uv...@upaya.co.uk>.
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
Re: Configuration of own roles in external file?
Posted by Stephan Coboos <cr...@gmx.net>.
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>
Thank you.
Regards
Re: Configuration of own roles in external file?
Posted by Upayavira <uv...@upaya.co.uk>.
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