You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Warrell <wa...@iquo.co.uk> on 2006/08/15 12:01:59 UTC

RE: Getting started again...

Hi,

In order to make a start on the new codebase I am testing a component under
2.2 I was hoping someone has got SQLTransformer working yet? I get 'Unknown
datasources' when I try to use my legacy xconf section in the
cocoon-sitemap.xconf

Running under Websphere requires use of the j2ee config too so getting this
working under the new regime would be a winner for me.

I'm not using the archetype technique yet for block management but I don't
think this should be the source of problem. As database access is so vital
to most real world projects a little advice from you 2.2 gurus would really
bolster the vanguard of movement to the future of Cocoon.

Thanks for any help as this is pretty vital to getting Cocoon used in my new
company,

Best regards

Warrell


-----Original Message-----
From: Grzegorz Kossakowski [mailto:grek@tuffmail.com] 
Sent: 10 July 2006 10:01
To: users@cocoon.apache.org
Subject: Re: Getting started again...

Justin Fagnani-Bell napisał(a):
> Ok, I got cocoon-trunk running. Just had to run mvn install about 10 
> times (I hope end users won't have to use Maven).
The will have to, all hope and prayers should cast a spell on Maven 
repositories to be more stable. ;)
Side-note: I really do not experience all problems with Maven not being 
able to download this or that. I do not have any spectacular Internet 
connection, also. Maybe tweaking settings.xml [1] really solves the 
problem? I strongly advice to do it.
> Most things work, but quite a few of the samples I'm interested in are 
> broken (CForms: Bindings, SQL access, Cocoon suggests; User Preferences).
I encountered the same, not have time to invest this issue this week, 
though.
> Now, I'm trying to go through the tutorial at [1] and I'm getting an 
> error when trying to use maven to create a block skeleton:
>> Failed to resolve artifact.
>>
>> GroupId: org.apache.cocoon
>> ArtifactId: cocoon-archetype-block
>> Version: 1.0-SNAPSHOT
>>
>> Reason: Unable to download the artifact from any repository
You use out-dated articaftId, proper values are:
GroupId=org.apache.cocoon
ArtifactId=cocoon-22-archetype-block
Version=1.0.0-SNAPSHOT
>
> I can't really find anything in the list archives yet about this. I'm 
> not sure if the docs are out of date and the command given is wrong or 
> what.
>
> Any idea?
There is interesting in-depth report on running C2.2 posted by Gavin 
Carothes: http://article.gmane.org/gmane.text.xml.cocoon.devel/65013
> All this new stuff, especially Maven is going to take some time to 
> learn. My first thought after getting the build working was "great, it 
> works, but now what?". I obviously can't just go in and hack away at 
> sitemaps and toss in files like I was used to because this version 
> will get overwritten next time I build with Maven. It looks like I 
> want to create a block, and that's my site/app right? I guess the docs 
> are behind development... can anyone give me some guidance here?
Yes, you are right. Your application is just another Cocoon block based 
on proper Maven's archetype. I think abandoned possibility to "hack away 
at sitemaps and toss in files" is strengths not weakness. Cocoon in 
2.1.x suffered enough not having standard way of building your own apps. 
And you had to learn other tool: Ant.

In short: Ask questions here, hopefully someone will be able to cover 
your doubts.

[1] http://maven.apache.org/guides/mini/guide-mirror-settings.html

-- 
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



__________ NOD32 1.1663 (20060716) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Cocoon Bean Offline without CLI

Posted by rachid harradi <ra...@gmx.net>.
Hello Together 



Apparent my problem with CocoonBean does not find a solution here. I sent more Mails. I get always the error if I run Main.java like Java_Application.

ERROR   2006-08-15 15:17:02.222 [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.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)
	at org.apache.cocoon.components.ExtendedComponentSelector.configure(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.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:177)
	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.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
Exception in thread "main" org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.webapps.session.components.ContextInputModule for component named 'session-context' at file:/E:/workspace3/Cocoon/build/webapp/WEB-INF/cocoon.xconf:243: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)ERROR   2006-08-15 15:17:02.222 [manager ] (): Could not load class org.apache.cocoon.webapps.session.components.ContextInputModule for component named 'session-context' at file:/E:/workspace3/Cocoon/build/webapp/WEB-INF/cocoon.xconf:243: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.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:723)
	at org.apache.cocoon.components.ExtendedComponentSelector.configure(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.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:177)
	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.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
ERROR   2006-08-15 15:17:02.238 [manager ] (): Caught an exception trying to initialize the component handler.
org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.webapps.session.components.ContextInputModule for component named 'session-context' at file:/E:/workspace3/Cocoon/build/webapp/WEB-INF/cocoon.xconf:243: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:177)
	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
FATAL_E 2006-08-15 15:17:02.238 [        ] (): Exception caught
org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.webapps.session.components.ContextInputModule for component named 'session-context' at file:/E:/workspace3/Cocoon/build/webapp/WEB-INF/cocoon.xconf:243: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:177)
	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

	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:177)
	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




-- 


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