cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <b.molenk...@bizzdesign.nl>
Subject RE: Java objects in JX templates
Date Tue, 31 Jan 2006 14:40:00 GMT
java.lang.ClassNotFoundException:
com/bizzdesign/risks/assessment/UploadedEvidence

org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
file:/app/was/installedApps/riskmanager/riskmanager.ear/riskmanager-1.1.
0.132.war/content/secure/reports/templates/ineffective-controls.xml:104:
93:org.mozilla.javascript.JavaScriptException:
java.lang.ClassNotFoundException:
com/bizzdesign/risks/assessment/UploadedEvidence
	at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
XMLPipeline(AbstractProcessingPipeline.java:582)
	at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe
line.processXMLPipeline(AbstractCachingProcessingPipeline.java:183)

...

Similair exceptions were thrown everywhere, saying that lots of classes
couldn't be found anymore (UploadedEvidence class was only one of them).
The application needed a reboot to get rid of this exception. Seems like
the expression, after being evaluated for several times, messes up the
class loader somehow...

Bart.

> -----Oorspronkelijk bericht-----
> Van: Ralph Goers [mailto:Ralph.Goers@dslextreme.com]
> Verzonden: dinsdag 31 januari 2006 14:48
> Aan: dev@cocoon.apache.org
> Onderwerp: Re: Java objects in JX templates
> 
> Not without a stack trace.
> 
> Bart Molenkamp wrote:
> 
> >>I've had problems with the following expression:
> >>
> >><jx:when test="${java.lang.Class.forName( \
> >>'com.bizzdesign.risks.assessment.UploadedEvidence'). \
> >>isAssignableFrom(evidence.getClass())}">
> >>
> >>(the expression is one line).
> >>
> >>This expression works, but somehow after calling the page a few
times,
> >>the application hangs. Took me a long time to figure it out. (I've
> >>already solved it, simply by having a method
> >>evidence.isUploadableEvidence() with the expression written in
Java).
> >>
> >>Does anybody know what might be going wrong? (I'm just curious)
> >>
> >>Bart.
> >>
> >>
> >>


Mime
View raw message