Copied the jasper-compiler.jar from TomCat\lib to <cocoon>\WEB-INF\lib

Same result.

You are right, there is no compiled jSP's under TOMCAT/work/cocoon


JSP reader:
I used the jsp reader , same result, no JSP generated....
        I get a page not found error in my browser, No exception or
error at any of the 3 log files (sitemap, core and error)

The following is the listing from sitemap.log 
------>
DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern jsp/*.htm
DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
HttpProcessor[8080][4]/AbstractSitemap: 
Current Sitemap Parameters:
PARAM: '1' VALUE: 'hello'
PARAM: '0' VALUE: 'jsp/hello.htm'

DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
HttpProcessor[8080][4]/sitemap_xmap: Component
reader:jsp(Parameters.EMPTY_PARAMETERS)
DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
HttpProcessor[8080][4]/AbstractSitemap: Substitute evaluated value for 1
as hello
DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
HttpProcessor[8080][4]/sitemap_xmap: Source= /docs/samples/jsp/hello.jsp
DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
HttpProcessor[8080][4]/sitemap_xmap: Mime-type= text/html
DEBUG   (2002-03-22) 13:57.40:963   [sitemap](/cocoon/jsp/hello.htm)
HttpProcessor[8080][4]/AbstractSitemap: Substitute evaluated value for 1
as hello
DEBUG   (2002-03-22) 13:57.43:517   [sitemap](/cocoon/jsp/hello.htm)
HttpProcessor[8080][4]/sitemap_xmap: Matched wildcard pattern jsp/*.htm
---->

There is no JSP compilation that takes place even for the JSP reader.



Old Build:
The same Hello.jsp, works with the older build for both jsp reader and
Generator. Also there is no jasper-compiler.jar in the WEB-INF/lib of
the old Build of Cocoon.


Konstantin, does JSP's work for you in the latest build....
If yes, what version of TomCat are you running

My environment is Cocoon (build as of 2 days back) and TomCat 4.0.1.

The url to test is  (assumption webApp is cocoon and port is 8080)
http://localhost:8080/cocoon/jsp/hello 

for JSP reader:

http://localhost:8080/cocoon/jsp/hello.htm

Thanks and regds,
Chiths





accordia, inc 
34347 Maybird Circle
Fremont, CA 94555
650 279 1137
[EMAIL PROTECTED]
 
The information contained in this communication is intended solely for
the use of the individual or entity to whom it is addressed and others
authorized to receive it. It may contain confidential or legally
privileged information. If you are not the intended recipient you are
hereby notified that any disclosure, copying, distribution or taking any
action in reliance on the contents of this information is strictly
prohibited and may be unlawful. If you have received this communication
in error, please notify us immediately by responding to this email and
then delete it from your system. Accordia Inc. is neither liable for the
proper and incomplete transmission of the information contained in this
communication nor for any delay in its receipt


-----Original Message-----
From: Piroumian, Konstantin [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 22, 2002 1:50 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [HELP]SAXException JspGenerator.generate() - Using Tom Cat
4.0.1 and latest Cocoon build JDK 1.3.1

> -----Original Message-----
> From: Chitharanjan Das [mailto:[EMAIL PROTECTED]] 
> 
> Hello Peter,
> 
> Interestingly there are no errors in the core.log., whatsoever...
> There are no errors in error.log
> The only error was in sitemap.log***

Does Cocoon JSP samples work? Try to use JSPReader to see if you get
_any_
output from your JSP. Check if your JSP is compiled (see work
directory). 

Did you copy jasper-compiler.jar to <cocoon>/WEB-INF/lib? JSPEngine
won't
work without that.

Regards,
Konstantin Piroumian

> 
> 
> The contents of hello.jsp are
> ---
> <%@ page language='java' session='false' %>
> <page>
>   <title>Hello</title>
>   <content>
>     <para>This is my first Cocoon2 page!</para>
>   </content>
> </page>
> ---
> 
> I had saved the war file from a previous installation....
> 
> Here is what I did....
> 
> Stopped TomCat 4.0.1
> 
> I deleted all the files under TomCat/work for the old cocoon....
> Removed the old war file from TomCat webapp directory
> 
> Copied the new Cocoon war...
> 
> Restart Tom Cat.
> 
> I test SVG creation and text generator examples, everything works. But
> JSP does not work. I had read somewhere that there will be  a new
> Compiler for JSP's and it would be included in the new 
> release, is this
> creating the problems.....
> 
> 
> To revert back to the old war (in which JSP works), I do the
> following...
> 
> Stop TomCat
> Delete all the files under TomCat\work for the cocoon context
> Replace the new Cocoonwar with the old one
> Restart TomCat
> Test JSP and other formats, it works...
> 
> 
> The questions are,
> Am I missing any steps in configuring the new release..
> Have you tested JSP's with the latest Cocoon build (as of yesterday
> around 7:00 PM Pacific Time).
> If you have a  working war with the latest build, could you mail it to
> me separately.....
> 
> Thanks and regds,
> Chiths
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Peter Schwenke [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, March 21, 2002 7:36 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [HELP]SAXException JspGenerator.generate() - 
> Using Tom Cat
> 4.0.1 and latest Cocoon build JDK 1.3.1
> 
> 
> The error is being trapped in JspGenerator for something called by
> JspGenerator.  JspGenerator runs the JSP page and passes whatever
> output it gets to XML parser.  Then the output of that goes to the
> next thing in the pipeline.  
> 
> The SAX Exception is because it cannot parse the output from your JSP.
> So either your JSP has not compiled and run correctly  or the XML it
> generates is incorrect.  
> 
> You need to check your cocoon log.  On my system this
> 
> $CATALINA_HOME/cocoon/WEB-INF/logs/core.log.00000?
> 
> 
>                                                               
>   ...Peter
> 
> Chitharanjan Das writes:
>  > 
>  > Hello,
>  > 
>  > The Exception being thrown is 
>  > Also attached is the function where the exception occurs...
>  > Please , we are in midst of our evaluation of Cocoon and this is
> causing
>  > 
>  > problems in us pitching this solution..........
>  > 
>  > 
>  > Regds,
>  > Chiths
>  > 
>  > 
>  > DEBUG   (2002-03-21) 17:21.31:248
>  > [sitemap.transformer.xslt](/accordiadev/jsp/hello)
>  > HttpProcessor[8080][4]/TraxTransformer: Using stylesheet:
>  >
> 'file:/C:/Projects/cocoon/Development/xml-cocoon2/build/cocoon
> /webapp/st
>  > ylesheets/page/simple-page2html.xsl' in
>  > org.apache.cocoon.transformation.TraxTransformer@4a3158, last
> modified:
>  > 1016686998673
>  > WARN    (2002-03-21) 17:21.32:200   
> [sitemap](/accordiadev/jsp/hello)
>  > HttpProcessor[8080][4]/sitemap_xmap: Error, try to process 
> the error
>  > page
>  > org.apache.cocoon.ProcessingException: SAXException
>  > JspGenerator.generate()
>  >    at
>  >
> org.apache.cocoon.generation.JspGenerator.generate(JspGenerato
> r.java:132
>  > )
>  >    at
>  >
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(Cachi
>  > ngEventPipeline.java:251)
>  >    at
>  >
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(Cach
>  > ingStreamPipeline.java:399)
>  >    at
>  >
> org.apache.cocoon.www.sitemap_xmap.matchN107D2(C:\Products\Web
> Servers\To
>  >
> mCat40\work\localhost\accordiadev\cocoon-files\org/apache/coco
> on/www\sit
>  > emap_xmap.java:9727)
>  >    at
>  >
> org.apache.cocoon.www.sitemap_xmap.process(C:\Products\WebServ
> ers\TomCat
>  >
> 40\work\localhost\accordiadev\cocoon-files\org/apache/cocoon/w
> ww\sitemap
>  > _xmap.java:3710)
>  >    at
>  >
> org.apache.cocoon.www.sitemap_xmap.process(C:\Products\WebServ
> ers\TomCat
>  >
> 40\work\localhost\accordiadev\cocoon-files\org/apache/cocoon/w
> ww\sitemap
>  > _xmap.java:3127)
>  >    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(SitemapManage
> r.java:154
>  > )
>  >    at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
>  >    at
>  >
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.
> java:991)
>  >    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  >    at
>  >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Applica
>  > tionFilterChain.java:247)
>  >    at
>  >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilt
>  > erChain.java:193)
>  >    at
>  >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValv
>  > e.java:243)
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.ja
>  > va:566)
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:4
>  > 72)
>  >    at
>  > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  >    at
>  >
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValv
>  > e.java:201)
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.ja
>  > va:566)
>  >    at
>  >
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.ja
>  > va:246)
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.ja
>  > va:564)
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:4
>  > 72)
>  >    at
>  > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  >    at
>  >
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:234
>  > 4)
>  >    at
>  >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java
>  > :164)
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.ja
>  > va:566)
>  >    at
>  >
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherVa
>  > lve.java:170)
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.ja
>  > va:564)
>  >    at
>  >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java
>  > :170)
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.ja
>  > va:564)
>  >    at
>  >
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:462
>  > )
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.ja
>  > va:564)
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:4
>  > 72)
>  >    at
>  > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  >    at
>  >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.
>  > java:163)
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.ja
>  > va:566)
>  >    at
>  >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:4
>  > 72)
>  >    at
>  > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  >    at
>  >
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.j
>  > ava:1011)
>  >    at
>  >
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:
>  > 1106)
>  >    at java.lang.Thread.run(Thread.java:484)
>  > DEBUG   (2002-03-21) 17:21.32:200   
> [sitemap](/accordiadev/jsp/hello)
>  > HttpProcessor[8080][4]/s
>  > 
>  > 
>  > 
>  > The exception is occuring in this function at the SiteMap
>  > 
>  >       /**
>  >        * Process to producing the output to the specified
>  > <code>OutputStream</code>.
>  >        */
>  >       public final boolean process(Environment environment) throws
>  > Exception  {
>  >         /* the <code>EventPipeline</code> is used to 
> collect the xml
>  > producing sitemap
>  >            components and the <code>StreamPipeline</code> 
> to produce
> the
>  > requested resource */
>  >         EventPipeline eventPipeline = null;
>  >         StreamPipeline pipeline = null;
>  >         boolean result = false;
>  >         try {
>  >           try {
>  >             eventPipeline =
>  > (EventPipeline)this.manager.lookup(EventPipeline.ROLE);
>  >             pipeline =
>  > (StreamPipeline)this.manager.lookup(StreamPipeline.ROLE);
>  >             pipeline.setEventPipeline(eventPipeline);
>  >           } catch (Exception e) {
>  >             getLogger().error("Processing of resource failed", e);
>  >             throw e;
>  >           }
>  > //The exception occurs here ..............................
>  >           result = process (environment, pipeline, eventPipeline,
>  > false);
>  > 
>  >         } finally {
>  >           if(eventPipeline != null)
> this.manager.release(eventPipeline);
>  >           if(pipeline != null) this.manager.release(pipeline);
>  >         }
>  >         return result;
>  >       }
>  > -----Original Message-----
>  > From: Peter Schwenke [mailto:[EMAIL PROTECTED]] 
>  > Sent: Wednesday, March 20, 2002 10:19 PM
>  > To: [EMAIL PROTECTED]
>  > Subject: [HELP]SAXException JspGenerator.generate() - Using Tom Cat
>  > 4.0.1 and latest Cocoon build JDK 1.3.1
>  > 
>  > Check your cocoon log.  They'll be an exception thrown 
> when when your
>  > JSP was running.
>  > 
>  >
> ...Peter
>  > 
>  > Chitharanjan Das writes:
>  >  > Hello all,
>  >  >         I just synchronized the latest source from 
> archive and deployed
>  >  > the cocoon and upon invocation of the JSP files, I am getting a
> SAX
>  >  > error.
>  >  > Has anybody faced this and if yes, is there any remedy 
> for this..
>  >  > 
>  >  > Thanks in advance.
>  >  > Chiths
>  >  > Description:org.apache.cocoon.ProcessingException: SAXException
>  >  > JspGenerator.generate() 
>  >  > 
>  >  > org.apache.cocoon.ProcessingException: SAXException
>  >  > JspGenerator.generate() 
>  >  > at
>  >  >
>  >
> org.apache.cocoon.generation.JspGenerator.generate(JspGenerato
> r.java:132
>  >  > ) 
>  >  > at
>  >  >
>  >
> org.apache.cocoon.components.pipeline.CachingEventPipeline.pro
> cess(Cachi
>  >  > ngEventPipeline.java:251) 
>  >  > at
>  >  >
>  >
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.pr
> ocess(Cach
>  >  > ingStreamPipeline.java:399) 
>  >  > at
>  >  >
>  >
> org.apache.cocoon.www.sitemap_xmap.matchN107D2(C:\Products\Web
> Servers\To
>  >  >
>  >
> mCat40\work\localhost\accordiadev\cocoon-files\org/apache/coco
> on/www\sit
>  >  > emap_xmap.java:9727) 
>  >  > at
>  >  >
>  >
> org.apache.cocoon.www.sitemap_xmap.process(C:\Products\WebServ
> ers\TomCat
>  >  >
>  >
> 40\work\localhost\accordiadev\cocoon-files\org/apache/cocoon/w
> ww\sitemap
>  >  > _xmap.java:3710) 
>  >  > at
>  >  >
>  >
> org.apache.cocoon.www.sitemap_xmap.process(C:\Products\WebServ
> ers\TomCat
>  >  >
>  >
> 40\work\localhost\accordiadev\cocoon-files\org/apache/cocoon/w
> ww\sitemap
>  >  > _xmap.java:3127) 
>  >  > 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(SitemapManage
> r.java:154
>  >  > ) 
>  >  > at org.apache.cocoon.Cocoon.process(Cocoon.java:575) 
>  >  > at
>  >  >
>  >
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.
> java:991) 
>  >  > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
>  >  > at
>  >  >
>  >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Applica
>  >  > tionFilterChain.java:247) 
>  >  > at
>  >  >
>  >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilt
>  >  > erChain.java:193) 
>  >  > at
>  >  >
>  >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValv
>  >  > e.java:243) 
>  >  > at
>  >  >
>  >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.ja
>  >  > va:566) 
>  >  > at
>  >  >
>  >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:4
>  >  > 72) 
>  >  > at
>  > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  >  > 
>  >  > at
>  >  >
>  >
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValv
>  >  > e.java:201) 
>  >  > at
>  >  >
>  >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.ja
>  >  > va:566) 
>  >  > at
>  >  >
>  >
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.ja
>  >  > va:246) 
>  >  > at
>  >  >
>  >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.ja
>  >  > va:564) 
>  >  > at
>  >  >
>  >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:4
>  >  > 72) 
>  >  > at
>  > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  >  > 
>  >  > 
>  >  > 
>  >  >
> ---------------------------------------------------------------------
>  >  > Please check that your question has not already been answered in
> the
>  >  > FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.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/faqs.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/faqs.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/faqs.html>

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

Reply via email to