You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robby Pelssers <ro...@ciber.com> on 2009/06/26 11:53:10 UTC
cocoon2.2: exception handling in sitemap stacktrace
Hi guys,
I was trying to implement error handling but get the stacktrace below
when I added this sitemap snippet. Somebody who can give me some help
on what I'm missing here or doing wrong?
Thx in advance,
Robby Pelssers
<map:components>
<map:selectors>
<map:selector name="exception"
src="org.apache.cocoon.selection.ExceptionSelector">
<exception name="processing" class="ProcessingException"
unroll="true"/>
<exception name="sax" class="SAXException"/>
<exception name="application" class="ApplicationException"/>
</map:selector>
</map:selectors>
</map:components>
Caused by: org.springframework.beans.factory.BeanCreationException:
Unable to initialize Avalon component with role
org.apache.cocoon.selection.Selector/exception; nested exception is
org.apac
he.avalon.framework.configuration.ConfigurationException: Cannot load
class 'ProcessingException' at
file:///d:/development/workspaces/spider/shared/./src/main/resources/COB
-INF/sitemap.xmap:2
63:81
at
org.apache.cocoon.core.container.spring.avalon.AvalonBeanPostProcessor.p
ostProcessBeforeInitialization(AvalonBeanPostProcessor.java:258)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapable
BeanFactory.java:320)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.initializeBean(AbstractAutowireCapableBeanFactory.java:1253)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.doCreateBean(AbstractAutowireCapableBeanFactory.java:438)
... 61 more
Caused by:
org.apache.avalon.framework.configuration.ConfigurationException: Cannot
load class 'ProcessingException' at
file:///d:/development/workspaces/spider/shared/./src/main/resources/COB
-INF/sitemap.xmap:263:81
at
org.apache.cocoon.selection.ExceptionSelector.configure(ExceptionSelecto
r.java:90)
at
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerU
til.java:202)
at
org.apache.cocoon.core.container.spring.avalon.AvalonBeanPostProcessor.p
ostProcessBeforeInitialization(AvalonBeanPostProcessor.java:246)
... 64 more
javax.servlet.ServletException:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.apache.cocoon.selection.Selector/exception':
Initialization of bean
failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Unable to
initialize Avalon component with role
org.apache.cocoon.selection.Selector/exception; nested exce
ption is
org.apache.avalon.framework.configuration.ConfigurationException: Cannot
load class 'SAXException' at
file:///d:/development/workspaces/spider/shared/./src/main/resources/COB
-INF/site
map.xmap:264:53
at
org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.java
:230)
at
org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:84)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.fo
rward(ServletServiceContext.java:468)
at
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.fo
rward(ServletServiceContext.java:443)
at
org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterc
eptor.invoke(ServletFactoryBean.java:264)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref
lectiveMethodInvocation.java:171)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAo
pProxy.java:204)
at $Proxy5.service(Unknown Source)
at
org.apache.cocoon.servletservice.DispatcherServlet.service(DispatcherSer
vlet.java:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServlet.service(Rel
oadingServlet.java:91)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHan
dler.java:1093)
RE: cocoon2.2: exception handling in sitemap stacktrace
Posted by Robby Pelssers <ro...@ciber.com>.
Thx for the info Soren... I think it's a little strange that the online documentation gives samples with only the className in the @class attribute instead of the fully qualified Classname.
Anyway... that's all I needed to know.
Cheers,
Robby
-----Original Message-----
From: Søren Krum [mailto:soren.krum@uninett.no]
Sent: Friday, June 26, 2009 12:31 PM
To: users@cocoon.apache.org
Subject: Re: cocoon2.2: exception handling in sitemap stacktrace
Hi!
You declare a Exception SAXException, but i guess you will not find such
a exception in any of your jarfiles. Maybe changing that to
org.xml.sax.SAXException helps a little :-)
--
Med vennlig hilsen
Søren D. Krum
Systemutvikler/system developer
UNINETT FAS
+ 47 73557859
There are 10 different kind of people in the world, those who understand binary and those who don't
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: cocoon2.2: exception handling in sitemap stacktrace
Posted by Søren Krum <so...@uninett.no>.
Hi!
You declare a Exception SAXException, but i guess you will not find such
a exception in any of your jarfiles. Maybe changing that to
org.xml.sax.SAXException helps a little :-)
--
Med vennlig hilsen
Søren D. Krum
Systemutvikler/system developer
UNINETT FAS
+ 47 73557859
There are 10 different kind of people in the world, those who understand binary and those who don't
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org