Hi Yoav,

Thanks for the reply.  I'm stuck using 4.1.18 so the
bug still applies to me :).  However I did take my
webapp code and copy it into a 5.0.19 install I had
laying around.  I then ran the compile under 5.0.19
and saw that no 0 length java file was created (this
version must have the bug fix) but no error message
appeared at all this time.  In fact I didn't even get
the "Error in file..." message.  I ran through the
configuration of the log4j logging but realized what I
really need is a way to get the exception encountered
by jspc displayed when I submit the JSP for
compilation by hand.  It would be much easier this
way.  The bug fix seems to indicate the any exception
should be rethrown so I expected to see it.  It seems
that the old -v option (for verbose ouput, i.e. -v4,
-v9, etc.) for jspc is no longer valid.  Is there a
new option that will possibly produce more output?

Jason

--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
> >First off, the 0 length Java files are due to a bug
> in
> >the Tomcat jspc compiler documented in this post:
> >
> >http://junlu.com/msg/41035.html
> 
> No.  The post doesn't discuss why the files are
> 0-length, only the
> consequences of them being 0-length (such as they're
> ignored by javac).
> The bug referred to in the post you quote has since
> been fixed.  The
> rest of the post talks about the poster's own errors
> in setting up
> commons-logging.
> 
> >1. Is there a way to see the exact command syntax
> that
> >Tomcat uses to compile the JSP (classpath and all)?
> >I'm assuming it doesn't used the jspc.sh script
> since
> >that is what I'm using to precompile it and it
> keeps
> >failing.
> 
> Your assumption is correct.  You can add debug-level
> logging to the
> org.apache.jasper package to see exactly what it
> does.  If you're unsure
> about configuring tomcat's logging, see
>
http://jakarta.apache.org/tomcat/faq/misc.html#commonsLoggingLog4j.
> 
> If you want to go further and/or see the code, start
> with the JspServlet
> itself, at
>
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-jasper/jasper2/src/shar
>
e/org/apache/jasper/servlet/JspServlet.java?rev=1.36&view=markup,
> and
> follow it through the JSP compilation context etc.
> 
> Yoav Shapira
> 
> 
> 
> This e-mail, including any attachments, is a
> confidential business communication, and may contain
> information that is confidential, proprietary and/or
> privileged.  This e-mail is intended only for the
> individual(s) to whom it is addressed, and may not
> be saved, copied, printed, disclosed or used by
> anyone else.  If you are not the(an) intended
> recipient, please immediately delete this e-mail
> from your computer system and notify the sender. 
> Thank you.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 



        
                
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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

Reply via email to