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.postProcessBeforeInitialization(AvalonBeanPostProcessor.java:258)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:320)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1253)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.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(ExceptionSelector.java:90)

        at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:202)

        at org.apache.cocoon.core.container.spring.avalon.AvalonBeanPostProcessor.postProcessBeforeInitialization(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.forward(ServletServiceContext.java:468)

        at org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher.forward(ServletServiceContext.java:443)

        at org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInterceptor.invoke(ServletFactoryBean.java:264)

        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

        at $Proxy5.service(Unknown Source)

        at org.apache.cocoon.servletservice.DispatcherServlet.service(DispatcherServlet.java:106)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

        at org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServlet.service(ReloadingServlet.java:91)

        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)

        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)