1 Reply Latest reply on Sep 11, 2012 4:31 PM by bsgcic

    Why would seam processing not work through residential gateway but work fine inside lan?

    bsgcic Newbie

      Everything works fine when accessed from inside the lan. But, if I connect through my verizon cell phone mobile hotspot and connect via the wan gateway, it seam session management and processing does not work.

       

      Anyone have any ideas on this? I am really stumped by this.

       

      I run the web server from a Residential Charter Internet connection.

       

      Thank you. Other details below:

       

       

      I am getting the following error:

       

      2012-08-23 14:10:57,563 SEVERE [javax.enterprise.resource.webcontainer.jsf.lifecycle] (ajp-localhost%2F127.0.0.1-8009-10) JSF1054: (Phase ID: RESTORE_VIEW 1,

      View ID: ) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@64e84fb3]

      2012-08-23 14:10:57,660 ERROR [org.jboss.seam.exception.Exceptions] (ajp-localhost%2F127.0.0.1-8009-10) handled and logged exception

      javax.servlet.ServletException: viewId:/contact.seam - View /contact.seam could not be restored.

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)

              at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:86)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)

              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)

              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)

              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)

              at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

              at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)

              at org.apache.catalina.core.StandardContextValve.__invoke(StandardContextValve.java:191)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java)

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)

              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

              at org.apache.catalina.core.StandardHostValve.__invoke(StandardHostValve.java:127)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)

              at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)

              at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

              at java.lang.Thread.run(Thread.java:662)

      Caused by: javax.faces.application.ViewExpiredException: viewId:/contact.seam - View /contact.seam could not be restored.

              at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:185)

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

              at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103)

              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)

              ... 43 more

      2012-08-23 14:10:58,198 INFO  [javax.enterprise.resource.webcontainer.jsf.lifecycle] (ajp-localhost%2F127.0.0.1-8009-6) WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.

      sourceId=null[severity=(WARN 1), summary=(Session expired, please log in again), detail=(Session expired, please log in again)]

      This only happens when clicking submit on contact.seam from the internet (i.e., http://mysite.com/contact.seam), but works fine from inside the lan (either localhost or from another computer on the network. I would greatly appreciate thoughts, guesses, insight, or other help on this.

       

      I have a contact page with a submit and cancel button.

                              <h:commandButton id="contactFormSubmissionCommandButton"

                                      value="Submit"

                                      action="#{contactFormSubmission.register}"

                              />

       

       

                              <a4j:commandButton

                                  value="Cancel"

                                  action="#{contactFormSubmission.cancel}"

                                  bypassUpdates="true"

                              />

       

       

       

      The same error happens when the above Cancel commandButton code is commented out.

       

      By the way (in case relevant), in apache2/sites-available/mysite.com, I have

      ProxyPass                       /com-mysite/                   ajp://localhost:8009/com-mysite/

      <Location /com-mysite/>

              ProxyPassReverse /

      </Location>

       

       

      ProxyPass                  /                       ajp://localhost:8009/com-mysite/

      <Location />

              ProxyPassReverse /

      </Location>

       

       

      Any ideas on why the strange behavior is happening?

       

      I would really appreciate some help on this.

       

      Thank you