cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23269] - [PATCH] ServletException in JSPReader.generate()
Date Sun, 14 Dec 2003 01:38:03 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23269>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23269

[PATCH] ServletException in JSPReader.generate()

m_rolappe@web.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m_rolappe@web.de
            Summary|ServletException in         |[PATCH] ServletException in
                   |JSPReader.generate()        |JSPReader.generate()



------- Additional Comments From m_rolappe@web.de  2003-12-14 01:38 -------
I got a similar exception. the attached patch makes the error
message/stacktraces a bit more verbose so one can find out what the real problem is.

the problem in my case is the following:
 - my tomcat is installed in a path containing spaces
 - javac (J2SDK 1.4.2-b28) accepts spaces in source file names, but not in
response file (file containing names of source files) names
 - the javac task used by jasper to compile the JSPs creates such a response
file within the user.dir (which in my case is somewhere in tomcat's path),
because the servlet's classpath exceeds 4k
 - compilation then fails because of the erroneous response file name handling

since the JSPGenerator/JSPReader didn't just hand over the thrown exception, one
didn't get any clue. the attached patch contains modified versions of the
components to make them a bit more verbose.

solutions/workarounds:
 - fix javac
 - use another compiler
 - avoid installation paths containging spaces
 - etc.

Mime
View raw message