myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonardo Uribe <lu4...@gmail.com>
Subject Re: GAE problem
Date Mon, 13 Dec 2010 21:53:01 GMT
Hi

First try to set org.apache.myfaces.SECRET and org.apache.myfaces.MAC_SECRET
into your web.xml as described on:

http://wiki.apache.org/myfaces/Secure_Your_Application

regards,

Leonardo Uribe

2010/12/13 Nikolay Rychkov <nikolay.rychkov@gmail.com>

> I have this error during local run. I didn't try to deploy it. All my beans
> are menaged beans
>
> package ru.agost.jsf.graphml;
>
> import javax.faces.bean.ManagedBean;
> import javax.faces.bean.RequestScoped;
> import java.io.Serializable;
>
> /**
>  * Date: 06.08.2010
>  * Time: 2:55:36
>  * <p/>
>  *
>  * @author Николай Рычков
>  */
> @ManagedBean
> @RequestScoped
> public class GraphmlInputBean implements Serializable{
>    private static final long serialVersionUID = 5817856927436316046L;
>
>    String key;
>
>    String fileName;
>
>    String body;
>
>
>
>    public GraphmlInputBean() {
>    }
>
>    public String getKey() {
>        return key;
>    }
>
>    public void setKey(String key) {
>        this.key = key;
>    }
>
>    public String getFileName() {
>        return fileName;
>    }
>
>    public void setFileName(String fileName) {
>        this.fileName = fileName;
>    }
>
>    public String getBody() {
>        return body;
>    }
>
>    public void setBody(String body) {
>        this.body = body;
>    }
> }
>
> 2010/12/14 Werner Punz <werner.punz@gmail.com>
>
> > Ok thanks a lot I will look into it tomorrow, just one last question, do
> > you get the error only if you deploy or do you get it in the local
> testing
> > scenario as well, and are your beans you reference normal managed beans?
> >
> > Werner
> >
> >
> > Am 13.12.10 22:03, schrieb Nikolay Rychkov:
> >
> >  <?xml version="1.0" encoding="UTF-8"?>
> >> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> >> http://www.w3.org/2001/XMLSchema-instance"
> >>          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/maven-v4_0_0.xsd">
> >>     <modelVersion>4.0.0</modelVersion>
> >>
> >>     <!-- The Basics -->
> >>     <groupId>ru.agost</groupId>
> >>     <artifactId>agost</artifactId>
> >>     <version>1.0</version>
> >>     <packaging>war</packaging>
> >>
> >>     <name>Agost</name>
> >>     <description>Agost description</description>
> >>
> >>     <repositories>
> >>         <repository>
> >>             <id>java.net</id>
> >>             <name>GlassFish Maven Repository</name>
> >>             <url>http://download.java.net/maven/glassfish</url>
> >>         </repository>
> >>         <repository>
> >>             <id>objectify-appengine</id>
> >>             <url>http://objectify-appengine.googlecode.com/svn/maven
> >> </url>
> >>         </repository>
> >>         <repository>
> >>             <id>repo1.maven.org</id>
> >>             <name>Java.net Repository for Maven</name>
> >>             <url>http://repo1.maven.org/maven2/</url>
> >>
> >>         </repository>
> >>         <repository>
> >>             <id>google-maven-repo</id>
> >>             <name>Google Maven Repository</name>
> >>             <url>
> >> http://google-maven-repository.googlecode.com/svn/repository/</url>
> >>         </repository>
> >>         <repository>
> >>             <id>maven-gae-plugin-repo1</id>
> >>             <name>Maven Google App Engine Repository</name>
> >>             <url>http://maven-gae-plugin.googlecode.com/svn/repository/
> >> </url>
> >>         </repository>
> >>
> >>         <repository>
> >>             <id>objectweb</id>
> >>             <name>Objectweb repository</name>
> >>             <url>http://maven.objectweb.org/maven2</url>
> >>         </repository>
> >>         <repository>
> >>             <id>jboss</id>
> >>             <name>JBoss Maven2 repository</name>
> >>             <url>http://repository.jboss.com/maven2/</url>
> >>             <snapshots>
> >>                 <enabled>false</enabled>
> >>             </snapshots>
> >>             <releases>
> >>                 <enabled>true</enabled>
> >>             </releases>
> >>         </repository>
> >>         <repository>
> >>             <id>glassfish</id>
> >>             <name>Glassfish repository</name>
> >>             <url>http://download.java.net/maven/1</url>
> >>             <layout>legacy</layout>
> >>             <releases>
> >>                 <enabled>true</enabled>
> >>             </releases>
> >>             <snapshots>
> >>                 <enabled>false</enabled>
> >>             </snapshots>
> >>         </repository>
> >>         <repository>
> >>             <id>apache.snapshots</id>
> >>             <name>Apache Snapshot Repository</name>
> >>             <url>
> >>                 http://people.apache.org/repo/m2-snapshot-repository
> >>             </url>
> >>             <releases>
> >>                 <enabled>false</enabled>
> >>             </releases>
> >>             <snapshots>
> >>                 <enabled>true</enabled>
> >>             </snapshots>
> >>         </repository>
> >>         <repository>
> >>             <id>ops4j.repository</id>
> >>             <name>OPS4J Repository</name>
> >>             <url>http://repository.ops4j.org/maven2</url>
> >>             <releases>
> >>                 <enabled>true</enabled>
> >>             </releases>
> >>             <snapshots>
> >>                 <enabled>false</enabled>
> >>             </snapshots>
> >>         </repository>
> >>         <repository>
> >>             <id>Codehaus Snapshots</id>
> >>             <url>http://snapshots.repository.codehaus.org/</url>
> >>             <snapshots>
> >>                 <enabled>true</enabled>
> >>             </snapshots>
> >>             <releases>
> >>                 <enabled>false</enabled>
> >>             </releases>
> >>         </repository>
> >>
> >>         <repository>
> >>             <id>prime-repo</id>
> >>             <name>Prime Technology Maven Repository</name>
> >>             <url>http://repository.prime.com.tr</url>
> >>             <layout>default</layout>
> >>         </repository>
> >>         <repository>
> >>             <id>google-maven-repo</id>
> >>             <name>Google Maven Repository</name>
> >>             <url>
> >> http://google-maven-repository.googlecode.com/svn/repository/</url>
> >>         </repository>
> >>         <!--<repository>-->
> >>             <!--<id>mojarra-repo</id>-->
> >>             <!--<name>Mojarra Repository</name>-->
> >>             <!--<url>http://download.java.net/maven/2/</url>-->
> >>         <!--</repository>-->
> >>
> >>
> >>         <repository>
> >>             <id>fest</id>
> >>             <url>http://repository.codehaus.org/org/easytesting/</url>
> >>         </repository>
> >>
> >>     </repositories>
> >>
> >>     <pluginRepositories>
> >>         <pluginRepository>
> >>             <id>maven-gae-plugin-repo</id>
> >>             <name>Maven Google App Engine Repository</name>
> >>             <url>http://maven-gae-plugin.googlecode.com/svn/repository/
> >> </url>
> >>         </pluginRepository>
> >>     </pluginRepositories>
> >>
> >>     <dependencies>
> >>         <dependency>
> >>             <groupId>javax.persistence</groupId>
> >>             <artifactId>persistence-api</artifactId>
> >>             <version>1.0</version>
> >>         </dependency>
> >>         <dependency>
> >>             <groupId>com.google.appengine</groupId>
> >>             <artifactId>appengine-api-1.0-sdk</artifactId>
> >>             <version>${gae.version}</version>
> >>         </dependency>
> >>
> >>         <!--
> >>               J2EE Servlet API. We need it to compile IndexServlet
> class.
> >> You can
> >>               probably remove it, if you don't explicitly use Servlets
> >>           -->
> >>         <dependency>
> >>             <groupId>org.apache.geronimo.specs</groupId>
> >>             <artifactId>geronimo-servlet_2.5_spec</artifactId>
> >>             <version>1.2</version>
> >>             <scope>provided</scope>
> >>         </dependency>
> >>
> >>         <!--
> >>               Make use of JSP tags. Remove, if you don't use JSPs
> >>           -->
> >>         <dependency>
> >>             <artifactId>standard</artifactId>
> >>             <groupId>taglibs</groupId>
> >>             <version>1.1.2</version>
> >>             <type>jar</type>
> >>             <scope>runtime</scope>
> >>         </dependency>
> >>
> >>          <!--These dependencies are here just for enabling logging -->
> >>         <dependency>
> >>         <groupId>org.slf4j</groupId>
> >>         <artifactId>slf4j-api</artifactId>
> >>         <version>1.6.1</version>
> >>         </dependency>
> >>         <!--<dependency>-->
> >>             <!--<groupId>org.slf4j</groupId>-->
> >>             <!--<artifactId>slf4j-log4j12</artifactId>-->
> >>             <!--<version>1.6.1</version>-->
> >>             <!--&lt;!&ndash;<scope>test</scope>&ndash;&gt;-->
> >>         <!--</dependency>-->
> >>         <!--<dependency>-->
> >>             <!--<groupId>log4j</groupId>-->
> >>             <!--<artifactId>log4j</artifactId>-->
> >>             <!--<version>1.2.16</version>-->
> >>
> >>         <!--</dependency>-->
> >>         <dependency>
> >>         <groupId>ch.qos.logback</groupId>
> >>         <artifactId>logback-classic</artifactId>
> >>         <version>0.9.22</version>
> >>         </dependency>
> >>
> >>         <!-- Test scope -->
> >>         <dependency>
> >>             <groupId>junit</groupId>
> >>             <artifactId>junit</artifactId>
> >>             <version>4.8.1</version>
> >>             <scope>test</scope>
> >>         </dependency>
> >>
> >>         <dependency>
> >>             <groupId>org.easytesting</groupId>
> >>             <artifactId>fest-assert</artifactId>
> >>             <version>1.3</version>
> >>             <scope>test</scope>
> >>         </dependency>
> >>
> >>         <!--
> >>               GAE libraries for local testing as described here:
> >>
> >> http://code.google.com/appengine/docs/java/howto/unittesting.html
> >>           -->
> >>         <dependency>
> >>             <groupId>com.google.appengine</groupId>
> >>             <artifactId>appengine-api-labs</artifactId>
> >>             <version>${gae.version}</version>
> >>             <scope>test</scope>
> >>         </dependency>
> >>
> >>         <dependency>
> >>             <groupId>com.google.appengine</groupId>
> >>             <artifactId>appengine-api-stubs</artifactId>
> >>             <version>${gae.version}</version>
> >>             <scope>test</scope>
> >>         </dependency>
> >>
> >>         <dependency>
> >>             <groupId>com.google.appengine</groupId>
> >>             <artifactId>appengine-testing</artifactId>
> >>             <version>${gae.version}</version>
> >>             <scope>test</scope>
> >>         </dependency>
> >>
> >>
> >>         <!--<dependency>
> >>             <groupId>com.sun.faces</groupId>
> >>             <artifactId>jsf-impl</artifactId>
> >>             <version>2.0.3</version>
> >>         </dependency>-->
> >>         <!--<dependency>-->
> >>         <!--<groupId>com.sun.faces</groupId>-->
> >>         <!--<artifactId>jsf-impl</artifactId>-->
> >>         <!--<version>2.0.3</version>-->
> >>         <!--&lt;!&ndash;<classifier>gae</classifier>&ndash;&gt;-->
> >>         <!--</dependency>-->
> >>         <!--<dependency>-->
> >>         <!--<groupId>com.sun.faces</groupId>-->
> >>         <!--<artifactId>jsf-api</artifactId>-->
> >>         <!--<version>2.0.3</version>-->
> >>         <!--</dependency>-->
> >>
> >>         <!--My faces-->
> >>         <dependency>
> >>             <groupId>org.apache.myfaces.core</groupId>
> >>             <artifactId>myfaces-api</artifactId>
> >>             <version>2.0.2</version>
> >>         </dependency>
> >>         <!--My faces-->
> >>         <dependency>
> >>             <groupId>org.apache.myfaces.core</groupId>
> >>             <artifactId>myfaces-impl</artifactId>
> >>             <version>2.0.2</version>
> >>         </dependency>
> >>
> >>
> >>         <dependency>
> >>             <groupId>javax.el</groupId>
> >>             <artifactId>el-api</artifactId>
> >>             <version>1.1</version>
> >>         </dependency>
> >>
> >>         <dependency>
> >>             <groupId>org.glassfish.web</groupId>
> >>             <artifactId>el-impl</artifactId>
> >>             <version>1.1</version>
> >>         </dependency>
> >>
> >>
> >>         <!--
> >>               jars required for GAE and JSF2
> >>           -->
> >>
> >>         <!--<dependency>-->
> >>             <!--<groupId>xalan</groupId>-->
> >>             <!--<artifactId>serializer</artifactId>-->
> >>             <!--<version>2.7.1</version>-->
> >>         <!--</dependency>-->
> >>
> >>         <!--<dependency>-->
> >>             <!--<groupId>xalan</groupId>-->
> >>             <!--<artifactId>xalan</artifactId>-->
> >>             <!--<version>2.7.1</version>-->
> >>         <!--</dependency>-->
> >>
> >>         <!--<dependency>-->
> >>             <!--<groupId>xerces</groupId>-->
> >>             <!--<artifactId>xercesImpl</artifactId>-->
> >>             <!--<version>2.9.0</version>-->
> >>         <!--</dependency>-->
> >>
> >>         <!--<dependency>-->
> >>             <!--<groupId>xml-apis</groupId>-->
> >>             <!--<artifactId>xml-apis</artifactId>-->
> >>             <!--<version>1.3.04</version>-->
> >>         <!--</dependency>-->
> >>
> >>         <dependency>
> >>             <groupId>org.primefaces</groupId>
> >>             <artifactId>primefaces</artifactId>
> >>             <version>2.2.RC1-SNAPSHOT</version>
> >>         </dependency>
> >>
> >>         <!--vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv-->
> >>         <dependency>
> >>             <groupId>com.googlecode.objectify</groupId>
> >>             <artifactId>objectify</artifactId>
> >>             <version>2.2.1</version>
> >>         </dependency>
> >>         <!--^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-->
> >>         <!--vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv-->
> >>         <dependency>
> >>             <groupId>com.google.guava</groupId>
> >>             <artifactId>guava</artifactId>
> >>             <version>r06</version>
> >>         </dependency>
> >>         <!--^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-->
> >>         <dependency>
> >>             <groupId>jdom</groupId>
> >>             <artifactId>jdom</artifactId>
> >>             <version>1.1</version>
> >>         </dependency>
> >>
> >>     </dependencies>
> >>
> >>     <build>
> >>         <plugins>
> >>             <plugin>
> >>                 <groupId>org.apache.maven.plugins</groupId>
> >>                 <artifactId>maven-war-plugin</artifactId>
> >>                 <version>2.1-beta-1</version>
> >>                 <configuration>
> >>                     <webResources>
> >>                         <resource>
> >>                             <directory>src/main/webapp</directory>
> >>                             <filtering>true</filtering>
> >>                             <includes>
> >>                                 <include>**/appengine-web.xml</include>
> >>                             </includes>
> >>                         </resource>
> >>                     </webResources>
> >>                 </configuration>
> >>             </plugin>
> >>
> >>             <!--
> >>                    The actual maven-gae-plugin. Type "mvn gae:run" to
> run
> >> project, "mvn
> >>                    gae:deploy" to upload to GAE.
> >>                -->
> >>             <plugin>
> >>                 <groupId>net.kindleit</groupId>
> >>                 <artifactId>maven-gae-plugin</artifactId>
> >>                 <version>0.7.3</version>
> >>
> >>                 <configuration>
> >>
> >>
> >>  <sdkDir>d:\newproject\libs\appengine-java-sdk-1.3.7\</sdkDir>
> >>                 </configuration>
> >>                 <dependencies>
> >>                     <dependency>
> >>                         <groupId>net.kindleit</groupId>
> >>                         <artifactId>gae-runtime</artifactId>
> >>                         <version>${gae.version}</version>
> >>                         <type>pom</type>
> >>                     </dependency>
> >>                 </dependencies>
> >>             </plugin>
> >>
> >>             <!--
> >>                    Upload application to the appspot automatically,
> during
> >>                    release:perform
> >>                -->
> >>             <plugin>
> >>                 <artifactId>maven-release-plugin</artifactId>
> >>                 <configuration>
> >>                     <goals>gae:deploy</goals>
> >>                 </configuration>
> >>             </plugin>
> >>
> >>             <!-- Java compiler version -->
> >>             <plugin>
> >>                 <groupId>org.apache.maven.plugins</groupId>
> >>                 <artifactId>maven-compiler-plugin</artifactId>
> >>                 <version>2.0</version>
> >>                 <configuration>
> >>                     <encoding>UTF-8</encoding>
> >>                     <source>1.6</source>
> >>                     <target>1.6</target>
> >>                 </configuration>
> >>             </plugin>
> >>             <!--<plugin>
> >>                 <groupId>org.apache.maven.plugins</groupId>
> >>                 <artifactId>maven-surefire-plugin</artifactId>
> >>                 <version>2.5</version>
> >>                 <configuration>
> >>                     <parallel>classes</parallel>
> >>                     &lt;!&ndash;<threadCount>3</threadCount>&ndash;&gt;
> >>                 </configuration>
> >>             </plugin>-->
> >>         </plugins>
> >>
> >>     </build>
> >>
> >>     <!-- Specify hard-coded project properties here -->
> >>     <properties>
> >>         <!--
> >>               This is just for "eclipse:eclipse" goal to always attempt
> >> downloading
> >>               sources
> >>           -->
> >>         <downloadSources>true</downloadSources>
> >>
> >>         <!--
> >>               Specify AppEngine version for your project. It should
> match
> >> SDK
> >>               version pointed to by ${gae.home} property (Typically, one
> >> used by
> >>               your Eclipse plug-in)
> >>           -->
> >>         <gae.version>1.3.7</gae.version>
> >>
> >>         <!--
> >>               Upload to http://test.latest
> .<applicationName>.appspot.comby
> >> default
> >>           -->
> >>         <gae.application.version>test</gae.application.version>
> >>     </properties>
> >>
> >>     <profiles>
> >>         <!--
> >>               We can configure our integration server to activate this
> >> profile and
> >>               perform gae:deploy, thus uploading latest snapshot to the
> >>               http://1.latest.<applicationName>.appspot.comautomatically
> >>           -->
> >>         <profile>
> >>             <id>integration-build</id>
> >>             <properties>
> >>                 <gae.application.version>stage</gae.application.version>
> >>             </properties>
> >>         </profile>
> >>
> >>         <!--
> >>               This profile will activate automatically during release
> and
> >> upload
> >>               application to the http://2.latest.<applicationName>.
> >> appspot.com (We
> >>               might want to set the 2nd version as our applications
> >> Default
> >> version
> >>               to be accessible at http://<applicationName>.appspot.com)
> >>           -->
> >>         <profile>
> >>             <id>release-build</id>
> >>             <activation>
> >>                 <property>
> >>                     <name>performRelease</name>
> >>                     <value>true</value>
> >>                 </property>
> >>             </activation>
> >>
> >>             <properties>
> >>                 <!--
> >>                         During release, set application version in
> >> appengine-web.xml to 2
> >>                     -->
> >>
> <gae.application.version>release</gae.application.version>
> >>             </properties>
> >>         </profile>
> >>     </profiles>
> >>
> >> </project>
> >>
> >> 2010/12/13 Werner Punz<werner.punz@gmail.com>
> >>
> >>  Mhh can you make a small snapshot of the program, just one page and the
> >>> configuration you use, so that I can look more deeply into the problem
> >>> tomorrow?
> >>>
> >>>
> >>> Werner
> >>>
> >>>
> >>> Am 13.12.10 21:57, schrieb Nikolay Rychkov:
> >>>
> >>>  I removed
> >>>
> >>>> <context-param>
> >>>>             <param-name>org.apache.myfaces.SECRET</param-name>
> >>>>             <param-value>xxx</param-value>
> >>>>         </context-param>
> >>>>
> >>>> but problem still exists
> >>>>
> >>>> I use MyFaces 2.0.2
> >>>>
> >>>>
> >>>> 2010/12/13 Werner Punz<werner.punz@gmail.com>
> >>>>
> >>>>  Ok outside of the crypto stuff I do not see any problem.
> >>>>
> >>>>> Try to remove the encryption alltogether for a quick testing and see
> if
> >>>>> it
> >>>>> resolves your problem (also turn it off).
> >>>>> The problem also could be primefaces related.
> >>>>> With the exact crypto config i also had problems (I think the
> >>>>> documentation
> >>>>> is not entirely correct on our page there, I noticed that after a
> while
> >>>>> I
> >>>>> got viewexpiredexceptions with that one)
> >>>>>
> >>>>> What myfaces version do you use. I did my testing on 2.0.2 but my
> >>>>> testcase
> >>>>> was rather basic:
> >>>>>
> >>>>> http://2.testinck4040.appspot.com/welcome.jsf
> >>>>>
> >>>>>
> >>>>> Werner
> >>>>>
> >>>>>
> >>>>>
> >>>>> Am 13.12.10 20:28, schrieb Nikolay Rychkov:
> >>>>>
> >>>>>  <?xml version="1.0" encoding="utf-8"?>
> >>>>>
> >>>>>  <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
> >>>>>>          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">
> >>>>>>     <display-name>
> >>>>>>         Sight www.agost.ru
> >>>>>>     </display-name>
> >>>>>>     <description>
> >>>>>>         I really need www.agost.ru
> >>>>>>     </description>
> >>>>>>
> >>>>>>     <context-param>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
>  <param-name>org.apache.myfaces.config.annotation.LifecycleProvider</param-name>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
>  <param-value>org.apache.myfaces.config.annotation.NoInjectionAnnotationLifecycleProvider</param-value>
> >>>>>>     </context-param>
> >>>>>>    <!--
> >>>>>>             Need to set a secret to avoid
> >>>>>> javax.crypto.BadPaddingException.
> >>>>>>             "param-value" must be Base64 encoded.
> >>>>>>             More details:
> >>>>>> http://wiki.apache.org/myfaces/Secure_Your_Application
> >>>>>>          -->
> >>>>>>         <context-param>
> >>>>>>             <param-name>org.apache.myfaces.SECRET</param-name>
> >>>>>>             <param-value>xxxxx</param-value>
> >>>>>>         </context-param>
> >>>>>>
> >>>>>>     <!-- ***** GAE 1.3.0 appears to handle server-side state saving.
> >>>>>> *****
> >>>>>>  -->
> >>>>>>     <!--<context-param>-->
> >>>>>>
> >>>>>> <!--<param-name>javax.faces.STATE_SAVING_METHOD</param-name>-->
> >>>>>>         <!--<param-value>server</param-value>-->
> >>>>>>     <!--</context-param>-->
> >>>>>>     <context-param>
> >>>>>>         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
> >>>>>>         <param-value>.xhtml</param-value>
> >>>>>>     </context-param>
> >>>>>>
> >>>>>>     <servlet-mapping>
> >>>>>>         <servlet-name>Faces Servlet</servlet-name>
> >>>>>>         <url-pattern>*.do</url-pattern>
> >>>>>>     </servlet-mapping>
> >>>>>>     <!-- Faces Servlet -->
> >>>>>>     <servlet>
> >>>>>>         <servlet-name>Faces Servlet</servlet-name>
> >>>>>>
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> >>>>>>     </servlet>
> >>>>>>     <session-config>
> >>>>>>         <session-timeout>10</session-timeout>
> >>>>>>     </session-config>
> >>>>>>     <welcome-file-list>
> >>>>>>         <welcome-file>index.do</welcome-file>
> >>>>>>         <!--<welcome-file>index.jsp</welcome-file>-->
> >>>>>>         <!--<welcome-file>index.xhtml</welcome-file>-->
> >>>>>>         <!--<welcome-file>index.html</welcome-file>-->
> >>>>>>     </welcome-file-list>
> >>>>>>         <context-param>
> >>>>>>     <param-name>javax.faces.PROJECT_STAGE</param-name>
> >>>>>>     <param-value>Production</param-value>
> >>>>>>     </context-param>
> >>>>>>     <context-param>
> >>>>>>         <param-name>primefaces.skin</param-name>
> >>>>>>         <param-value>none</param-value>
> >>>>>>     </context-param>
> >>>>>>     <error-page>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
>  <exception-type>javax.faces.application.ViewExpiredException</exception-type>
> >>>>>>         <location>/sessionerror.xhtml</location>
> >>>>>>     </error-page>
> >>>>>>
> >>>>>>     <!--<context-param>-->
> >>>>>>
> <!--<param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name>-->
> >>>>>>     <!--<param-value>true</param-value>-->
> >>>>>>     <!--</context-param>-->
> >>>>>>     <!--<context-param>-->
> >>>>>>     <!--<param-name>com.sun.faces.allowTextChildren</param-name>-->
> >>>>>>     <!--<param-value>true</param-value>-->
> >>>>>>     <!--</context-param>-->
> >>>>>>     <!--<servlet>-->
> >>>>>>     <!--<servlet-name>Resource Servlet</servlet-name>-->
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
>  <!--<servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>-->
> >>>>>>     <!--</servlet>-->
> >>>>>>     <!--<servlet-mapping>-->
> >>>>>>     <!--<servlet-name>Resource Servlet</servlet-name>-->
> >>>>>>     <!--<url-pattern>/primefaces_resource/*</url-pattern>-->
> >>>>>>     <!--</servlet-mapping>-->
> >>>>>> </web-app>
> >>>>>>
> >>>>>> 2010/12/13 Werner Punz<werner.punz@gmail.com>
> >>>>>>
> >>>>>>  Hi can you show me your web.xml,
> >>>>>>
> >>>>>>  I have done some extensive jsf testing on the weekend with gae and
> >>>>>>> did
> >>>>>>> not
> >>>>>>> have this error.
> >>>>>>>
> >>>>>>>
> >>>>>>> Werner
> >>>>>>>
> >>>>>>> Am 13.12.10 18:45, schrieb Nikolay Rychkov:
> >>>>>>>
> >>>>>>>  I have this error in every page on GAE:
> >>>>>>>
> >>>>>>>  What is it?
> >>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> java.lang.IllegalStateException: STREAM
> >>>>>>>> at org.mortbay.jetty.Response.getWriter(Response.java:616)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> javax.servlet.ServletResponseWrapper.getWriter(ServletResponseWrapper.java:115)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.getResponseOutputWriter(ServletExternalContextImpl.java:184)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.apache.myfaces.shared_impl.view.JspViewDeclarationLanguageBase.renderView(JspViewDeclarationLanguageBase.java:154)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:263)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:85)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239)
> >>>>>>>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
> >>>>>>>> at
> org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
> >>>>>>>> at
> org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:80)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:247)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120)
> >>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
> >>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> >>>>>>>> at org.mortbay.jetty.Server.handle(Server.java:326)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
> >>>>>>>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
> >>>>>>>> at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> >>>>>>>> at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> >>>>>>>> at
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>
> >>>
> >>
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message