0 Replies Latest reply on May 26, 2009 10:30 AM by Gregory Nikle

    Seam app on virtual host, tomcat6

    Gregory Nikle Apprentice

      My app stands on Seam 2.0.1GA/Facelets/jdbc (no jpa/ejb) on Tomcat6.
      So far so good. When I configured virtual host, after login user is not redirected to secure



      All public resources/components works fine. And after redirection to restricted pages there is no error! If I disable my virtual host and switch to default localhost, everthink works fine, so I think this should be my problem and i made some error in conf. of tomcat.

      Please take a look at my conf, and maybe somebody will help

      Server port="8005" shutdown="SHUTDOWN">
        <!--APR library loader. Documentation at /docs/apr.html -->
        <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
        <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
        <Listener className="org.apache.catalina.core.JasperListener" />
        <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
        <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
        <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
          <Resource name="UserDatabase" auth="Container"
                    description="User database that can be updated and saved"
                    pathname="conf/tomcat-users.xml" />
        <Service name="Catalina">
          <Connector port="80" protocol="HTTP/1.1" 
                          maxThreads="50" maxHttpHeaderSize="8192"
                          minSpareThreads="25" maxSpareThreads="50" 
                          emptySessionPath="true" disableUploadTimeout="true"
                          redirectPort="8443" backlog="500" address="" />
          <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
          <Engine name="Catalina" defaultHost="jokes.com">
            <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
           <Host name="jokes.com" debug="0" appBase="/home/sherkan/apps/jokes"
                unpackWARs="true" autoDeploy="true">
                <Context path="" docBase="" debug="0"/>
                <Valve className="org.apache.catalina.valves.AccessLogValve"
                       directory="logs"  prefix="home_access_log." suffix=".txt"
                       pattern="common" resolveHosts="false"/>

      My app is in user folder


      only one error log I get is in homeacceslog.txt - - [26/May/2009:10:22:12 +0200] "GET /pages/main_page.seam?cid=5 HTTP/1.1" 404 1006

      about 404 http error.

      Can anybody help me to set virtual host in my tomcat, or show me right way?