cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jozsa Kristof <dy...@kami.vein.hu>
Subject Re: C2.0.2: ClassCastException
Date Fri, 29 Mar 2002 11:42:55 GMT
Roger that.. I was using the cocoon.xconf from 2.0.1 in my project (I forgat
to replce it). 

Thanks right again,
Christopher

On Thu, Mar 28, 2002 at 08:44:18PM -0500, Vadim Gritsenko wrote:
> Check your cocoon.roles and cocoon.xconf files. Cocoon 2.0.2 uses
> XPathProcessor from the Excalibur instead of old Cocoon's
> XPathProcessor. It seems that somehow you are instantiating old
> processor instead of new, which is seen from the exception:
> 
> > java.lang.ClassCastException:
> > org.apache.cocoon.components.xpath.XPathProcessorImpl
> 
> You have got org.apache.cocoon.components.xpath.XPathProcessorImpl
> instead of org.apache.avalon.excalibur.xml.xpath.XPathProcessorImpl.
> 
> Regards,
> Vadim
> 
> > From: Jozsa Kristof [mailto:dynax@kami.vein.hu]
> > 
> > Vadim,
> > 
> > sorry for the delay, I was out of office. I'm running Cocoon 2.0.2
> from
> > JBoss3beta2 latest cvs snapshots (it uses Jetty as the bundled web
> > container). I thought of the different xalan/xerces libs between JBoss
> and
> > Cocoon as a possible problem source here - is that possible?
> > 
> > Anyway, I'm posting a full trace about the problem:
> > 
> > ERROR   (2002-03-28) 09:27.19:740   [core.manager] (/index)
> SocketListener-
> > 1/XMLResourceBundle: cannot obtain XPathProcessor
> > java.lang.ClassCastException:
> > org.apache.cocoon.components.xpath.XPathProcessorImpl
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundle.compose(XMLResourceBundle.java:
> 117)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceB
> undleF
> > actory.java:346)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundl
> eFacto
> > ry.java:308)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource
> Bundle
> > Factory.java:238)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource
> Bundle
> > Factory.java:224)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceB
> undleF
> > actory.java:343)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundl
> eFacto
> > ry.java:308)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource
> Bundle
> > Factory.java:238)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory.selectParent(XMLResource
> Bundle
> > Factory.java:224)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory._loadBundle(XMLResourceB
> undleF
> > actory.java:343)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory._select(XMLResourceBundl
> eFacto
> > ry.java:308)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory.select(XMLResourceBundle
> Factor
> > y.java:196)
> >         at
> >
> org.apache.cocoon.i18n.XMLResourceBundleFactory.select(XMLResourceBundle
> Factor
> > y.java:181)
> >         at
> >
> org.apache.cocoon.transformation.I18nTransformer.setup(I18nTransformer.j
> ava:77
> > 3)
> >         at
> >
> org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipelin
> e(Abst
> > ractEventPipeline.java:215)
> >         at
> >
> org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(Caching
> EventP
> > ipeline.java:279)
> >         at
> >
> org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(C
> aching
> > EventPipeline.java:142)
> >         at
> >
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
> ingStr
> > eamPipeline.java:320)
> >         at
> >
> org.apache.cocoon.www.sitemap_xmap.matchN400231(sitemap_xmap.java:3510)
> >         at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1192)
> >         at
> org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:681)
> >         at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> >         at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> >         at
> >
> org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154
> )
> >         at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
> >         at
> >
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
> >         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >         at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:326)
> >         at
> >
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:570)
> >         at org.mortbay.http.HttpContext.handle(HttpContext.java:1352)
> >         at org.mortbay.http.HttpContext.handle(HttpContext.java:1306)
> >         at org.mortbay.http.HttpServer.service(HttpServer.java:743)
> >         at org.jboss.jetty.Jetty.service(Jetty.java:540)
> >         at
> org.mortbay.http.HttpConnection.service(HttpConnection.java:748)
> >         at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:921)
> >         at
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:763)
> >         at
> >
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:145
> )
> >         at
> org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
> >         at
> org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
> >         at java.lang.Thread.run(Thread.java:498)
> > 
> > But as I've said, everything seems to work correctly, in spite of the
> trace
> > in error.log.
> > 
> > Regards,
> > Christopher
> > 
> > On Tue, Mar 26, 2002 at 08:00:35PM -0500, Vadim Gritsenko wrote:
> > > Try deleting work directory. Might help, I'm not sure what you have
> got
> > > (you cut the stacktrace too short)
> > >
> > > Vadim
> > >
> > > > From: Jozsa Kristof [mailto:dynax@kami.vein.hu]
> > > >
> > > > Hi,
> > > >
> > > > I've downloaded Cocoon 2.0.2, compiled, replaced the libs in my
> > > > project and
> > > > deployed successfully. It works, however, I keep getting spammed 
> > > > in the error.log with messages like these:
> > > >
> > > > ERROR   (2002-03-26) 14:13.28:463   [core.manager]
> (/list/mainlist)
> > > > SocketListener-0/XMLResourceBundle: cannot obtain XPathProcessor
> > > > java.lang.ClassCastException:
> > > > org.apache.cocoon.components.xpath.XPathProcessorImpl
> > > >
> > > > followed by a full trace. What causes this, and how can I get rid 
> > > > of that?
> > > >
> > > > thanks,
> > > > Christopher
> > > > --
> > > > .Digital.Yearning.for.Networked.Assassination.and.Xenocide
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

-- 
.Digital.Yearning.for.Networked.Assassination.and.Xenocide

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message