Hi I'an having a problem while deploying stateless session EJBs to work with SSL in a JBoss 4.0.2.
I follow the instructions from the jboss guide but still doesn't work
It keeps throwing the following errors.
Does anyone know what could by the problem?
Thanks
                Patricio




2006-07-17 20:30:57,390 DEBUG [org.jboss.ejb.StatelessSessionContainer] Begin java:comp/env for EJB: Prueba
2006-07-17 20:30:57,390 DEBUG [org.jboss.ejb.StatelessSessionContainer] TCL: org.jboss.util.loading.DelegatingClassLoader@1e4bece
2006-07-17 20:30:57,390 DEBUG [org.jboss.ejb.StatelessSessionContainer] Unable to retrieve orbjavax.management.InstanceNotFoundException: jboss:service=CorbaORB is not registered.
2006-07-17 20:30:57,406 DEBUG [org.jboss.ejb.StatelessSessionContainer ] End java:comp/env for EJB: Prueba
2006-07-17 20:30:57,406 DEBUG [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] Bound EJBLocalHome of Prueba to local/Prueba@13959061
2006-07-17 20:30:57,406 ERROR [org.jboss.ejb.StatelessSessionContainer ] Starting failed jboss.j2ee:jndiName=Prueba,service=EJB
java.lang.RuntimeException: invoker is null: jboss:service=invoker,socketType=SSL,type=jrmp
    at org.jboss.proxy.ejb.ProxyFactory.setupInvokers(ProxyFactory.java :244)
    at org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:228)



2006-07-17 20:30:57,812 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:jndiName=Prueba,service=EJB
  State: FAILED
  Reason: java.lang.RuntimeException: invoker is null: jboss:service=invoker,socketType=SSL,type=jrmp

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.j2ee:jndiName=Prueba,service=EJB
  State: FAILED
  Reason: java.lang.RuntimeException: invoker is null: jboss:service=invoker,socketType=SSL,type=jrmp



The configuration changes I made are the:
I put the SSL domain and the JRMP invoker in de jboss-service.xml


    <!-- 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"> Riesgos.keystore</attribute>
        <attribute name="KeyStorePass">rmi+ssl</attribute>
    </mbean>
    <mbean code="org.jboss.invocation.jrmp.server.JRMPInvoker" name="jboss:service=invoker,type=jrmp,socketType=SSL">
        <attribute name="RMIObjectPort">14445</attribute>
        <attribute name="RMIClientSocketFactory">org.jboss.security.ssl.RMISSLClientSocketFactory</attribute>
        <attribute name="RMIServerSocketFactory">org.jboss.security.ssl.RMISSLServerSocketFactory</attribute>
        <attribute name="SecurityDomain">java:/jaas/RMI+SSL</attribute>
        <attribute name="ServerAddress">${jboss.bind.address}</attribute>
        <depends>jboss.security:service=JaasSecurityDomain,domain=RMI+SSL</depends>
    </mbean>

and in the jboss.xml of the jar y put the following

<?xml version="1.0"?>
<jboss>
    <enterprise-beans>
        <session>
            <ejb-name>Prueba</ejb-name>
            <configuration-name>Standard Stateless SessionBean</configuration-name>
            <invoker-bindings>
                <invoker>
                    <invoker-proxy-binding-name>
                        stateless-ssl-invoker
                    </invoker-proxy-binding-name>
                </invoker>
            </invoker-bindings>
        </session>
    </enterprise-beans>
   
    <invoker-proxy-bindings>
        <invoker-proxy-binding>
            <name>stateless-ssl-invoker</name>
            <invoker-mbean>jboss:service=invoker,type=jrmp,socketType=SSL</invoker-mbean>
            <proxy-factory>org.jboss.proxy.ejb.ProxyFactory</proxy-factory>
            <proxy-factory-config>
            <client-interceptors>
                <home>
                    <interceptor> org.jboss.proxy.ejb.HomeInterceptor</interceptor>
                    <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
                    <interceptor>org.jboss.proxy.TransactionInterceptor </interceptor>
                    <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
                </home>
                <bean>
                    <interceptor> org.jboss.proxy.ejb.StatelessSessionInterceptor</interceptor>
                    <interceptor>org.jboss.proxy.SecurityInterceptor</interceptor>
                    <interceptor>org.jboss.proxy.TransactionInterceptor </interceptor>
                    <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
                </bean>
            </client-interceptors>
            </proxy-factory-config>
        </invoker-proxy-binding>
    </invoker-proxy-bindings>
</jboss>