myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Moreira (JIRA)" <>
Subject [jira] Created: (MYFACES-1955) MyFaces 1.2.4 and WebLogic 10.3- strict servlet API: cannot call getWriter() after getOutputStream()
Date Sun, 07 Sep 2008 13:49:44 GMT
MyFaces 1.2.4 and WebLogic 10.3- strict servlet API: cannot call getWriter() after getOutputStream()

                 Key: MYFACES-1955
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.2.4, 1.2.3, 1.2.2
         Environment: Windows Vista, WebLogic 10.3, MyFaces 1.2.4
            Reporter: Paulo Moreira

I am trying to run a very simple JSF application using myFaces 1.2.4 and WebLogic 10.3. The
application has the following content:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns=""
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-name>Faces Servlet</servlet-name>

<?xml version="1.0"?>
<faces-config xmlns=""

      <meta http-equiv="Refresh" content= "0; URL=index.faces"/>
      <title>Start Web Application</title>
      <p>Please wait for the web application to start...</p>

<%@ taglib uri="" prefix="f"%>
<%@ taglib uri="" prefix="h"%>
        <title>A Simple JavaServer Faces Application</title>
                <h3>Please enter your name and password.</h3>
                                <td><h:inputText value="#{}" /></td>
                                <td><h:inputSecret value="#{user.password}" /></td>
                <p><h:commandButton value="Login" action="login" /></p>

My WEB_INF/lib contains the following jars: commons-beanutils-1.7.0, commons-codec-1.3, commons-collections-3.2,
commons-digester-1.8, commons-discovery-0.4, commons-logging-1.1.1, glassfish.el_2.1.0, glassfish.jstl_1.2.0.1,
myfaces-api-1.2.4, myfaces-impl-1.2.4.

Whenever I try to run my application I get the following exception:

java.lang.IllegalStateException: strict servlet API: cannot call getWriter() aft
er getOutputStream()
        at weblogic.servlet.internal.ServletResponseImpl.getWriter(ServletRespon
        at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspV
        at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderRes
        at org.apache.myfaces.lifecycle.LifecycleImpl.render(
        at javax.faces.webapp.FacesServlet.service(

If instead of using myFaces I use the Sun Reference implementation everything goes well. If
I deploy the application (using myFaces) in JBoss 5 it works well. So the problem seems to
be related with the use of WLS 10.3 and myFaces 1.2.4.

I tried with 1.2.3 and 1.2.2 and got the issue with both. I tried with 1.2.0 and got another

javax.faces.FacesException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP
index.jsp:14:22: Static attribute must be a String literal, its illegal to specify an expression.
                                <td><h:inputText value="#{}" /></td>

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

View raw message