You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/10/27 13:52:45 UTC

DO NOT REPLY [Bug 40828] New: - non-working jsp example jsxp svg

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40828

           Summary: non-working jsp example jsxp svg
           Product: Tomcat 5
           Version: 5.5.20
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Webapps:Examples
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: d.kennedy@lvnl.nl


My problem is as follows:
On Oracle Applicaton Server Rel.1  (windowsNT) I had a page using SVG and it 
worked fine. Because we choose for an open platform, we copied the pages to 
Tomcat 5.5.20 on Windows2003. Now we have the problem that the page is 
initially ok when it is requested but using the back button (windowsxp pro sp2 
in IE6 6.0.2900.2180 (sp2)) the picture is broken. Even if I refresh the page 
it is still broken. I made a favorite and using this one after the "broken" 
page it works eventhough it is the same URL. On firefox (2.0) it works just 
fine.
So, I went searching through the jsp-examples if there was the same error and 
it did.
I used the New JSP XML Syntax (.jspx)/ SVG (Scalable Vector Graphics) example 
and on it showed the same error.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40828] - non-working jsp example jsxp svg

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40828


d.kennedy@lvnl.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40828] - non-working jsp example jsxp svg

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40828


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From markt@apache.org  2006-10-27 18:37 -------
I have tested this and can confirm it is not a Tomcat bug.

Looks like an IE bug or more likely a bug with whichever SVG plugin you are
using to support SVG in IE. For the record the dobe plugin for IE7 fails when
you use the back button.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40828] - non-working jsp example jsxp svg

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40828


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From markt@apache.org  2007-02-15 16:01 -------
This behaviour is required by the spec so this is not a bug. That the client
doesn't handle it is an issue for the client.

If you want more control over the headers to work around this client issue then
you can use getOutputStream() rather than getWriter().

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40828] - non-working jsp example jsxp svg

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40828


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From markt@apache.org  2006-12-22 17:01 -------
Again, SVG works for me in 5.5.20. I have tested with your provided example and
with a few changes so it is actually displayed it works fine with refresh.

This is clearly a browser/svg plugin issue, not a Tomcat issue.


For the record the amended test case was:
<?xml version="1.0" encoding="iso-8859-1"?>
<%@ page contentType="image/svg-xml" %>
<%@ page import = "java.util.*" %>

<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     version="1.1"
     baseProfile="full"
     width="860" height="600">

<circle id="kreis" cx="100" cy="100" r="40" style="fill: #ffccaa"/>

<a xlink:href="http://www.google.nl" 
     target="_top">
    <text x="30" y="200"><% out.print("(from out.print) = link to google.nl");%>
     </text>
</a>

</svg>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40828] - non-working jsp example jsxp svg

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40828





------- Additional Comments From d.kennedy@lvnl.nl  2007-02-13 02:40 -------
Hi Mark,

Like you said I got het http headers and they are different between 5.5.20 en 
6.0.2.
In the response of 5.5.20 I see:
***************
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=53204A6840B839F56041E8810AE20EF9; Path=/duncan
Content-Type: image/svg-xml;charset=ISO-8859-1
Content-Length: 442
Date: Thu, 08 Feb 2007 14:57:23 GMT
***************
In the response of 6.0.2 I see:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=2C395C611F300A0C31AB255EBCE48555; Path=/duncan
Content-Type: image/svg-xml
Content-Length: 442
Date: Thu, 08 Feb 2007 14:58:31 GMT
****************
The only difference on first contact is the Content-Type.
There isn't a difference between the windows regional settings from the 2 
servers. So I looked at the internet to see some hits on this issue.
I couldn't find any accept links to the Coyote connector.
After downloading the source I found the difference in the response.java
This had been changed in the case of setting the character encoding:
reponse.java in Tomcat 5.5:
public PrintWriter getWriter() 
        throws IOException {
 
        if (usingOutputStream)
            throw new IllegalStateException
                (sm.getString("coyoteResponse.getWriter.ise"));
 
        /*
         * If the response's character encoding has not been specified as
         * described in <code>getCharacterEncoding</code> (i.e., the method
         * just returns the default value <code>ISO-8859-1</code>),
         * <code>getWriter</code> updates it to <code>ISO-8859-1</code>
         * (with the effect that a subsequent call to getContentType() will
         * include a charset=ISO-8859-1 component which will also be
         * reflected in the Content-Type response header, thereby satisfying
         * the Servlet spec requirement that containers must communicate the
         * character encoding used for the servlet response's writer to the
         * client).
         */
        setCharacterEncoding(getCharacterEncoding());
 
        usingWriter = true;
        outputBuffer.checkConverter();
        if (writer == null) {
            writer = new CoyoteWriter(outputBuffer);
        }
        return writer;
 
    }
 
response.java in Tomcat 6.0 rc2
public PrintWriter getWriter() 
        throws IOException {
 
        if (usingOutputStream)
            throw new IllegalStateException
                (sm.getString("coyoteResponse.getWriter.ise"));
 
        if (Globals.STRICT_SERVLET_COMPLIANCE) {
            /*
             * If the response's character encoding has not been specified as
             * described in <code>getCharacterEncoding</code> (i.e., the method
             * just returns the default value <code>ISO-8859-1</code>),
             * <code>getWriter</code> updates it to <code>ISO-8859-1</code>
             * (with the effect that a subsequent call to getContentType() will
             * include a charset=ISO-8859-1 component which will also be
             * reflected in the Content-Type response header, thereby satisfying
             * the Servlet spec requirement that containers must communicate the
             * character encoding used for the servlet response's writer to the
             * client).
             */
            setCharacterEncoding(getCharacterEncoding());
        }
 
        usingWriter = true;
        outputBuffer.checkConverter();
        if (writer == null) {
            writer = new CoyoteWriter(outputBuffer);
        }
        return writer;
 
    }
In 6.0.2 is an extra if and my idea is that this can cause the problem.
I really like to hear from you.
Regards,

Duncan Kennedy

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40828] - non-working jsp example jsxp svg

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40828


d.kennedy@lvnl.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40828] - non-working jsp example jsxp svg

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40828


d.kennedy@lvnl.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




------- Additional Comments From d.kennedy@lvnl.nl  2006-12-27 02:36 -------
Hi Mark,

Sorry to bother you again but I really want this to work.
Did you test the jsp in IE? because it works in Firefox.
I'm using the adobe v3 (EN) svg plugin.
I tested with 2 tomcat 5.5.20 instances on 2 different win2k3 servers but on 
refresh it doesn't work.
I tested the 6.0.2 beta and it works on refresh with IE. (I tried 5 pc's and 
they all react the same way).
Please tell me what to do or what the differences are so I can alter/patch the 
5.5.20 instances.
If you need any more info than I will provide you those offcourse.
Regards,
Duncan


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40828] - non-working jsp example jsxp svg

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40828





------- Additional Comments From d.kennedy@lvnl.nl  2006-12-22 08:53 -------
Hi,
I have some additional info after a long time of searching for a solution.
I place a call@microsoft to solve the problem, they had only some suggestions 
but it didn't solve it. 
I installed Tomcat 6.0.2beta and tried to run some simple code trying to solve 
the problem using wireshark etc.
The fun is that the code I was using works on 6.0.2 beta but not on 5.5.20
(I can't refresh (with a good result) in 5.5.20 but I do in 6.0.2).
Can you tell me what the difference is between 6.0.2 so I can alter some 
settings etc to 5.5.20.
I can't use 6.0.2 because the system runs production and I will not run beta 
software for production.
The code I used:
************************************************************
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../CSS/graph.css" type="text/css"?>

<%@ page contentType="image/svg-xml" %>
<%@ page import = "java.util.*" %>


<svg width="860" height="600">


<circle id="kreis" cx="100" cy="100" r="40" style="fill: #ffccaa"/>

<a xlink:href="http://www.google.nl" 
     target="_top">
    <text x="30" y="200"><% out.print("(from out.print) = link to google.nl");%>
     </text>
</a>

</svg>
************************************************************
Regards,
Duncan

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 40828] - non-working jsp example jsxp svg

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40828>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40828


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From markt@apache.org  2006-12-29 21:22 -------
This still looks to be a browser/plug-in issue. I do see this issue with IE but
not with Firefox.

There are no obvious changes between 5.5.x and 6.0.x that spring to mind.

Your best bet is to use ieHttpHeaders to look at exactly what is being sent to
the browser.

If there is a difference between 5.5.x and 6.0.x and the 5.5.x version is not
compliance with a relevant specification (Servlet, JSP, HTTP, SVG, etc) then
this bug can be re-opened.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org