DO NOT REPLY [Bug 21366] - A JSP-Servlet translation bug

2003-08-14 Thread bugzilla
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=21366.
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=21366

A JSP-Servlet translation bug





--- Additional Comments From [EMAIL PROTECTED]  2003-08-10 09:09 ---
Thanks to that info, I was able to track this down (for Tomcat 5, at least; I 
haven't investigated this on Tomcat 4 at all).

The fix is to copy xercesImpl.jar and xml-apis.jar from your Ant installation 
to Tomcat's common/lib directory.  When you precompile, the class loader is 
created by Jspc.java's initClassLoader() method, and includes the Ant jars in 
its URL list.  When you don't precompile, the class loader is created in 
JspRuntimeContext.java, and doesn't include the Ant jars.

I haven't traced exactly why the missing jars cause the problem, but one 
difference between jars/no jars is in XMLEncodingDetector.java's getEncoding() 
method.  Class.forName(org.apache.xerces.util.SymbolTable) works fine if the 
class loader can see the jars in question, and throws an exception otherwise.

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



DO NOT REPLY [Bug 21366] - A JSP-Servlet translation bug

2003-08-14 Thread bugzilla
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=21366.
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=21366

A JSP-Servlet translation bug

[EMAIL PROTECTED] changed:

   What|Removed |Added

  Component|Servlet  JSP API   |Jasper 2



--- Additional Comments From [EMAIL PROTECTED]  2003-08-09 16:32 ---
I have the same problem with Tomcat 5 (latest CVS) on Windows XP 
(j2sdk1.4.1_02 and j2sdk1.4.2). I can reproduce it consistently by compiling 
xml/xml.jsp from the jsp-examples webapp that ships with Tomcat 5.

The problem seems to be that the scriptlet text that 
org.apache.crimson.parser.InputEntity.parsedContent passes to 
JspDocumentParser.java's characters() method doesn't contain any line feeds. 
characters() is called separately for each line of the scriplet text, and 
dutifully creates TemplateText nodes for each line. Then 
Node.ScriptingElement's getText() method concatenates the text of the 
different TemplateText nodes into the text you see in the output .java file, 
still without any line feeds.

If that's intended behavior on the part of 
org.apache.crimson.parser.InputEntity.parsedContent, then this can be fixed by 
having Node.ScriptingElement's getText() method insert the necessary line 
feeds. But I note that the precompiled xml/xml_jsp.java that ships with Tomcat 
5 doesn't have this problem (which means it compiles correctly on _someone's_ 
machine), and the Platform given in the original bug report was PC, same as 
my machine. So perhaps this is a Windows-only problem.

I don't have access to a non-Windows machine to develop or test on, so I don't 
think I can go any further with this. Can someone with more hardware and/or 
knowledge of XML parsers pick this up?

Also changing the Component from Servlet  JSP API to Jasper 2, as this is 
a problem with Jasper or something Jasper relies on.

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



DO NOT REPLY [Bug 21366] - A JSP-Servlet translation bug

2003-08-14 Thread bugzilla
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=21366.
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=21366

A JSP-Servlet translation bug





--- Additional Comments From [EMAIL PROTECTED]  2003-08-10 09:15 ---
Yes, you're right. Xerces would be there because of Ant during a precompilation,
so it works then.
This bug is basically the first good reason I've seen for bundling back Xerces 2.

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



DO NOT REPLY [Bug 21366] - A JSP-Servlet translation bug

2003-08-14 Thread bugzilla
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=21366.
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=21366

A JSP-Servlet translation bug

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-08-10 10:04 ---
It has been determined that using Xerces solves this problem. If you're using
the JDK 1.4 edition of Tomcat 4, you could be impacted.
Also, Tomcat 5 will include Xerces 2 again as a result of this bug (please
complain if you disagree with that).
The bug itself is invalid (it is not a Tomcat bug). Many thanks to Eric for
investigating the issue.

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



DO NOT REPLY [Bug 21366] - A JSP-Servlet translation bug

2003-08-09 Thread bugzilla
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=21366.
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=21366

A JSP-Servlet translation bug





--- Additional Comments From [EMAIL PROTECTED]  2003-08-09 17:41 ---
It's quite odd. I use Windows, and I'm the one making the builds.

a) When I'm precompiling, the CDATA has some \n in it, so it works (the rest of
the file does have normal CRLF)
b) When I don't precompile, what you described happens

Very weird.

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



DO NOT REPLY [Bug 21366] - A JSP-Servlet translation bug

2003-07-25 Thread bugzilla
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=21366.
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=21366

A JSP-Servlet translation bug

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Severity|Minor   |Normal
 OS/Version|Windows XP  |All
Summary|A minor JSP-Servlet |A JSP-Servlet translation
   |translation bug |bug

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