cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Madu" <andrewm...@gmail.com>
Subject Re: Xhtml and Ajax...no go!!
Date Sun, 11 Mar 2007 12:02:15 GMT
Hi,
here is a more comprehensive error report for the issue I am trying to
resolve:

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.cocoon.components.serializers.encoding.CharsetFactory
	org.apache.cocoon.components.serializers.EncodingSerializer.configure(EncodingSerializer.java:168)
	org.apache.cocoon.components.serializers.XHTMLSerializer.configure(XHTMLSerializer.java:118)
	org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil.java:201)
	org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:289)
	org.apache.avalon.excalibur.pool.InstrumentedResourceLimitingPool.newPoolable(InstrumentedResourceLimitingPool.java:655)
	org.apache.avalon.excalibur.pool.InstrumentedResourceLimitingPool.get(InstrumentedResourceLimitingPool.java:371)
	org.apache.avalon.excalibur.component.PoolableComponentHandler.doGet(PoolableComponentHandler.java:198)
	org.apache.avalon.excalibur.component.ComponentHandler.get(ComponentHandler.java:381)
	org.apache.avalon.excalibur.component.ExcaliburComponentSelector.select(ExcaliburComponentSelector.java:215)
	org.apache.cocoon.components.ExtendedComponentSelector.select(ExtendedComponentSelector.java:268)
	org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setSerializer(AbstractProcessingPipeline.java:309)
	org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setSerializer(AbstractCachingProcessingPipeline.java:159)
	org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:104)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(SwitchSelectNode.java:104)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.handleCocoonRedirect(ConcreteTreeProcessor.java:299)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.access$000(ConcreteTreeProcessor.java:48)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:340)
	org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:60)
	org.apache.cocoon.components.flow.AbstractInterpreter.forwardTo(AbstractInterpreter.java:210)
	org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.forwardTo(FOM_JavaScriptInterpreter.java:863)
	org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.forwardTo(FOM_Cocoon.java:699)
	org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsFunction_sendPage(FOM_Cocoon.java:270)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.mozilla.javascript.MemberBox.invoke(MemberBox.java:149)
	org.mozilla.javascript.FunctionObject.call(FunctionObject.java:474)
	org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3089)
	org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2255)
	org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
	org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:386)
	org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2772)
	org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)
	org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:917)
	org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:762)
	org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:139)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)
	org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:253)
	org.apache.cocoon.Cocoon.process(Cocoon.java:699)
	org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


--
Regards

Andrew

On 11/03/07, Andrew Madu <andrewmadu@gmail.com> wrote:
>
> Hi Jason/All,
> would I be correct in thinking that:
>
>     <map:serializer name="xhtml" src="
> org.apache.cocoon.components.serializers.XHTMLSerializer"
> mime-type="text/html">
>        <encoding>ISO-8859-1</encoding>
>        <doctype-default>strict</doctype-default>
>     </map:serializer>
>
> works for you? If so would it be possible for you to send me a copy of
> your serializer/charsets jars? I am using cocoon 2.1.10
>
> --
> Regards
>
> Andrew
>
> On 11/03/07, Andrew Madu <andrewmadu@gmail.com> wrote:
> >
> > Hi Jason,
> > thanks for the reply. I came across this website which seems to document
> > the very issue I am having now with previous versions of cocoon...
> >
> > http://www.jarhoo.com/jarhoo/JarFileContents.do?jarFileId=3935
> >
> > --
> > Regards
> >
> > Andrew
> >
> > On 11/03/07, Jason Johnston < cocoon@lojjic.net> wrote:
> > >
> > > Andrew Madu wrote:
> > > > Hi,
> > > >
> > > >     java.lang.NoClassDefFoundError : Could not initialize class
> > > >     org.apache.cocoon.components.serializers.encoding.CharsetFactory
> > > >
> > > >
> > > > I remember having this very issue with a previous version of cocoon,
> > > but
> > > > for the lief of me I can't remember how the issue was resolved. I
> > > think
> > > > I may have been given a different charset version but I can't be
> > > sure!
> > > > Any ideas with this one?
> > >
> > > I remember seeing a discussion about this a while back too but don't
> > > remember the outcome.  You can probably find it in the list archives.
> > >
> > > >
> > > > For the meantime I will revert back to the in-built xhtml serializer
> > > > until this issue is resolved.
> > >
> > > If you do that, a possible way to work around the issue is to run a
> > > XSLT
> > > just before serializing that adds content between the script tags so
> > > they don't collapse.  Something like:
> > >
> > > <xsl:stylesheet ...>
> > >
> > >     <!-- keep script tags from collapsing -->
> > >     <xsl:template match="script">
> > >        <xsl:copy>
> > >           <xsl:copy-of select="@*" />
> > >           <xsl:apply-templates />
> > >           <xsl:text>//</xsl:text>
> > >        </xsl:copy>
> > >     </xsl:template>
> > >
> > >     <!-- copy everything else through -->
> > >     <xsl:template match="*">
> > >        <xsl:copy>
> > >           <xsl:copy-of select="@*" />
> > >           <xsl:apply-templates />
> > >        </xsl:copy>
> > >     </xsl:template>
> > >
> > > </xsl:stylesheet>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > > For additional commands, e-mail: users-help@cocoon.apache.org
> > >
> > >
> >
>

Mime
View raw message