Your SecurityDomain attribute value is incorrect. It needs to be java:/jaas/RMI+SSL as used in the chapter 8 example. xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx
________________________________
From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Mon 12/29/2003 2:31 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] RMI and SSL in JBoss 3.2.2...
OK, I give up. I'm tired of beating my head against the wall here. I'm sure it;s
something obvious but I'm just not seeing it. I'm trying to secure RMI in JBoss 3.2.2
with SSL and it aint working. Yes, I have read the chap8 sample. I'm trying to adapt
that to secure ALL EJB access over RMI with SSL. To that end, I've made the following
change in jboss/server/default/conf/jboss-service.xml (excerpt below):
<!-- ==================================================================== -->
<!-- Invokers to the JMX node -->
<!-- ==================================================================== -->
<!-- The SSL domain setup -->
<mbean code="org.jboss.security.plugins.JaasSecurityDomain"
name="jboss.security:service=JaasSecurityDomain,domain=RMI+SSL">
<constructor>
<arg type="java.lang.String" value="RMI+SSL"/>
</constructor>
<attribute name="KeyStoreURL">${jboss.server.config.url}/.keystore</attribute>
<attribute name="KeyStorePass">changeit</attribute>
</mbean>
<!-- RMI/JRMP invoker -->
<mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker"
name="jboss:service=invoker,type=jrmp">
<attribute name="RMIObjectPort">4444</attribute>
<attribute name="ServerAddress">${jboss.bind.address}</attribute>
<attribute name="RMIClientSocketFactory">
org.jboss.security.ssl.RMISSLClientSocketFactory
</attribute>
<attribute name="RMIServerSocketFactory">
org.jboss.security.ssl.RMISSLServerSocketFactory
</attribute>
<attribute name="SecurityDomain">RMI+SSL</attribute>
<depends>jboss.security:service=JaasSecurityDomain,domain=RMI+SSL</depends>
</mbean>
I've tried every variation I can think off and I still get this error during startup:
17:16:10,115 DEBUG [JaasSecurityManagerService] Starting
17:16:10,115 DEBUG [JaasSecurityManagerService] securityMgrCtxPath=java:/jaas
17:16:10,125 DEBUG [JaasSecurityManagerService]
cachePolicyCtxPath=java:/timedCacheFactory
17:16:10,125 DEBUG [JaasSecurityManagerService] [EMAIL PROTECTED]
17:16:10,135 INFO [JaasSecurityManagerService] Started
jboss.security:service=JaasSecurityManager
17:16:10,175 INFO [TransactionManagerService] Started
jboss:service=TransactionManager
17:16:10,185 INFO [LocalInvoker] Started jboss:service=invoker,type=local
17:16:10,255 INFO [PooledInvoker] Started jboss:service=invoker,type=pooled
17:16:10,335 INFO [MainDeployer] Adding deployer: [EMAIL PROTECTED]
17:16:10,335 INFO [EJBDeployer] Started jboss.ejb:service=EJBDeployer
17:16:10,335 INFO [RMI+SSL] Starting
17:16:10,335 DEBUG [RMI+SSL] Adding com.sun.net.ssl.internal.ssl.Provider
17:16:11,597 INFO [JaasSecurityManagerService] Added RMI+SSL, [EMAIL PROTECTED] to
map
17:16:11,717 DEBUG [RMI+SSL] CachePolicy set to: [EMAIL PROTECTED]
17:16:11,717 INFO [JaasSecurityManagerService] setCachePolicy, [EMAIL PROTECTED]
17:16:11,717 INFO [RMI+SSL] Started
17:16:11,727 ERROR [JRMPInvoker] Failed to setSecurityDomain=RMI+SSL on socket factory
17:16:11,757 ERROR [JRMPInvoker] Starting failed
java.lang.NullPointerException
at org.jboss.security.ssl.DomainServerSocketFactory.initSSLContext
<<winmail.dat>>
