Oops, I'm not an expert on mbeans, etc. so I'm not wasn't sure what all you needed 
....   Here's what we're using
for the tomcat-service.xml file.
(I've XXXX'd out the private pieces.)   The keystore is located in  the 
jboss/server/default/conf/  directory.
I would seriously recommend upgrading your JBoss/Tomcat bundle to the most recent 
stable versions. Currently this
is JBoss-3.0.4_Tomcat-4.0.6.   DO NOT mix configuration xml files between the JBoss 
versions....they have made
changes/additions throughout the 3.0.x releases.   I have gone down the road and have 
screwed things up so badly
as to cause a fatal error in the JVM itself - complete with a notice to contact Sun.   
You'll mostly likely need
to re-edit files rather than copy them from an older release.   Errors in the log 
files are not very easy to
figure track down and find the true root cause....

Note that the "defaultHost" attribute of the "Engine" tag must match the "name" 
attribute of an enclosed "Host"
tag.  You can have "Alias" tags inside a "Host" tag.  Also, you can use an "Address" 
attribute in the "Connector"
tags to specify an IP address to bind to.


<?xml version="1.0" encoding="UTF-8"?>
<!-- Set catalina.home to the location of the Tomcat-4.x dist.
The default value is that of the JBoss/Catalina bundle where the
jakarta-tomcat-4.0.3-LE-jdk14 is included as jboss_dist/catalina
 -->
<!DOCTYPE server [
  <!ENTITY catalina.home "../catalina">
]>

<!-- The service configuration for the embedded Tomcat4 web container
-->
<server>

  <classpath codebase="file:&catalina.home;/common/lib/" archives="*"/>
  <classpath codebase="file:&catalina.home;/server/lib/" archives="*"/>
  <classpath codebase="file:&catalina.home;/bin/" archives="*"/>
  <classpath codebase="file:&catalina.home;/lib/" archives="*"/>
  <classpath codebase="." archives="tomcat4-service.jar"/>

  <!-- The SSL domain setup -->
  <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
         name="Security:service=JaasSecurityDomain,domain=TomcatSSL">
    <depends>jboss.security:service=JaasSecurityManager</depends>
    <constructor>
      <arg type="java.lang.String" value="TomcatSSL"/>
    </constructor>
    <attribute name="KeyStoreURL">XXXX-ssl.keystore</attribute>
    <attribute name="KeyStorePass">XXXX</attribute>
  </mbean>

  <mbean code="org.jboss.web.catalina.EmbeddedCatalinaServiceSX"
    name="jboss.web:service=EmbeddedCatalinaSX">
    <attribute name="CatalinaHome">&catalina.home;</attribute>

    <!-- Uncomment this if you want interval snapshot for the
         session clustering.
    <attribute name="SnapshotMode">interval</attribute>
    <attribute name="SnapshotInterval">2000</attribute>
    -->
    <attribute name="Config">
      <Server>
         <Service name = "JBoss-Tomcat">
            <Engine name="MainEngine" defaultHost="www.XXXX.com">
               <Logger className = "org.jboss.web.catalina.Log4jLogger"
                  verbosityLevel = "trace" category = 
"org.jboss.web.localhost.Engine"/>
               <Host name="www.XXXX.com">
                  <Valve className = "org.apache.catalina.valves.AccessLogValve"

                     prefix = "localhost_access" suffix = ".log"
                     pattern = "common" directory = "../server/default/log" />
                  <DefaultContext cookies = "true" crossContext = "true" override = 
"true" />
               </Host>
            </Engine>

            <!-- A HTTP Connector on port 80 -->
            <Connector className = "org.apache.catalina.connector.http.HttpConnector"
               port = "80" redirectPort="443" minProcessors = "3" maxProcessors = "10" 
enableLookups = "true"
               acceptCount = "10" debug = "0" connectionTimeout = "60000" />
            <!-- SSL/TLS Connector configuration using the SSL domain keystore -->
            <Connector
                    className="org.apache.catalina.connector.http.HttpConnector"

                    port="443" scheme="https" secure="true">
              <Factory
              className="org.jboss.web.catalina.security.SSLServerSocketFactory"

              securityDomainName="java:/jaas/TomcatSSL" clientAuth="false"
              protocol = "TLS"/>
            </Connector>
         </Service>
      </Server>
    </attribute>
  </mbean>

</server>




Hope this helps.
r,
Lance
www.newparticles.com

<snip-o-rama>


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to