3 Replies Latest reply on Apr 6, 2009 12:19 PM by Stuart Douglas

    How to configure seam in production, one question?

    Gregory Nikle Apprentice

      Hi.
      I want to show in production server my app in Seam.


      My app stands on jboss 4.2.1, seam 2.0.1GA,


      App was tested by uri: http://localhost:8080/myApp



      now I want to use it on

      http://www.myApp.com



      What I've done:
      1. changed port on jboss from 8080-80 in connector
      2. added virtual host to



              
      <Host name="myApp"
      autoDeploy="true" deployOnStartup="true" deployXML="false"
      configClass="org.jboss.web.tomcat.security.config.JBossContextConfig"
      >
      <Alias>myApp.com</Alias>
      <Alias>www.myApp.com</Alias>               
      
      <Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
          cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
          transactionManagerObjectName="jboss:service=TransactionManager" />
          <DefaultContext cookies="true" crossContext="true" override="true"/>
      </Host>



      3. In windows system32/drivers/hosts I've changed localhost in 127.0.0.1 to www.myApp.com
      to be this host


      4. I've added jboss-web.xml file in my ear project.


      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-web>
         <virtual-host>myApp.pl</virtual-host>
      </jboss-web>
      



      5. And my application.xml was also changed from



      <module>
          <web>
              <web-uri>myApp.war</web-uri>
              <context-root>/myApp</context-root>
          </web>
      </module>



      to root uri


      <module>
          <web>
              <web-uri>myApp.war</web-uri>
              <context-root>/</context-root>
          </web>
      </module>



      so for me this should work and WORKS, but for address



      http://www.myApp.com/mainpage.seam

      If i go to my page via


      http://www.myApp.com





      my page is directly redirected to old address



      /myApp

      http://www.myApp.com/myApp



      and I see white page...and I don't know how to tell jboss/seam app to not use old address myApp


      Can anybody tell me where should I check, why jboss try to hits /myApp and white page is redirected?


      my index.html file redirect all users to mainpage.seam page on each visit, so this can't be that file.


      Please for help