Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
JSP - A mailing list about Java Server Pages specification and reference
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Tomcat 5.5 problems enabling SSL on Windows service version

Tomcat 5.5 problems enabling SSL on Windows service version

2006-11-15       - By David Uctaa

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

I have Tomcat 5.5 installed as both a Windows service version and as the
standard deployment version (non Windows service - starts up with
startup.bat).  I purchased and installed an SSL certificate from Verisign.
I modified the server.xml to enable the SSL connector.  I have two different
versions of server.xml:  one uses ports 8080 and 8443 for http and https,
the other version uses 80 and 443.  On the Tomcat machine, I tried to
connect to the https: version of my webapps.  I can connect to my webapps on
the standard (non-service) version of Tomcat with either server.xml and
either set of ports, so I know that 80, 443, 8080, and 8443 are all good.
On the service version of Tomcat, the non-SSL (http:) ports 80 and 8080 are
good, but I can not connect to either 443 or 8443 via https.  I've tried
copying the entire \conf folder from the non-service version to the service
version of Tomcat, and still no connection.  The browser simply times out
waiting for the connection.  Nothing is showing up in the log files at all,
so it looks like Tomcat is not seeing these connections at all.

Platform:
Windows Server 2003
Tomcat 5.5.20 (service version) / Tomcat 5.5.16 (non-service version)
jdk1.5.0_08

I'm including my 2 server.xml files, but these can't be the problem, since
both of them work on the non-service version, and neither of them work on
the Windows service version.  Any clues as to where else I should look?

Many thanks,
David

======================================
server.xml (intended for non-service version of Tomcat)

<?xml version="1.0" encoding="UTF-8 (See http://UTF-8.ora-code.com)"?>
<Server port="8105" shutdown="SHUTDOWN">
 <Listener className="org.apache.catalina.core.AprLifecycleListener Source code of org.apache.catalina.core.AprLifecycleListener"/>
 <Listener className="
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener Source code of org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
 <Listener className="
org.apache.catalina.storeconfig.StoreConfigLifecycleListener Source code of org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
 <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener Source code of org.apache.catalina.mbeans.ServerLifecycleListener"/>
 <GlobalNamingResources>
       <Environment name="isProduction" type="java.lang.Boolean Source code of java.lang.Boolean"
value="FALSE"/>
   <Environment name="productionMode" type="java.lang.String Source code of java.lang.String"
value="TEST"/>
   <Resource auth="Container" description="User database that can be
updated and saved" factory="
org.apache.catalina.users.MemoryUserDatabaseFactory Source code of org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase"
pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase Source code of org.apache.catalina.UserDatabase"/>
   <Resource auth="Container" driverClassName="
com.ibm.as400.access.AS400JDBCDriver" maxActive="30" maxIdle="2"
maxWait="5000" name="jdbc/xxxx" password="xxxx" type="javax.sql.DataSource Source code of javax.sql.DataSource"
url="jdbc:as400://abc.def.com" username="xxxx"/>
   <Resource auth="Container" driverClassName="
com.ibm.as400.access.AS400JDBCDriver" maxActive="30" maxIdle="2"
maxWait="5000" name="jdbc/xxx" password="xx" type="javax.sql.DataSource Source code of javax.sql.DataSource"
url="jdbc:as400://ghi.jkl.com" username="xx"/>
   <Resource auth="Container" driverClassName="
com.ibm.as400.access.AS400JDBCDriver" maxActive="30" maxIdle="2"
maxWait="5000" name="jdbc/xxxx" password="xxx" type="javax.sql.DataSource Source code of javax.sql.DataSource"
url="jdbc:as400://mno.pqr.com" username="JPxxxGMR"/>
 </GlobalNamingResources>
 <Service
     name="Catalina">
   <Connector
       port="8080"
       redirectPort="8443"
       minSpareThreads="25"
       connectionTimeout="20000"
       maxThreads="150"
       maxSpareThreads="75"
       maxHttpHeaderSize="8192">
   </Connector>
   <Connector
       port="8009"
       redirectPort="8443"
       protocol="AJP/1.3">
   </Connector>
       <Connector
           port="8443"
           maxHttpHeaderSize="8192"
           maxThreads="150"
           minSpareThreads="25"
           maxSpareThreads="75"
           enableLookups="false"
           disableUploadTimeout="true"
           acceptCount="100"
           scheme="https"
           secure="true"
           clientAuth="false"
           sslProtocol="TLS"
           keystoreFile="C:\Program Files\Java\jdk1.5.0_06\bin\.keystore"
   />
   <Engine
       defaultHost="localhost"
       name="Catalina">
     <Realm className="org.apache.catalina.realm.UserDatabaseRealm Source code of org.apache.catalina.realm.UserDatabaseRealm"/>
     <Host
         appBase="webapps"
         name="localhost"
         autoDeploy="true"
         liveDeploy="true"
         unpackWARs="true">
       <Context path="" reloadable="true">
       </Context>
     </Host>
   </Engine>
 </Service>
</Server>

====================
server.xml (intended for Windows service version)


<?xml version="1.0" encoding="UTF-8 (See http://UTF-8.ora-code.com)"?>
<Server port="8105" shutdown="SHUTDOWN">
 <Listener className="org.apache.catalina.core.AprLifecycleListener Source code of org.apache.catalina.core.AprLifecycleListener"/>
 <Listener className="
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener Source code of org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
 <Listener className="
org.apache.catalina.storeconfig.StoreConfigLifecycleListener Source code of org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
 <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener Source code of org.apache.catalina.mbeans.ServerLifecycleListener"/>
 <GlobalNamingResources>
       <Environment name="isProduction" type="java.lang.Boolean Source code of java.lang.Boolean"
value="FALSE"/>
   <Environment name="productionMode" type="java.lang.String Source code of java.lang.String"
value="TEST"/>
   <Resource auth="Container" description="User database that can be
updated and saved" factory="
org.apache.catalina.users.MemoryUserDatabaseFactory Source code of org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase"
pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase Source code of org.apache.catalina.UserDatabase"/>
   <Resource auth="Container" driverClassName="
com.ibm.as400.access.AS400JDBCDriver" maxActive="30" maxIdle="2"
maxWait="5000" name="jdbc/xxxx" password="xxxx" type="javax.sql.DataSource Source code of javax.sql.DataSource"
url="jdbc:as400://abc.def.com" username="xxxx"/>
   <Resource auth="Container" driverClassName="
com.ibm.as400.access.AS400JDBCDriver" maxActive="30" maxIdle="2"
maxWait="5000" name="jdbc/xxx" password="xx" type="javax.sql.DataSource Source code of javax.sql.DataSource"
url="jdbc:as400://ghi.jkl.com" username="xx"/>
   <Resource auth="Container" driverClassName="
com.ibm.as400.access.AS400JDBCDriver" maxActive="30" maxIdle="2"
maxWait="5000" name="jdbc/xxxx" password="xxx" type="javax.sql.DataSource Source code of javax.sql.DataSource"
url="jdbc:as400://mno.pqr.com" username="JPxxxGMR"/>
 </GlobalNamingResources>
 <Service
     name="Catalina">
   <Connector
       port="80"
       redirectPort="443"
       minSpareThreads="25"
       connectionTimeout="20000"
       maxThreads="150"
       maxSpareThreads="75"
       maxHttpHeaderSize="8192">
   </Connector>
   <Connector
       port="8109"
       redirectPort="443"
       protocol="AJP/1.3">
   </Connector>
       <Connector
           port="443"
           maxHttpHeaderSize="8192"
           maxThreads="150"
           minSpareThreads="25"
           maxSpareThreads="75"
           enableLookups="false"
           disableUploadTimeout="true"
           acceptCount="100"
           scheme="https"
           secure="true"
           clientAuth="false"
           sslProtocol="TLS"
           keystoreFile="C:\Program Files\Java\jdk1.5.0_06\bin\.keystore"
   />
   <Engine
       defaultHost="localhost"
       name="Catalina">
     <Realm className="org.apache.catalina.realm.UserDatabaseRealm Source code of org.apache.catalina.realm.UserDatabaseRealm"/>
     <Host
         appBase="webapps"
         name="localhost"
         autoDeploy="true"
         liveDeploy="true"
         unpackWARs="true">
       <Context path="" reloadable="true">
       </Context>
     </Host>
   </Engine>
 </Service>
</Server>

©2008 junlu.com - Jax Systems, LLC, U.S.A.