Title: SSL with JBoss/Tomcat: JaasSecurityManager is not registered
Thanks!  Makes sense.  I have it working now!  Yeah!
 
For the record, the attribute name is "SecurityManagerService"
in 3.0.0, not "ManagerServiceName".
 
That was easy to figure out from the source code.  Gotta love open source!
 
Tx!
JD
 
-----Original Message-----
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 22, 2002 7:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] SSL with JBoss/Tomcat: JaasSecurityManager is not registered

This is wrong. You need to specify the security manager name as specified in
the jboss-service.xml descriptor in the JaasSecurityDomain setup rather than
changing the JaasSecurityManager . Use this config:
 
  <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
         name="Security:name=JaasSecurityDomain,domain=RMI+SSL">
    <constructor>
      <arg type="java.lang.String" value="RMI+SSL"/>
    </constructor>
    <attribute name="KeyStoreURL">chap8.keystore</attribute>
    <attribute name="KeyStorePass">rmi+ssl</attribute>
    <attribute name="ManagerServiceName">jboss.security:name=JaasSecurityManager</attribute> 
  </mbean>
 
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message -----
Sent: Monday, October 21, 2002 10:57 PM
Subject: Re: [JBoss-user] SSL with JBoss/Tomcat: JaasSecurityManager is not registered

Change the name of the JaasSecurityManagerService in the conf/jboss-service.xml file
from:
 
  <mbean code="org.jboss.security.plugins.JaasSecurityManagerService"
    name="jboss.security:name=JaasSecurityManager">
 
to:
 
  <mbean code="org.jboss.security.plugins.JaasSecurityManagerService"
    name="jboss.security:service=JaasSecurityManager">
 
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message -----
From: JD Brennan
Sent: Monday, October 21, 2002 6:07 PM
Subject: [JBoss-user] SSL with JBoss/Tomcat: JaasSecurityManager is not registered

I'm trying to configure JBoss 3.0.0_tomcat_4.0.3 with SSL.
I followed the instructions in the JBoss Administration and
Development document.

1) Generated chap8.keystore file and copied to
   $JBOSS_HOME/server/default/conf

2) Modified tomcat4-service.xml to add

  <!-- The SSL domain setup -->
  <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
         name="Security:name=JaasSecurityDomain,domain=RMI+SSL">
    <constructor>
      <arg type="java.lang.String" value="RMI+SSL"/>
    </constructor>
    <attribute name="KeyStoreURL">chap8.keystore</attribute>
    <attribute name="KeyStorePass">rmi+ssl</attribute>
  </mbean>

and

            <!-- A HTTPS Connector on port 8443 -->
            <Connector className = "org.apache.catalina.connector.http.HttpConnector"
               port = "8443" scheme="https" secure="true">
              <Factory className="org.jboss.web.catalina.security.SSLServerSocketFactory"
                  securityDomainName="java:/jaas/RMI+SSL" clientAuth="false"
                  protocol="TLS"/>
            </Connector>

This generates this error in the server.log:

17:18:27,711 ERROR [SARDeployer] start operation failed on package file:/opt/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml

javax.management.InstanceNotFoundException: jboss.security:service=JaasSecurityManager is not registered.
        at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:403)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:480)
        at org.jboss.security.plugins.JaasSecurityDomain.start(JaasSecurityDomain.java:116)
...

What mbean code should be registered with
 name=jboss.security:service=JaasSecurityManager
??

Tx!
JD

Reply via email to