I thank you for your immediate answer.
Apology that my email was not like that understanding.
so I have Javaprojekt. with my programs produce I XMLStream. i will have
Methode like:
public InputStream getInputStream(){}.
and ich will have Main.java like
public class Main
{
public static void main(...)
{
Myproject myproject = new Myproject();
InputStream inputStream = my.project.getInputStream();
//hier i wish tu run cocoon offline like
CocoonBean cocoon = new CocoonBean();
cocoon.intial.....
//than i don't know so like
Generator generator = cocoon.getStreamGenerator();
genarator.setStream(inputStream);
}
where can I find the user.roles?
Which part in src/blocks/session-fw/conf?
-------- Original-Nachricht --------
Datum: Wed, 9 Aug 2006 11:49:54 +0200
Von: "Ard Schrijvers" <[EMAIL PROTECTED]>
An: [email protected]
Betreff: RE: Intergration of Cocoon in Javaproject
> Althouh I really don't understand your mail, from the ERROR, it seems to
> me that you miss some roles and configuration:
>
> Look in the branch under src/blocks/session-fw/conf. There you find part
> you need to add to your cocoon.xconf and user.xroles.
>
> Regards Ard
>
> >
> >
> > Hello together,
> >
> > first place I mean project before its task is XmlStream to be
> > produced. in the place where the Stream produced, I wanted to
> > use cocoonBean and this instance on of cocoonBean the Stream
> > passes my problem is, I white it not, how I proceed, since no
> > code gives. in addition I have org.apache.cocoon.Main as Java
> > Appliction implemented the following errors was thrown away:
> >
> > ERROR 2006-08-08 12:22:36.591 [manager ] (): Could not set
> > up Component for hint [ session-context]
> > org.apache.avalon.framework.service.ServiceException: Could
> > not find component (key
> > [org.apache.cocoon.webapps.session.ContextManager])
> > (Key='org.apache.cocoon.webapps.session.ContextManager')
> > at
> > org.apache.avalon.framework.service.WrapperServiceManager.look
> > up(WrapperServiceManager.java:80)
> > at
> > org.apache.cocoon.webapps.session.components.ContextInputModul
> > e.service(ContextInputModule.java:112)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.service(Co
> > ntainerUtil.java:143)
> > at
> > org.apache.avalon.excalibur.component.DefaultComponentFactory.
> > newInstance(DefaultComponentFactory.java:271)
> > at
> > org.apache.avalon.excalibur.component.ThreadSafeComponentHandl
> > er.initialize(ThreadSafeComponentHandler.java:108)
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentSelect
> > or.addComponent(ExcaliburComponentSelector.java:705)
> > at
> > org.apache.cocoon.components.ExtendedComponentSelector.configu
> > re(ExtendedComponentSelector.java:228)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.configure(
> > ContainerUtil.java:201)
> > at
> > org.apache.avalon.excalibur.component.DefaultComponentFactory.
> > newInstance(DefaultComponentFactory.java:289)
> > at
> > org.apache.avalon.excalibur.component.ThreadSafeComponentHandl
> > er.initialize(ThreadSafeComponentHandler.java:108)
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentManage
> > r.initialize(ExcaliburComponentManager.java:524)
> > at
> > org.apache.cocoon.components.CocoonComponentManager.initialize
> > (CocoonComponentManager.java:566)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.initialize
> > (ContainerUtil.java:244)
> > at org.apache.cocoon.Cocoon.initialize(Cocoon.java:342)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.initialize
> > (ContainerUtil.java:244)
> > at
> > org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.
> > java:176)
> > at
> > org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:99)
> > at org.apache.cocoon.Main.main(Main.java:319)
> > Caused by:
> > org.apache.avalon.framework.component.ComponentException:
> > Could not find component (key
> > [org.apache.cocoon.webapps.session.ContextManager])
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentManage
> > r.lookup(ExcaliburComponentManager.java:265)
> > at
> > org.apache.cocoon.components.CocoonComponentManager.lookup(Coc
> > oonComponentManager.java:335)
> > at
> > org.apache.avalon.framework.service.WrapperServiceManager.look
> > up(WrapperServiceManager.java:68)
> > ... 17 more
> > ERROR 2006-08-08 12:22:36.606 [manager ] (): Could not load
> > class
> > org.apache.cocoon.webapps.session.components.ContextInputModul
> > e for component named 'session-context' at
> > file:/C:/Dokumente%20und%20Einstellungen/Wohland.de/Eigene%20D
> > ateien/workspace/cocoon-2.1.8/build/webapp/WEB-INF/cocoon.xcon
> > f:227:151
> > org.apache.avalon.framework.component.ComponentException:
> > Could not set up Component for hint [ session-context] (key
> > [session-context])
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentSelect
> > or.addComponent(ExcaliburComponentSelector.java:723)
> > at
> > org.apache.cocoon.components.ExtendedComponentSelector.configu
> > re(ExtendedComponentSelector.java:228)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.configure(
> > ContainerUtil.java:201)
> > at
> > org.apache.avalon.excalibur.component.DefaultComponentFactory.
> > newInstance(DefaultComponentFactory.java:289)
> > at
> > org.apache.avalon.excalibur.component.ThreadSafeComponentHandl
> > er.initialize(ThreadSafeComponentHandler.java:108)
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentManage
> > r.initialize(ExcaliburComponentManager.java:524)
> > at
> > org.apache.cocoon.components.CocoonComponentManager.initialize
> > (CocoonComponentManager.java:566)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.initialize
> > (ContainerUtil.java:244)
> > at org.apache.cocoon.Cocoon.initialize(Cocoon.java:342)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.initialize
> > (ContainerUtil.java:244)
> > at
> > org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.
> > java:176)
> > at
> > org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:99)
> > at org.apache.cocoon.Main.main(Main.java:319)
> > Caused by:
> > org.apache.avalon.framework.service.ServiceException: Could
> > not find component (key
> > [org.apache.cocoon.webapps.session.ContextManager])
> > (Key='org.apache.cocoon.webapps.session.ContextManager')
> > at
> > org.apache.avalon.framework.service.WrapperServiceManager.look
> > up(WrapperServiceManager.java:80)
> > at
> > org.apache.cocoon.webapps.session.components.ContextInputModul
> > e.service(ContextInputModule.java:112)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.service(Co
> > ntainerUtil.java:143)
> > at
> > org.apache.avalon.excalibur.component.DefaultComponentFactory.
> > newInstance(DefaultComponentFactory.java:271)
> > at
> > org.apache.avalon.excalibur.component.ThreadSafeComponentHandl
> > er.initialize(ThreadSafeComponentHandler.java:108)
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentSelect
> > or.addComponent(ExcaliburComponentSelector.java:705)
> > ... 12 more
> > Caused by:
> > org.apache.avalon.framework.component.ComponentException:
> > Could not find component (key
> > [org.apache.cocoon.webapps.session.ContextManager])
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentManage
> > r.lookup(ExcaliburComponentManager.java:265)
> > at
> > org.apache.cocoon.components.CocoonComponentManager.lookup(Coc
> > oonComponentManager.java:335)
> > at
> > org.apache.avalon.framework.service.WrapperServiceManager.look
> > up(WrapperServiceManager.java:68)
> > ... 17 more
> > ERROR 2006-08-08 12:22:36.606 [manager ] (): Caught an
> > exception trying to initialize the component handler.
> > org.apache.avalon.framework.configuration.ConfigurationExcepti
> > on: Could not load class
> > org.apache.cocoon.webapps.session.components.ContextInputModul
> > e for component named 'session-context' at
> > file:/C:/Dokumente%20und%20Einstellungen/Wohland.de/Eigene%20D
> > ateien/workspace/cocoon-2.1.8/build/webapp/WEB-INF/cocoon.xcon
> > f:227:151
> > at
> > org.apache.cocoon.components.ExtendedComponentSelector.configu
> > re(ExtendedComponentSelector.java:235)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.configure(
> > ContainerUtil.java:201)
> > at
> > org.apache.avalon.excalibur.component.DefaultComponentFactory.
> > newInstance(DefaultComponentFactory.java:289)
> > at
> > org.apache.avalon.excalibur.component.ThreadSafeComponentHandl
> > er.initialize(ThreadSafeComponentHandler.java:108)
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentManage
> > r.initialize(ExcaliburComponentManager.java:524)
> > at
> > org.apache.cocoon.components.CocoonComponentManager.initialize
> > (CocoonComponentManager.java:566)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.initialize
> > (ContainerUtil.java:244)
> > at org.apache.cocoon.Cocoon.initialize(Cocoon.java:342)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.initialize
> > (ContainerUtil.java:244)
> > at
> > org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.
> > java:176)
> > at
> > org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:99)
> > at org.apache.cocoon.Main.main(Main.java:319)
> > Caused by:
> > org.apache.avalon.framework.component.ComponentException:
> > Could not set up Component for hint [ session-context] (key
> > [session-context])
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentSelect
> > or.addComponent(ExcaliburComponentSelector.java:723)
> > at
> > org.apache.cocoon.components.ExtendedComponentSelector.configu
> > re(ExtendedComponentSelector.java:228)
> > ... 11 more
> > Caused by:
> > org.apache.avalon.framework.service.ServiceException: Could
> > not find component (key
> > [org.apache.cocoon.webapps.session.ContextManager])
> > (Key='org.apache.cocoon.webapps.session.ContextManager')
> > at
> > org.apache.avalon.framework.service.WrapperServiceManager.look
> > up(WrapperServiceManager.java:80)
> > at
> > org.apache.cocoon.webapps.session.components.ContextInputModul
> > e.service(ContextInputModule.java:112)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.service(Co
> > ntainerUtil.java:143)
> > at
> > org.apache.avalon.excalibur.component.DefaultComponentFactory.
> > newInstance(DefaultComponentFactory.java:271)
> > at
> > org.apache.avalon.excalibur.component.ThreadSafeComponentHandl
> > er.initialize(ThreadSafeComponentHandler.java:108)
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentSExcep
> > tion in thread "main"
> > org.apache.avalon.framework.configuration.ConfigurationExcepti
> > on: Could not load class
> > org.apache.cocoon.webapps.session.components.ContextInputModul
> > e for component named 'session-context' at
> > file:/C:/Dokumente%20und%20Einstellungen/Wohland.de/Eigene%20D
> > ateien/workspace/cocoon-2.1.8/build/webapp/WEB-INF/cocoon.xcon
> > f:227:151
> > at
> > org.apache.cocoon.components.ExtendedComponentSelector.configu
> > re(ExtendedComponentSelector.java:235)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.configure(
> > ContainerUtil.java:201)
> > at
> > org.apache.avalon.excalibur.component.DefaultComponentFactory.
> > newInstance(DefaultComponentFactory.java:289)
> > at
> > org.apache.avalon.excalibur.component.ThreadSafeComponentHandl
> > er.initialize(ThreadSafeComponentHandler.java:108)
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentManage
> > r.initialize(ExcaliburComponentManager.java:524)
> > at
> > org.apache.cocoon.components.CocoonComponentManager.initialize
> > (CocoonComponentManager.java:566)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.initialize
> > (ContainerUtil.java:244)
> > at org.apache.cocoon.Cocoon.initialize(Cocoon.java:342)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.initialize
> > (ContainerUtil.java:244)
> > at
> > org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.
> > java:176)
> > at
> > org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:99)
> > at org.apache.cocoon.Main.main(Main.java:319)
> > Caused by:
> > org.apache.avalon.framework.component.ComponentException:
> > Could not set up Component for hint [ session-context] (key
> > [session-context])
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentSelect
> > or.addComponent(ExcaliburComponentSelector.java:723)
> > at
> > org.apache.cocoon.components.ExtendedComponentSelector.configu
> > re(ExtendedComponentSelector.java:228)
> > ... 11 more
> > Caused by:
> > org.apache.avalon.framework.service.ServiceException: Could
> > not find component (key
> > [org.apache.cocoon.webapps.session.ContextManager])
> > (Key='org.apache.cocoon.webapps.session.ContextManager')
> > at
> > org.apache.avalon.framework.service.WrapperServiceManager.look
> > up(WrapperServiceManager.java:80)
> > at
> > org.apache.cocoon.webapps.session.components.ContextInputModul
> > e.service(ContextInputModule.java:112)
> > at
> > org.apache.avalon.framework.container.ContainerUtil.service(Co
> > ntainerUtil.java:143)
> > at
> > org.apache.avalon.excalibur.component.DefaultComponentFactory.
> > newInstance(DefaultComponentFactory.java:271)
> > at
> > org.apache.avalon.excalibur.component.ThreadSafeComponentHandl
> > er.initialize(ThreadSafeComponentHandler.java:108)
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentSelect
> > or.addComponent(ExcaliburComponentSelector.java:705)
> > ... 12 more
> > Caused by:
> > org.apache.avalon.framework.component.ComponentException:
> > Could not find component (key
> > [org.apache.cocoon.webapps.session.ContextManager])
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentManage
> > r.lookup(ExcaliburComponentManager.java:265)
> > at
> > org.apache.cocoon.components.CocoonComponentManager.lookup(Coc
> > oonComponentManager.java:335)
> > at
> > org.apache.avalon.framework.service.WrapperServiceManager.look
> > up(WrapperServiceManager.java:68)
> > ... 17 more
> > elector.addComponent(ExcaliburComponentSelector.java:705)
> > ... 12 more
> > Caused by:
> > org.apache.avalon.framework.component.ComponentException:
> > Could not find component (key
> > [org.apache.cocoon.webapps.session.ContextManager])
> > at
> > org.apache.avalon.excalibur.component.ExcaliburComponentManage
> > r.lookup(ExcaliburComponentManager.java:265)
> > at
> > org.apache.cocoon.components.CocoonComponentManager.lookup(Coc
> > oonComponentManager.java:335)
> > at
> > org.apache.avalon.framework.service.WrapperServiceManager.look
> > up(WrapperServiceManager.java:68)
> > ... 17 more
> > FATAL_E 2006-08-08 12:22:36.606 [ ] (): Exception caught
> > org.apache.avalon.framework.configuration.ConfigurationExcepti
> > on: Could not load class
> > org.apache.cocoon.webapps.session.components.ContextInputModul
> > e for component named 'session-context' at
> file:/C:/Dokumente%20und%20Einstellungen/Wohland.de/Eigene%20Dateien/workspace/cocoon-2.1.8/build/webapp/WEB-INF/cocoon.xconf:227:151
> at
> org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:235)
> at
> org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:201)
> at
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:289)
> at
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
> at
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:524)
> at
> org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:566)
> at
> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
> at org.apache.cocoon.Cocoon.initialize(Cocoon.java:342)
> at
> org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:244)
> at
> org.apache.cocoon.bean.CocoonWrapper.initialize(CocoonWrapper.java:176)
> at org.apache.cocoon.bean.CocoonBean.initialize(CocoonBean.java:99)
> at org.apache.cocoon.Main.main(Main.java:319)
> Caused by: org.apache.avalon.framework.component.ComponentException: Could
> not set up Component for hint [ session-context] (key [session-context])
> at
> org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:723)
> at
> org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:228)
> ... 11 more
> Caused by: org.apache.avalon.framework.service.ServiceException: Could not
> find component (key [org.apache.cocoon.webapps.session.ContextManager])
> (Key='org.apache.cocoon.webapps.session.ContextManager')
> at
> org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:80)
> at
> org.apache.cocoon.webapps.session.components.ContextInputModule.service(ContextInputModule.java:112)
> at
> org.apache.avalon.framework.container.ContainerUtil.service(ContainerUtil.java:143)
> at
> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:271)
> at
> org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:108)
> at
> org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:705)
> ... 12 more
> Caused by: org.apache.avalon.framework.component.ComponentException: Could
> not find component (key
> [org.apache.cocoon.webapps.session.ContextManager])
> at
> org.apache.avalon.excalibur.component.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:265)
> at
> org.apache.cocoon.components.CocoonComponentManager.lookup(CocoonComponentManager.java:335)
> at
> org.apache.avalon.framework.service.WrapperServiceManager.lookup(WrapperServiceManager.java:68)
> ... 17 more
>
> I really need your assistance
>
>
>
>
> --
>
>
> "Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
> Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]