cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boissé Denis <>
Subject RE: JSP problem
Date Tue, 14 Aug 2007 14:01:16 GMT

Hi Andrew,

Thank for answers: 

Here my answers to you're question:

1) Which jsp-engine implementation is specified in your cocoon.xconf, and how is it configured?

In my cocoon.xconf I have (default installation):

<jsp-engine logger="core.jsp-engine">
    <parameter name="servlet-class" value="org.apache.jasper.servlet.JspServlet"/>

Following by this in comment:

  <jsp-engine logger="core.jsp-engine" class="org.apache.cocoon.components.jsp.JSPEngineImplNamedDispatcherInclude">
    <parameter name="servlet-name" value="*.jsp"/>
    <parameter name="forward" value="false"/>

2) What exactly do you have in the JSP (It's generate with MyEclipse)?  

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Test JSP</title>
 Hello World

After what you said, I eliminate the "<%@ page... "  line and I still get 
"Not able to compile JSP classe" error

3) Is there anything else in the stack trace (or any nested exceptions) to indicate why it
can't compile (I don't have ClassNotFoundException)

I put the complete stack trace at the bottom of this email if you want to see

4) If you copy the JSP file into some other (non-Cocoon) web app and call it directly, does
it work?  yes

NB: I also bypass (put in comment) the following line in the cocoon web.xml:


With that, the jsp file are suppose to be manage directly by the jsp servlet in the global
web.xml in tomcat, but I still have the error !!


at org.apache.jasper.compiler.DefaultErrorHandler.javacError(
	at org.apache.jasper.compiler.ErrorDispatcher.javacError(
	at org.apache.jasper.compiler.JDTCompiler.generateClass(
	at org.apache.jasper.compiler.Compiler.compile(
	at org.apache.jasper.compiler.Compiler.compile(
	at org.apache.jasper.compiler.Compiler.compile(
	at org.apache.jasper.JspCompilationContext.compile(
	at org.apache.jasper.servlet.JspServletWrapper.service(
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(
	at org.apache.jasper.servlet.JspServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.cocoon.components.jsp.JSPEngineImpl.executeJSP(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.apache.avalon.excalibur.component.ComponentProxyGenerator$ComponentInvocationHandler.invoke(
	at $Proxy19.executeJSP(Unknown Source)
	at org.apache.cocoon.reading.JSPReader.generate(
	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processReader(
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(
	at org.apache.cocoon.components.treeprocessor.sitemap.ReadNode.invoke(
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(
	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(
	at org.apache.cocoon.Cocoon.process(
	at org.apache.cocoon.servlet.CocoonServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

-----Message d'origine-----
De : Andrew Stevens [] 
Envoyé : 13 août 2007 20:22
À :
Objet : RE: JSP problem

> Date: Mon, 13 Aug 2007 15:37:46 -0400
> From:
> I have Cocoon version 2.1.10
> I have tomcat version 6.0.10
> I have Java version 1.6
> I put these lines in the sitemap:
> The file testJSP.jsp only display "Hello World"  
> When I type the URL "http://localhost:8080/cocoon/revue/testJSP.html"
> I have the following error:
> org.apache.jasper.JasperException: 
> Impossible de compiler la classe pour la JSP  
> (English: Not able to compile JSP classe)
> If somebody knows something ?

Which jsp-engine implementation is specified in your cocoon.xconf, and how is it configured?
What exactly do you have in the JSP?  Just the "Hello World" text, or are there any scriptlets
or JSP tags?  Does it use the original JSP style or XML-based equivalent?  Is there an @page
directive?  Is there anything else in the stack trace (or any nested exceptions) to indicate
why it can't compile (e.g. ClassNotFoundException of any referenced classes)?  If you copy
the JSP file into some other (non-Cocoon) web app and call it directly, does it work?

Open source java Sudoku application

The next generation of MSN Hotmail has arrived - Windows Live Hotmail
To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message