0 Replies Latest reply on Jul 28, 2007 10:33 AM by Stephan Heffner

    File download dialog (providing source) instead of a page

    Stephan Heffner Newbie

      Sometimes after a restart of the JBoss Server, accessing our Seam based application results in a file download dialog instead of the redirection to the login page. Restarting the server again solved this usually.

      To get a better understanding whats going on, I activated Charles in my Firefox and get the attached session Infos. The redirect happens and the page data will be send, but the last response is this:

      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
      <ui:define name="main">
       <h:form id="login">
       <rich:panel styleClass="loginPanel">
       <f:facet name="header">Login</f:facet>
       <p>Bitte melden Sie Sich an:</p>
      <s:decorate template="/layout/display.xhtml">
      <ui:define name="label">Username</ui:define>
      <h:inputText id="username" value="#{identity.username}"/>
      <s:decorate template="/layout/display.xhtml">
      <ui:define name="label">Passwort</ui:define>
       <h:inputSecret id="password" value="#{identity.password}"/>
      <s:decorate template="/layout/display.xhtml">
      <ui:define name="label"></ui:define>
       <h:selectBooleanCheckbox id="rememberMe" value="#{identity.rememberMe}"/>
       <h:outputLabel for="rememberMe">Auf diesem Computer merken</h:outputLabel>
      <div class="actionButtons">
      <h:commandButton value="Login" action="#{identity.login}"/>

      As you can see, the server sends the source instead of a rendered page.

      Any ideas what's going on?

      Used environment: JBoss AS 4.0.5.GA + EJB 3, Seam 1.2.1.GA, Java 5, openSUSE 10.2 (64bit)
      Browser: Firefox 2 (Linux, Mac & Windows), IE 7 (XP SP 2)