6 Replies Latest reply on Jun 12, 2006 4:43 AM by Annegret Sternagel

    stateless-ssl-invoker for EJB3?

    Bernd Ruecker Master

      Hi, we have configured our EJB 2.1 SLSB with a stateless-ssl-invoker as described in http://docs.jboss.org/jbossas/jboss4guide/r3/html/ch8.chapter.html. Works fine :-)

      But how can we do this with our new EJB3-Beans in Jbos 4.0.3? I have tested it with a standard jboss.xml file:

       <enterprise-beans>
       <session>
       <ejb-name>com.camunda.toolkit.jbpm.service.AdminServicesImpl</ejb-name>
       <jndi-name>com.camunda.toolkit.jbpm.service.AdminServices</jndi-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>
      



      But it has no effect, we can continue to connect without SSL after this...

      The application is deployed as .ejb3 archive.

      Any ideas?

        • 2. Re: stateless-ssl-invoker for EJB3?
          Scott Stark Master

          From jboss-head/ejb3/src/resources/test-configs/ejb3-ssl-advanced/deploy/ejb3.deployer/META-INF/jboss-service.xml

          <?xml version="1.0" encoding="UTF-8"?>
          
          <server>
           <mbean code="org.jboss.ejb3.EJB3Deployer" name="jboss.ejb3:service=EJB3Deployer">
           <depends>jboss.aop:service=AspectDeployer</depends>
           </mbean>
          
           <mbean code="org.jboss.remoting.transport.Connector"
           xmbean-dd="org/jboss/remoting/transport/Connector.xml"
           name="jboss.remoting:type=Connector,transport=socket3873,handler=ejb3">
           <depends>jboss.aop:service=AspectDeployer</depends>
           <attribute name="InvokerLocator">socket://0.0.0.0:3873</attribute>
           <attribute name="Configuration">
           <handlers>
           <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
           </handlers>
           </attribute>
           </mbean>
          
           <!-- The server socket factory mbean to be used as attribute to socket invoker -->
           <!-- which uses the JaasSecurityDomain -->
           <mbean code="org.jboss.remoting.security.domain.DomainServerSocketFactoryService"
           name="jboss.remoting:service=ServerSocketFactory,type=SecurityDomainAdvanced"
           display-name="SecurityDomain Server Socket Factory">
           <attribute name="SecurityDomain">java:/jaas/SSLAdvanced</attribute>
           <depends>jboss.security:service=JaasSecurityDomain,domain=SSLAdvanced</depends>
           </mbean>
          
           <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
           name="jboss.security:service=JaasSecurityDomain,domain=SSLAdvanced">
           <!-- This must correlate with the java:/jaas/SSL above -->
           <constructor>
           <arg type="java.lang.String" value="SSLAdvanced"/>
           </constructor>
           <!-- The location of the keystore
           resource: loads from the classloaders conf/ is the first classloader -->
           <attribute name="KeyStoreURL">localhost.keystore</attribute>
           <attribute name="KeyStorePass">opensource</attribute>
           </mbean>
          
           <!-- The Connector is the core component of the remoting server service. -->
           <!-- It binds the remoting invoker (transport protocol, callback configuration, -->
           <!-- data marshalling, etc.) with the invocation handlers. -->
           <mbean code="org.jboss.remoting.transport.Connector"
           xmbean-dd="org/jboss/remoting/transport/Connector.xml"
           name="jboss.remoting:type=Connector,transport=socket3843,handler=ejb3">
           display-name="Socket transport Connector">
          
           <attribute name="Configuration">
           <config>
           <invoker transport="sslsocket">
           <attribute name="dataType" isParam="true">invocation</attribute>
           <attribute name="marshaller" isParam="true">org.jboss.invocation.unified.marshall.InvocationMarshaller</attribute>
           <attribute name="unmarshaller" isParam="true">org.jboss.invocation.unified.marshall.InvocationUnMarshaller</attribute>
           <!-- The following is for setting the server socket factory. If want ssl support -->
           <!-- use a server socket factory that supports ssl. The only requirement is that -->
           <!-- the server socket factory value must be an ObjectName, meaning the -->
           <!-- server socket factory implementation must be a MBean and also -->
           <!-- MUST implement the org.jboss.remoting.security.ServerSocketFactoryMBean interface. -->
           <attribute name="serverSocketFactory">jboss.remoting:service=ServerSocketFactory,type=SecurityDomainAdvanced</attribute>
           <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
           <attribute name="serverBindPort">3843</attribute>
           </invoker>
           <handlers>
           <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
           </handlers>
           </config>
           </attribute>
           <depends>jboss.remoting:service=ServerSocketFactory,type=SecurityDomainAdvanced</depends>
           <depends>jboss.remoting:service=NetworkRegistry</depends>
           <depends>jboss.aop:service=AspectDeployer</depends>
           </mbean>
          
          </server>
          



          • 3. Re: stateless-ssl-invoker for EJB3?
            Richard Schuller Newbie

            I am using the example jboss-service.xml and I am getting
            13:55:41,859 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
            13:55:42,953 WARN [ServiceController] Problem starting service jboss.security:service=JaasSecurityDomain,domain=SSLAdvanced
            javax.management.InstanceNotFoundException: jboss.security:service=JaasSecurityManager is not registered. at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:653)

            How do you register the JaasSecurityManager?

            • 4. Re: stateless-ssl-invoker for EJB3?
              Annegret Sternagel Newbie

              Hi,

              I'm trying to configure JBoss SSL for EJB3, it does not work.

              JBoss4.0.4RC1
              java 1.5.0_05
              WindowsXP

              I've SSL with EJB 2 running well and extended the application with EJB3 SessionBeans which should use SSL too.

              First I tried the description in jbossejb3_reference.pdf
              I get the error

              2006-05-29 16:36:57,924 DEBUG [org.jboss.remoting.transport.Connector] Handler supplied is not an object name.
              2006-05-29 16:36:57,924 DEBUG [org.jboss.remoting.transport.socket.ssl.SSLSocketServerInvoker] Creating default server socket.
              2006-05-29 16:36:57,924 ERROR [org.jboss.remoting.transport.socket.ssl.SSLSocketServerInvoker] Error starting ServerSocket. Bind port: 3843, bind address: /143.1.0.175
              2006-05-29 16:36:57,924 ERROR [org.jboss.remoting.transport.Connector] Error starting connector.
              java.net.SocketException: Default SSL context init failed: null
               at javax.net.ssl.DefaultSSLServerSocketFactory.createServerSocket(SSLServerSocketFactory.java:162)
               at org.jboss.remoting.transport.socket.ssl.SSLSocketServerInvoker.createServerSocket(SSLSocketServerInvoker.java:132)
               at org.jboss.remoting.transport.socket.SocketServerInvoker.start(SocketServerInvoker.java:139)
               at org.jboss.remoting.transport.Connector.start(Connector.java:315)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:991)
               at $Proxy0.start(Unknown Source)
               at org.jboss.system.ServiceController.start(ServiceController.java:417)
               at org.jboss.system.ServiceController.start(ServiceController.java:435)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
               at $Proxy4.start(Unknown Source)
               at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
               at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
               at $Proxy6.deploy(Unknown Source)
               at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
               at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
               at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
               at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:280)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
               at $Proxy0.start(Unknown Source)
               at org.jboss.system.ServiceController.start(ServiceController.java:417)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
               at $Proxy4.start(Unknown Source)
               at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
               at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
               at $Proxy5.deploy(Unknown Source)
               at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:477)
               at org.jboss.system.server.ServerImpl.start(ServerImpl.java:357)
               at org.jboss.Main.boot(Main.java:200)
               at org.jboss.Main$1.run(Main.java:464)
               at java.lang.Thread.run(Thread.java:595)
              


              I searched in the forum and tried the example mentioned here, then I get

              2006-05-31 13:47:16,209 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/D:/Programme/Tenovis/PUMA/JBoss/server/wbmssl/deploy/ejb3.deployer/
              org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.remoting.security.domain.DomainServerSocketFactoryService; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.remoting.security.domain.DomainServerSocketFactoryService)
               at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
               at org.jboss.system.ServiceController.install(ServiceController.java:226)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
               at $Proxy4.install(Unknown Source)
               at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
               at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
               at $Proxy6.deploy(Unknown Source)
               at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
               at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
               at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
               at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:280)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
               at $Proxy0.start(Unknown Source)
               at org.jboss.system.ServiceController.start(ServiceController.java:417)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
               at $Proxy4.start(Unknown Source)
               at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
               at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
               at $Proxy5.deploy(Unknown Source)
               at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:477)
               at org.jboss.system.server.ServerImpl.start(ServerImpl.java:357)
               at org.jboss.Main.boot(Main.java:200)
               at org.jboss.Main$1.run(Main.java:464)
               at java.lang.Thread.run(Thread.java:595)
              Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.remoting.security.domain.DomainServerSocketFactoryService
               at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
               at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:490)
               at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:392)
               at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
               at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1204)
               at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
               at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
               at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
               at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
               at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
               ... 83 more
              


              I found a jira entry JBAS-2698 "jbossas-remoting.jar missing in build path"
              and tried to find the missing class. I downloaded a new version of jboss-remoting, but I couldn't find the class.

              WHat's missing in the documentation ?
              Which way is the best to configure JBoss for SSL for EJB3 ?
              Where can I find the jar-file of org.jboss.remoting.security.domain.DomainServerSocketFactoryService ?

              I do not have access to CVS (it's blocked in our company network) so I can't look into teh testsuite as mentioned in a post somewhere.

              Any help to configure SSL for EJB3 is appreciated.

              Another question (when I get the JBoss configuration right):
              is it possible to configure the SSLSocket for EJB3 in a deploymentdescriptor ? I just found the annotation
              @RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843").
              But we have two JBoss configurations with the same application, one using SSL and one without (the user can decide which one to use). It's no good solution to duplicate the class because of the annotation. For EJB2 we only use different jboss.xml files.

              Annegret

              • 5. Re: stateless-ssl-invoker for EJB3?
                William DeCoste Apprentice

                Please upgrade to JBoss-4.0.4.GA. The DomainServerSocketFactoryService class will be in jbossas-remoting.jar.

                EJB3 RC8 will contain xml elements for configuring SSL via the jboss.xml deployment descriptors with the <remote-binding> element



                • 6. Re: stateless-ssl-invoker for EJB3?
                  Annegret Sternagel Newbie

                  Thanks. :-)

                  I've upgraded to JBoss 4.0.4.GA and got SSL running using the annotation

                  @RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843", jndiBinding="appl/ssl/TestSB")

                  But how can I configure the SSL part in jboss.xml ?
                  I have 2 JBoss configurations:
                  one without SSL
                  one with SSL
                  that uses the same java code. Only the archieve is different, the SSL version contains an additional jboss.xml.

                  I would prefer to add the SSL configuration for the beans only in jboss.xml so that the non SSL version does not contain anything for SSL.

                  I couldn't find any documentation about this.

                  Thanks for any hint.
                  Annegret