cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <robby.pelss...@ciber.com>
Subject cocoon2.2: exception handling in sitemap stacktrace
Date Fri, 26 Jun 2009 09:53:10 GMT
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)


Mime
View raw message