cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "roy huang" <lingererhu...@hotmail.com>
Subject Re: Configuration of own roles in external file?
Date Wed, 10 Mar 2004 08:35:39 GMT
It works,thanks!

Roy Huang
----- Original Message ----- 
From: "Marco Rolappe" <m_rolappe@web.de>
To: <dev@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" <lingererhuang@hotmail.com>
> > To: <dev@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: <dev@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
> > > >
> > > >
> 
> 
Mime
View raw message