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:[EMAIL PROTECTED] > 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. > >> > >> > >>