You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Subscriber <su...@sepo.dk> on 2007/04/30 14:18:48 UTC

Tomcat - problem when using SSL connector only

Problem: I have a Tomcat server with only one webapp.

When deploying the server with only the SSL connector defined the webapp 
cannot be contacted with the browser (404 in both IE and firefox).



Now: the 1st strange thing is that the webapp has no problems whatsoever 
when the non-ssl connector (8080) is deployed - I can connect at both 
8080 and 8443



2nd strange this is that the tomcat library is one I copied from a 
testsite we have where this setup works without problems i.e. same 
server, same JDK, same webapp, same server.xml (pasted below) file.. 
everything...



I've tried just about everything, hostnames, ports, ssl certificate.. 
everything.



Please help if you know what is wrong here





Ulrich



server.xml:



<Server port="8006" shutdown="SHUTDOWN" debug="0">



  <!-- Global JNDI resources -->

   <GlobalNamingResources>



     <!-- Editable user database that can also be used by

          UserDatabaseRealm to authenticate users -->

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





   <!-- Define the Tomcat Stand-Alone Service -->

   <Service name="Catalina">



     <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080

     <Connector port="8080"

                maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

                enableLookups="false" redirectPort="8443" acceptCount="100"

                debug="0" connectionTimeout="20000"

                disableUploadTimeout="true" />

     Note : To disable connection timeouts, set connectionTimeout value

      to 0 -->



     <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->

     <!-- See explanation for cipher suites here:

 
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html 
-->

     <Connector port="8443"

                maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

                enableLookups="false" disableUploadTimeout="true"

                acceptCount="100" debug="0" scheme="https" secure="true"

                clientAuth="false" sslProtocol="TLS"

                keystoreFile="/keystore/ssl-servercertificate.keystore"/>





     <!-- Define the top level container in our container hierarchy -->

     <Engine name="Catalina" defaultHost="test" debug="0">



             <!-- Because this Realm is here, an instance will be shared 
globally -->



       <!-- This Realm uses the UserDatabase configured in the global JNDI

            resources under the key "UserDatabase".  Any edits

            that are performed against this UserDatabase are immediately

            available for use by the Realm.  -->

       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"

              resourceName="UserDatabase"/>





          <!-- Define the default virtual host

            Note: XML Schema validation will not work with Xerces 2.2.

        -->

       <Host name="test" debug="0" appBase="webapps"

        unpackWARs="false" autoDeploy="true"

        xmlValidation="false" xmlNamespaceAware="false">

                         <Alias>localhost</Alias>



         <Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs" prefix="webserver_access_log."

                         suffix=".txt" pattern="common" 
resolveHosts="false"/>

          <Logger className="org.apache.catalina.logger.FileLogger" 
directory="logs" prefix="webserver_log." suffix=".txt"

                         timestamp="true"/>



       </Host>



     </Engine>



   </Service>



</Server>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org