|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
cocoon2.2: exception handling in sitemap stacktraceHi 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) |
|
|
Re: cocoon2.2: exception handling in sitemap stacktraceHi!
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@... For additional commands, e-mail: users-help@... |
|
|
RE: cocoon2.2: exception handling in sitemap stacktraceThx 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@...] Sent: Friday, June 26, 2009 12:31 PM To: users@... 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@... For additional commands, e-mail: users-help@... --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |