I just installed the whole package on another machine and I encountered
the same problem.  I don't know how to modify the error handler to get
more information.  Could it be a problem with where I put the jars?

For the record, here's what I did:
1. installed Tomcat with the exact same Classpath configuration it had
on the other computer
2. Put the Cocoon.war I built into the webapps directory
3. Changed the entry in the sitemap to remove the buggy initial forward
slash

        NO    <map:generate src="/docs/samples/jsp/{1}.jsp" type="jsp"/>
        YES   <map:generate src="docs/samples/jsp/{1}.jsp" type="jsp"/>

(Otherwise Cocoon resolves the file to c:\docs\samples\jsp\hello.jsp)
4. Ran cocoon, typed in http://127.0.0.1:8080/cocoon/jsp/hello
Same Error (logs at end of email).

Here's the jsp code:
<%@ page language='java' session='false' %>
<page>
  <title>Hello</title>
  <content>
    <para>This is my first Cocoon2 page!</para>
<%    
out.println("    <para>With help from JSP</para>");
%>
  </content>
</page>


PROBLEM WITH THE JARS?
I'm wondering if I have a jar in the wrong place.  This happens to me a
lot.

Here is the contents of c:\jdk1.3.1\jre\lib\ext:
[lib]
[org]
[META-INF]
[MyNa]
ext.zip
mm.mysql-2.0.14-bin.jar
MyNa.jar
MyNajsp.jar
naming-factory.jar
php_java.jar
phpsrvlt.jar
regexp.jar
runtime.jar
BCEL.jar
bsf.jar
DBConnMgr.properties
jasper.jar
jasper-compiler.jar
jasper-runtime.jar
java_cup.jar
JLex.jar
jndi.jar
jaxp.jar
jaxp11-xalan.jar
xalan-2.2.0-D13.jar
xerces-1.4.4.jar

Here is the contents of apache tomcat 4.0/lib:
jasper-runtime.jar
naming-factory.jar
jasper-compiler.jar

Again, any help is appreciated.  I don't know how to modify the error
handler to get more information...

Rob

----------------

LOGS 


Error log is empty.



Here is the core log:

DEBUG   (2002-06-10) 17:12.56:298
[core.xslt-processor](/cocoon/jsp/hello)
HttpProcessor[8080][1]/XSLTProcessorImpl: XSLTProcessorImpl
getTemplates: stylesheet file:/C:/Program Files/Apache Tomcat
4.0/webapps/cocoon/stylesheets/page/simple-page2html.xsl

DEBUG   (2002-06-10) 17:12.56:329
[core.xslt-processor](/cocoon/jsp/hello)
HttpProcessor[8080][1]/XSLTProcessorImpl: Reusing Templates for
file:/C:/Program Files/Apache Tomcat
4.0/webapps/cocoon/stylesheets/page/simple-page2html.xsl
DEBUG   (2002-06-10) 17:12.57:821
[core.xslt-processor](/cocoon/jsp/hello)
HttpProcessor[8080][1]/XSLTProcessorImpl: XSLTProcessorImpl
getTemplates: stylesheet
jndi:/localhost/cocoon/stylesheets/system/error2html.xsl
DEBUG   (2002-06-10) 17:12.57:841
[core.xslt-processor](/cocoon/jsp/hello)
HttpProcessor[8080][1]/XSLTProcessorImpl: Reusing Templates for
jndi:/localhost/cocoon/stylesheets/system/error2html.xsl
DEBUG   (2002-06-10) 17:12.57:941
[core.event-pipeline](/cocoon/jsp/hello)
HttpProcessor[8080][1]/CachingEventPipeline: Recycling of
CachingEventPipeline
DEBUG   (2002-06-10) 17:12.57:941
[core.stream-pipeline](/cocoon/jsp/hello)
HttpProcessor[8080][1]/CachingStreamPipeline: Recycling of
CachingStreamPipeline
DEBUG   (2002-06-10) 17:12.57:941
[core.event-pipeline](/cocoon/jsp/hello)
HttpProcessor[8080][1]/CachingEventPipeline: Recycling of
CachingEventPipeline
DEBUG   (2002-06-10) 17:12.57:961
[core.stream-pipeline](/cocoon/jsp/hello)
HttpProcessor[8080][1]/CachingStreamPipeline: Recycling of
CachingStreamPipeline


Here is the access log:

DEBUG   (2002-06-10) 17:12.54:075   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment: Changing Cocoon context
DEBUG   (2002-06-10) 17:12.54:085   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment:   from
context(file:/C:/Program Files/Apache Tomcat 4.0/webapps/cocoon/) and
prefix()
DEBUG   (2002-06-10) 17:12.54:085   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment:   to context(sitemap.xmap)
and prefix()
DEBUG   (2002-06-10) 17:12.54:085   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment:   at URI jsp/hello
DEBUG   (2002-06-10) 17:12.54:085   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment: New context is
file:/C:/Program Files/Apache Tomcat 4.0/webapps/cocoon/
DEBUG   (2002-06-10) 17:12.54:085   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment: Resolving
'stylesheets/page/simple-page2html.xsl' in context 'file:/C:/Program
Files/Apache Tomcat 4.0/webapps/cocoon/'
DEBUG   (2002-06-10) 17:12.54:095   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment: Resolved to
'file:/C:/Program Files/Apache Tomcat
4.0/webapps/cocoon/stylesheets/page/simple-page2html.xsl'
DEBUG   (2002-06-10) 17:12.54:105   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment: Resolving
'docs/samples/jsp/hello.jsp' in context 'file:/C:/Program Files/Apache
Tomcat 4.0/webapps/cocoon/'
DEBUG   (2002-06-10) 17:12.54:105   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment: Resolved to
'file:/C:/Program Files/Apache Tomcat
4.0/webapps/cocoon/docs/samples/jsp/hello.jsp'
DEBUG   (2002-06-10) 17:12.54:866   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/HttpEnvironment: Response wasn't reset
DEBUG   (2002-06-10) 17:12.54:876   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment: Resolving
'context://stylesheets/system/error2html.xsl' in context
'file:/C:/Program Files/Apache Tomcat 4.0/webapps/cocoon/'
DEBUG   (2002-06-10) 17:12.54:876   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment: Resolved to
'jndi:/localhost/cocoon/stylesheets/system/error2html.xsl'
DEBUG   (2002-06-10) 17:12.54:947   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment: Set the URI Prefix (OLD=,
NEW=)
DEBUG   (2002-06-10) 17:12.54:947   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractEnvironment: Reset context to
file:/C:/Program Files/Apache Tomcat 4.0/webapps/cocoon/
INFO    (2002-06-10) 17:12.54:947   [access](/cocoon/jsp/hello)
HttpProcessor[8080][1]/CocoonServlet: 'jsp/hello' Processed by Apache
Cocoon 2.0.2 in 872 milliseconds.

Here is the sitemap log:

DEBUG   (2002-06-10) 17:12.54:085   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Matched wildcard pattern jsp/*
DEBUG   (2002-06-10) 17:12.54:085   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractSitemap: 
Current Sitemap Parameters:
PARAM: '1' VALUE: 'hello'
PARAM: '0' VALUE: 'jsp/hello'

DEBUG   (2002-06-10) 17:12.54:085   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Component
generator:jsp(Parameters.EMPTY_PARAMETERS)
DEBUG   (2002-06-10) 17:12.54:085   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractSitemap: Substitute evaluated value for 1
as hello
DEBUG   (2002-06-10) 17:12.54:085   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Source= docs/samples/jsp/hello.jsp
DEBUG   (2002-06-10) 17:12.54:085   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/AbstractSitemap: Substitute evaluated value for 1
as hello
DEBUG   (2002-06-10) 17:12.54:085   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Component
transformer:xslt(Parameters.EMPTY_PARAMETERS)
DEBUG   (2002-06-10) 17:12.54:085   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Source=
stylesheets/page/simple-page2html.xsl
DEBUG   (2002-06-10) 17:12.54:085   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Component
serializer:html(Parameters.EMPTY_PARAMETERS)
DEBUG   (2002-06-10) 17:12.54:095
[sitemap.transformer.xslt](/cocoon/jsp/hello)
HttpProcessor[8080][1]/TraxTransformer: Using stylesheet:
'file:/C:/Program Files/Apache Tomcat
4.0/webapps/cocoon/stylesheets/page/simple-page2html.xsl' in
org.apache.cocoon.transformation.TraxTransformer@1f90e3, last modified:
1023742574000
WARN    (2002-06-10) 17:12.54:866   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Error, try to process the error
page
org.apache.cocoon.ProcessingException: SAXException
JspGenerator.generate()
        at
org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:132
)
        at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(Cachi
ngEventPipeline.java:251)
        at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(Cach
ingStreamPipeline.java:399)
        at org.apache.cocoon.www.sitemap_xmap.matchN10516(C:\Program
Files\Apache Tomcat
4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xma
p.java:6605)
        at org.apache.cocoon.www.sitemap_xmap.process(C:\Program
Files\Apache Tomcat
4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xma
p.java:3000)
        at org.apache.cocoon.www.sitemap_xmap.process(C:\Program
Files\Apache Tomcat
4.0\work\localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xma
p.java:2533)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
        at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154
)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
        at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:201)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
4)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:164)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462
)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:163)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1011)
        at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1106)
        at java.lang.Thread.run(Unknown Source)
DEBUG   (2002-06-10) 17:12.54:866   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Starting to build Notifying
DEBUG   (2002-06-10) 17:12.54:866   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Got
org.apache.cocoon.components.notification.DefaultNotifyingBuilder@233414
DEBUG   (2002-06-10) 17:12.54:876   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Built
org.apache.cocoon.components.notification.SimpleNotifyingBean@3041b0
DEBUG   (2002-06-10) 17:12.54:876   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Added to
objectModelorg.apache.cocoon.components.notification.SimpleNotifyingBean
@3041b0
DEBUG   (2002-06-10) 17:12.54:876   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Component
transformer:xslt(Parameters.EMPTY_PARAMETERS)
DEBUG   (2002-06-10) 17:12.54:876   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Source=
context://stylesheets/system/error2html.xsl
DEBUG   (2002-06-10) 17:12.54:876   [sitemap](/cocoon/jsp/hello)
HttpProcessor[8080][1]/sitemap_xmap: Component
serializer:html(Parameters.EMPTY_PARAMETERS)

-----Original Message-----
From: William Brogden [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 10, 2002 9:45 AM
To: [EMAIL PROTECTED]
Subject: RE: Barf on JSPGenerator on Hello.jsp (HELP!)

> -----Original Message-----
> From: Rob Kelley [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, June 09, 2002 4:41 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Barf on JSPGenerator on Hello.jsp (HELP!)
> 
> 
> 
> I'm still stuck here.  Any help would be appreciated.  
> 
> 
>  > 
>  > I'm running cocoon 2.0.2 on Tomcat  4.0.1 (Windows).  I've been
> trying to run the hello example for the jsp:  > 
>  > http://127.0.0.1:8080/cocoon/jsp/hello
>  > 
>  > I get the same error (stack trace at end of email):
>  > 
>  > "SAXException JspGenerator.generate()" 
>  > 
>  > My sitemap entry is:
>  > 
>  >    <map:match pattern="jsp/*">
>  >     <map:generate src="/docs/samples/jsp/{1}.jsp" type="jsp"/>
>  >     <map:transform src="stylesheets/page/simple-page2html.xsl"/>
>  >     <map:serialize type="html"/>
>  >    </map:match>
>  > 
>  > 
>  > My cocoon.xconf jsp-engine is:
>  >   <jsp-engine logger="core.jsp-engine">
>  >     <parameter name="servlet-class"
> value="org.apache.jasper.servlet.JspServlet"/>
>  >     <parameter name="servlet-name" value="*.jsp"/>
>  >   </jsp-engine>
>  > 
>  > And I'm at wit's end. How do I get JSPs to work?
>  > 
>  > Please help!
>  > 
>  > Rob
>  > 
>  > Stack Trace:
>  > org.apache.cocoon.ProcessingException: SAXException
> JspGenerator.generate() 

 SAXExceptions have details on the cause which
the standard error reporter is not displaying.
You may want to create a modified error handler
to dump the extra details which include:
an "embedded" Exception and a detailed message.


[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285





---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to