You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andrew Madu <an...@gmail.com> on 2007/03/11 17:14:43 UTC

Re: HTTP Status 500 - java.lang.NoClassDefFoundError

Ah yes! This is the thread I was looking for. Miraculously it was me who ad
this same issue with 2.1.9, now I have it with 2.1.10!! I tried to rebuild
the charsets jar from src:

src\build\serialzers\charsets ant

but got an 'The system is out of resources' error message. WHAT?!!!

What is the issue here and how can I resolve this issue once and for all??

--
Regards

Andrew

On 14/08/06, Andrew <an...@gmail.com> wrote:
>
> Ok,
> it seems as if no one can get to the bottom of this one. Should I file a
> bug report?
>
> regards
>
> Andrew
>
> On 08/08/06, Andrew < andrewmadu@gmail.com> wrote:
> >
> > Ok guys,
> > what really is going on here?:
> >
> > java.lang.ExceptionInInitializerError
> >
> >
> > org.apache.cocoon.components.serializers.EncodingSerializer.configure(
> > EncodingSerializer.java:167)
> > org.apache.cocoon.components.serializers.XHTMLSerializer.configure (
> > XHTMLSerializer.java:114)
> > 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:267)
> >
> > org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.setSerializer(
> > AbstractProcessingPipeline.java:308)
> >
> > org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setSerializer
> > (AbstractCachingProcessingPipeline.java:161)
> > org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(
> > SerializeNode.java:103)
> >
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
> > (AbstractParentProcessingNode.java:68)
> >
> > org.apache.cocoon.components.treeprocessor.sitemap.SwitchSelectNode.invoke(
> > SwitchSelectNode.java:103)
> >
> >
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
> > (AbstractParentProcessingNode.java:46)
> >
> > org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(
> > PreparableMatchNode.java:130)
> >
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
> > (AbstractParentProcessingNode.java:68)
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke (
> > PipelineNode.java:142)
> >
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
> > (AbstractParentProcessingNode.java:68)
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
> > PipelinesNode.java:92)
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
> > (ConcreteTreeProcessor.java:234)
> >
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.handleCocoonRedirect(
> > ConcreteTreeProcessor.java:298)
> >
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.access$000
> > (ConcreteTreeProcessor.java:47)
> >
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(
> > ConcreteTreeProcessor.java:339)
> > org.apache.cocoon.environment.ForwardRedirector.redirect(
> > ForwardRedirector.java:59)
> > org.apache.cocoon.components.flow.AbstractInterpreter.forwardTo(
> > AbstractInterpreter.java:209)
> >
> > org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.forwardTo
> > (FOM_JavaScriptInterpreter.java:905)
> > org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.forwardTo
> > (FOM_Cocoon.java:698)
> >
> > org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsFunction_sendPage
> > (FOM_Cocoon.java:269)
> > inv6.invoke()
> >
> > org.mozilla.javascript.FunctionObject.doInvoke (FunctionObject.java:523)
> > org.mozilla.javascript.FunctionObject.call (FunctionObject.java:438)
> > org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
> > org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(
> > ContinuationInterpreter.java:1134)
> > org.mozilla.javascript.continuations.ContinuationInterpreter.interpret (
> > ContinuationInterpreter.java:190)
> > org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(
> > ContinuationInterpreter.java:138)
> > org.mozilla.javascript.continuations.InterpretedFunctionImpl.call(
> > InterpretedFunctionImpl.java :121)
> > org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
> >
> > org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction
> > (FOM_JavaScriptInterpreter.java:757)
> >
> > org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(
> > CallFunctionNode.java:138)
> >
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
> > (AbstractParentProcessingNode.java:46)
> >
> > org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(
> > PreparableMatchNode.java:130)
> >
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
> > (AbstractParentProcessingNode.java:68)
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke (
> > PipelineNode.java:142)
> >
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes
> > (AbstractParentProcessingNode.java:68)
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
> > PipelinesNode.java:92)
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
> > (ConcreteTreeProcessor.java:234)
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
> > (ConcreteTreeProcessor.java :176)
> > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(
> > TreeProcessor.java:252)
> > org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(
> > MountNode.java:117)
> >
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(
> > AbstractParentProcessingNode.java:46)
> >
> > org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke
> > (PreparableMatchNode.java:130)
> >
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(
> > AbstractParentProcessingNode.java:68)
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(
> > PipelineNode.java:142)
> >
> > org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(
> > AbstractParentProcessingNode.java:68)
> > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
> > PipelinesNode.java:92)
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
> > (ConcreteTreeProcessor.java :234)
> > org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process
> > (ConcreteTreeProcessor.java:176)
> > org.apache.cocoon.components.treeprocessor.TreeProcessor.process(
> > TreeProcessor.java:252)
> > org.apache.cocoon.Cocoon.process (Cocoon.java:686)
> > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1153)
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
> > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(
> > ReplyHeaderFilter.java :81)
> > regards
> >
> > Andrew
> >
> >
> > On 04/08/06, Andrew <an...@gmail.com> wrote:
> > >
> > > Hi,
> > > any joy with this one?
> > >
> > > regards
> > >
> > > Andrew
> > >
> > >
> > > On 31/07/06, Andrew <an...@gmail.com> wrote:
> > > >
> > > > Hi Reijin,
> > > > did you manage to resolve this issue?
> > > >
> > > > regards
> > > >
> > > > Andrew
> > > >
> > > >
> > > > On 28/07/06, Andrew < andrewmadu@gmail.com > wrote:
> > > > >
> > > > > Hi,
> > > > > yes I am using the default encoder:
> > > > >
> > > > > <encoding>UTF-8</encoding>
> > > > >
> > > > > regards
> > > > >
> > > > > Andrew
> > > > >
> > > > >
> > > > > On 28/07/06, Jeroen Reijn < j.reijn@hippo.nl> wrote:
> > > > > >
> > > > > > Just wondering. Did you specify an encoding for the serializer?
> > > > > > According to the documentation within the Java code you need to
> > > > > > set an
> > > > > > encoding.
> > > > > >
> > > > > > Regards,
> > > > > >
> > > > > > Reijn
> > > > > >
> > > > > >
> > > > > > Andrew wrote:
> > > > > > > Hi Reijin,
> > > > > > > unfortunately the jar you sent did not change the situation. I
> > > > > > am still
> > > > > > > getting the same error message. Any ideas?
> > > > > > >
> > > > > > > regards
> > > > > > >
> > > > > > > Andrew
> > > > > > >
> > > > > > > On 28/07/06, * Jeroen Reijn* < j.reijn@hippo.nl
> > > > > > > <mailto: j.reijn@hippo.nl>> wrote:
> > > > > > >
> > > > > > >     Andew,
> > > > > > >
> > > > > > >     Sure it's on it's way over.
> > > > > > >
> > > > > > >     Regards,
> > > > > > >
> > > > > > >     Reijn
> > > > > > >
> > > > > > >     Andrew wrote:
> > > > > > >      > Hi Reijin,
> > > > > > >      > I was unable to build the jar using ant. Is there any
> > > > > > way you
> > > > > > >     could send
> > > > > > >      > the jar file over to me?
> > > > > > >      >
> > > > > > >      > regards
> > > > > > >      >
> > > > > > >      > Andrew
> > > > > > >      >
> > > > > > >      > On 28/07/06, *Jeroen Reijn * <j.reijn@hippo.nl
> > > > > > >     <mailto: j.reijn@hippo.nl>
> > > > > > >      > <mailto:j.reijn@hippo.nl <mailto: j.reijn@hippo.nl>>>
> > > > > > wrote:
> > > > > > >      >
> > > > > > >      >     Hi Andrew,
> > > > > > >      >
> > > > > > >      >     I think a had the same problem a couple of months
> > > > > > ago doing a
> > > > > > >     project.
> > > > > > >      >     It seems your charsetFactory isn't able to find the
> > > > > > charsets.
> > > > > > >      >
> > > > > > >      >     I can remember I had to build this myself from the
> > > > > > cocoon source.
> > > > > > >      >     Within the cocoon 2.1.9 distribution
> > > > > > >      >     (cocoon-2.1.9\src\blocks\serializers\charsets) is
> > > > > > an ant
> > > > > > >     build file that
> > > > > > >      >     can create the jar for you. You will have to
> > > > > > include this jar
> > > > > > >     in your
> > > > > > >      >     WEB-INF/lib directory of cocoon.
> > > > > > >      >
> > > > > > >      >     If you are not able to create the jar please let me
> > > > > > know.
> > > > > > >      >
> > > > > > >      >     Regards,
> > > > > > >      >
> > > > > > >      >     Reijn
> > > > > > >      >
> > > > > > >      >
> > > > > > >      >     Bertrand Delacretaz wrote:
> > > > > > >      >      > On 7/28/06, Andrew < andrewmadu@gmail.com
> > > > > > >     <mailto: andrewmadu@gmail.com>
> > > > > > >      >     <mailto: andrewmadu@gmail.com <mailto:
> > > > > > andrewmadu@gmail.com>>>
> > > > > > >     wrote:
> > > > > > >      >      >
> > > > > > >      >      >> ...root cause java.lang.NoClassDefFoundError
> > > > > > >      >      >>
> > > > > > >      >
> > > > > > >
> > > > > > org.apache.cocoon.components.serializers.EncodingSerializer.configure
> > > > > > (EncodingSerializer.java:167)...
> > > > > > >      >      >>
> > > > > > >      >      >
> > > > > > >      >      > Line 167 of EncodingSerializer is
> > > > > > >      >      > this.charset = CharsetFactory.newInstance
> > > > > > >     ().getCharset(encoding);
> > > > > > >      >      >
> > > > > > >      >      > So it looks like it's the CharsetFactory class
> > > > > > that's not
> > > > > > >     found.
> > > > > > >      >     Can't
> > > > > > >      >      > tell you why though, it should be in the same
> > > > > > >      >      > cocoon-serializers-block.jar as the others.
> > > > > > >      >      >
> > > > > > >      >      > -Bertrand
> > > > > > >      >      >
> > > > > > >      >      >
> > > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > >      >      > To unsubscribe, e-mail:
> > > > > > >     users-unsubscribe@cocoon.apache.org
> > > > > > >     <mailto: users-unsubscribe@cocoon.apache.org >
> > > > > > >      >     <mailto:users-unsubscribe@cocoon.apache.org
> > > > > > >     <mailto: users-unsubscribe@cocoon.apache.org >>
> > > > > > >      >      > For additional commands, e-mail:
> > > > > > >     users-help@cocoon.apache.org <mailto:users-help@cocoon.apache.org
> > > > > > >
> > > > > > >      >     <mailto:users-help@cocoon.apache.org
> > > > > > >     <mailto:users-help@cocoon.apache.org >>
> > > > > > >      >      >
> > > > > > >      >
> > > > > > >      >
> > > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > >      >     To unsubscribe, e-mail:
> > > > > > users-unsubscribe@cocoon.apache.org
> > > > > > >     <mailto:users-unsubscribe@cocoon.apache.org >
> > > > > > >      >     <mailto: users-unsubscribe@cocoon.apache.org
> > > > > > >     <mailto:users-unsubscribe@cocoon.apache.org >>
> > > > > > >      >     For additional commands, e-mail:
> > > > > > users-help@cocoon.apache.org
> > > > > > >     <ma...@cocoon.apache.org>
> > > > > > >      >     <mailto: users-help@cocoon.apache.org
> > > > > > >     <ma...@cocoon.apache.org>>
> > > > > > >      >
> > > > > > >      >
> > > > > > >
> > > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > >     To unsubscribe, e-mail:
> > > > > > users-unsubscribe@cocoon.apache.org
> > > > > > >     <mailto: users-unsubscribe@cocoon.apache.org >
> > > > > > >     For additional commands, e-mail:
> > > > > > users-help@cocoon.apache.org
> > > > > > >     <mailto: users-help@cocoon.apache.org >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > > > > > For additional commands, e-mail: users-help@cocoon.apache.org
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>