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

    Seam app on virtual host, tomcat6

    sherkan777

      Hi,
      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


      /myApp/pages/*


      page.


      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" />
      
        <GlobalNamingResources>
      
          <Resource name="UserDatabase" auth="Container"
                    type="org.apache.catalina.UserDatabase"
                    description="User database that can be updated and saved"
                    factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                    pathname="conf/tomcat-users.xml" />
        </GlobalNamingResources>
      
        <Service name="Catalina">
      
          <Connector port="80" protocol="HTTP/1.1" 
                          maxThreads="50" maxHttpHeaderSize="8192"
                          maxKeepAliveRequests="20"
                                 debug="0"
                          minSpareThreads="25" maxSpareThreads="50" 
                          emptySessionPath="true" disableUploadTimeout="true"
                          enableLookups="false"
                          connectionTimeout="20000" 
                                  compressableMimeType="text/html,text/xml,text/plain,text/css,text/javascript,application/xhtml+xml,application/x-javascript,application/javascript,text/xhtml"
                              compression="force"
                          redirectPort="8443" backlog="500" address="195.117.59.86" />
      
          <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
      
          <Engine name="Catalina" defaultHost="jokes.com">
            <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                   resourceName="UserDatabase"/>
      
      
           <Host name="jokes.com" debug="0" appBase="/home/sherkan/apps/jokes"
                unpackWARs="true" autoDeploy="true">
                <Alias>jokes.com</Alias>
                <Context path="" docBase="" debug="0"/>
                <Valve className="org.apache.catalina.valves.AccessLogValve"
                       directory="logs"  prefix="home_access_log." suffix=".txt"
                       pattern="common" resolveHosts="false"/>
           </Host>
          </Engine>
        </Service>
      </Server>



      My app is in user folder


      /home/sherkan/apps/jokes



      only one error log I get is in homeacceslog.txt


      192.168.2.63 - - [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?