Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 21459 invoked from network); 22 Apr 2009 00:24:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Apr 2009 00:24:16 -0000 Received: (qmail 56443 invoked by uid 500); 22 Apr 2009 00:24:16 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 56354 invoked by uid 500); 22 Apr 2009 00:24:15 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 56346 invoked by uid 99); 22 Apr 2009 00:24:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 00:24:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2009 00:24:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7702B234C003 for ; Tue, 21 Apr 2009 17:23:47 -0700 (PDT) Message-ID: <1750574114.1240359827473.JavaMail.jira@brutus> Date: Tue, 21 Apr 2009 17:23:47 -0700 (PDT) From: "Leonardo Uribe (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-1955) MyFaces 1.2.4 and WebLogic 10.3- strict servlet API: cannot call getWriter() after getOutputStream() In-Reply-To: <1209121505.1220795384384.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-1955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12701329#action_12701329 ] Leonardo Uribe commented on MYFACES-1955: ----------------------------------------- Trying to check this issue, the following facts appears: 1. myfaces 1.2 + facelets works without problem. The bug does not appear, so this confirms the fact that this is a weblogic jsp compiler bug. 2. There is a way to make work myfaces 1.2 + jsp on weblogic. I tried add this configuration to WEB-INF/weblogic.xml file: utf-8 The default encoding for jsp files is utf-8, but put this configuration triggers something inside weblogic jsp compiler that makes it work (the version tested was myfaces 1.2.6). The weblogic server version tested was 10.3. It could be good have confirmation if this works for other weblogic server versions. I hope this helps people that wants to use myfaces on weblogic. > MyFaces 1.2.4 and WebLogic 10.3- strict servlet API: cannot call getWriter() after getOutputStream() > ---------------------------------------------------------------------------------------------------- > > Key: MYFACES-1955 > URL: https://issues.apache.org/jira/browse/MYFACES-1955 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 1.2.2, 1.2.3, 1.2.4 > Environment: Windows Vista, WebLogic 10.3, MyFaces 1.2.4 > Reporter: Paulo Moreira > Assignee: Leonardo Uribe > Attachments: MYFACES-1955.patch > > > 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: > web.xml: > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" > version="2.5"> > > Faces Servlet > javax.faces.webapp.FacesServlet > 1 > > > Faces Servlet > *.faces > > > index.html > > > faces-config.xml: > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd" > version="1.2"> > > /index.jsp > > login > /welcome.jsp > > > > user > pt.pm.richfaces.UserBean > session > > > index.html: > > > > Start Web Application > > >

Please wait for the web application to start...

> > > index.jsp: > > <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> > <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> > > > A Simple JavaServer Faces Application > > > >

Please enter your name and password.

> > > > > > > > > >
Name:
Password:
>

>
> >
> > 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 > seImpl.java:308) > at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspV > iewHandlerImpl.java:362) > at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderRes > ponseExecutor.java:41) > at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java: > 140) > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:155) > 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 error: > javax.faces.FacesException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /index.jsp > index.jsp:14:22: Static attribute must be a String literal, its illegal to specify an expression. > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.