You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Rafael Tavares Carmona (JIRA)" <de...@myfaces.apache.org> on 2010/02/19 15:12:28 UTC

[jira] Created: (MYFACES-2566) HTMLEnconder requiring StringBuilder class from JDK 5

HTMLEnconder requiring StringBuilder class from JDK 5
-----------------------------------------------------

                 Key: MYFACES-2566
                 URL: https://issues.apache.org/jira/browse/MYFACES-2566
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-127
    Affects Versions: 1.1.7
         Environment: Windows XP SP3, JDK 1.4, JBoss 3.2.6, JSF 1.1, myfaces-api-1.1.7.jar, myfaces-impl-1.1.7.jar
            Reporter: Rafael Tavares Carmona


I'm developing a JSF application using MyFaces 1.1.7 under JBoss 3.2.6 and JDK 1.4. Everything was OK (had deployed it several times) untill I tried to used the following code:

<h:outputLink value="secondPage.jsf" target="_blank">
  <h:outputText value="Click here" />
  <f:param name="myParam" value="#{bean.myParam}" />
</h:outputLink>

This is resulting in the following exception:

java.lang.NoClassDefFoundError: java/lang/StringBuilder
	at org.apache.myfaces.shared_impl.renderkit.html.util.HTMLEncoder.encodeURIAtributte(HTMLEncoder.java:355)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl.writeURIAttribute(HtmlResponseWriterImpl.java:393)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.renderOutputLinkStart(HtmlLinkRendererBase.java:461)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:93)



I checked twice the jars and also checked the I'm developing a JSF application using MyFaces 1.1.7 under JBoss 3.2.6 and JDK 1.4. Everything was OK (had deployed it several times) untill I tried to used the following code:

<h:outputLink value="secondPage.jsf" target="_blank">
  <h:outputText value="Click here" />
  <f:param name="myParam" value="#{bean.myParam}" />
</h:outputLink>

This is resulting in the following exception:

java.lang.NoClassDefFoundError: java/lang/StringBuilder
	at org.apache.myfaces.shared_impl.renderkit.html.util.HTMLEncoder.encodeURIAtributte(HTMLEncoder.java:355)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl.writeURIAttribute(HtmlResponseWriterImpl.java:393)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.renderOutputLinkStart(HtmlLinkRendererBase.java:461)
	at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:93)

I downloaded the source code of HTMLEncoder.java from myfaces-impl-1.1.7.jar and confirmed that it's using a StringBuilder object within encodeURIAtributte method.

The question is: isn't myfaces 1.1.7 supposed to be compatible with JDK 1.4?

Thank in advance,
Rafael

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (MYFACES-2566) HTMLEncoder requiring StringBuilder class from JDK 5

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-2566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe resolved MYFACES-2566.
-------------------------------------

         Assignee: Leonardo Uribe
    Fix Version/s: 1.1.8-SNAPSHOT
       Resolution: Fixed

Fixed on revision 888596 and added animal sniffer to check jdk 1.4 compatibility when doing release

> HTMLEncoder requiring StringBuilder class from JDK 5
> ----------------------------------------------------
>
>                 Key: MYFACES-2566
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2566
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-127
>    Affects Versions: 1.1.7
>         Environment: Windows XP SP3, JDK 1.4, JBoss 3.2.6, JSF 1.1, myfaces-api-1.1.7.jar, myfaces-impl-1.1.7.jar
>            Reporter: Rafael Tavares Carmona
>            Assignee: Leonardo Uribe
>             Fix For: 1.1.8-SNAPSHOT
>
>
> I'm developing a JSF application using MyFaces 1.1.7 under JBoss 3.2.6 and JDK 1.4. Everything was OK (had deployed it several times) untill I added the following code to the page:
> <h:outputLink value="secondPage.jsf" target="_blank">
>     <h:outputText value="Click here" />
>     <f:param name="myParam" value="#{bean.myParam}" />
> </h:outputLink>
> This is resulting in the following exception:
> java.lang.NoClassDefFoundError: java/lang/StringBuilder
>     at org.apache.myfaces.shared_impl.renderkit.html.util.HTMLEncoder.encodeURIAtributte(HTMLEncoder.java:355)
>     at org.apache.myfaces.shared_impl.renderkit.html.HtmlResponseWriterImpl.writeURIAttribute(HtmlResponseWriterImpl.java:393)
>     at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.renderOutputLinkStart(HtmlLinkRendererBase.java:461)
>     at org.apache.myfaces.shared_impl.renderkit.html.HtmlLinkRendererBase.encodeBegin(HtmlLinkRendererBase.java:93)
> I downloaded the source code of HTMLEncoder.java from myfaces-impl-1.1.7.jar and confirmed that it's using a StringBuilder object within encodeURIAtributte method.
> The question is: isn't myfaces 1.1.7 supposed to be compatible with JDK 1.4?
> Thank in advance,
> Rafael

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.