7 Replies Latest reply on Jul 31, 2002 11:34 AM by Stephen J. Thompson

    jboss-3.0beta_tomcat-4.0.2: cannot setup HTTPS...

    Frederic Soulier Newbie

      Hi

      I have been trying to setup HTTPS in jboss 3.0 beta without success...

      Here is what I have done:
      - extracted /META-INF/jboss-service.xml from the tomcat4-service.sar in /deploy
      - removed the mbean for HTTP connection on port 8080 (basically the jboss-service.xml does not do anything now)
      - created a https-service.xml file as follows:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE server [
      <!ENTITY catalina.home "../jakarta-tomcat-4.0.2">
      <!ENTITY jboss.home "..">
      ]>

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









      <!-- Tomcat 4.0.1 SSL Configuration -->




      /opt/jboss-3.0.0beta/jakarta-tomcat-4.0.2/conf/.keystore
      changeit



      &catalina.home;
      8080








      -copied this https-service.xml in /deploy

      I get:

      17:29:24,149 ERROR [ServiceController] JMException thrown during ServiceProxy operation start on mbean Security:name=JaasSecurityDomain,domain=SSL
      javax.management.InstanceNotFoundException: jboss.security:service=JaasSecurityManager
      at com.sun.management.jmx.MBeanServerImpl.getMBean(MBeanServerImpl.java:1678)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1522)
      at org.jboss.security.plugins.JaasSecurityDomain.start(JaasSecurityDomain.java:110)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:777)
      at $Proxy2.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:341)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:78)
      at $Proxy1.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.deploy(SARDeployer.java:257)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:458)
      at org.jboss.deployment.MainDeployer.scan(MainDeployer.java:296)
      at org.jboss.deployment.MainDeployer.run(MainDeployer.java:259)
      at java.lang.Thread.run(Thread.java:484)
      17:29:24,159 ERROR [SARDeployer] operation failed
      ... blabla

      Well, I have tried a https-service.xml with only:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE server [
      <!ENTITY catalina.home "../jakarta-tomcat-4.0.2">
      <!ENTITY jboss.home "..">
      ]>

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










      &catalina.home;
      8080



      and it deployed ok with an active HTTP server on port 8080.

      This new way of configuring the web server is far from being trivial ;)

      Thanks for any help.
      Fred

        • 1. Re: jboss-3.0beta_tomcat-4.0.2: cannot setup HTTPS...
          Adrian Brock Master

          It says it cannot find the security manager.
          Are they deployed in the wrong order?
          Try adding a

          jboss.security:service=JaasSecurityManager


          to the security domain MBean config.

          Regards,
          Adrian

          • 2. Re: jboss-3.0beta_tomcat-4.0.2: cannot setup HTTPS...
            Frederic Soulier Newbie

            Hi Adrian,
            Thanks for your post.

            I've added:
            jboss.security:service=JaasSecurityManager

            in the security domain MBean config and this is what I get now:

            16:08:18,514 INFO [EmbeddedCatalinaServiceSX] HttpConnector Opening server socket on all host IP addresses
            16:08:18,516 INFO [EmbeddedCatalinaServiceSX] HttpConnector[8080] Starting background thread
            16:08:19,095 INFO [EmbeddedCatalinaServiceSX] HttpProcessor[8080][0] Starting background thread
            16:08:19,098 INFO [EmbeddedCatalinaServiceSX] HttpProcessor[8080][1] Starting background thread
            16:08:19,100 INFO [EmbeddedCatalinaServiceSX] HttpProcessor[8080][2] Starting background thread
            16:08:19,103 INFO [EmbeddedCatalinaServiceSX] HttpProcessor[8080][3] Starting background thread
            16:08:19,106 INFO [EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] Starting background thread
            16:08:19,107 INFO [EmbeddedCatalinaServiceSX] HttpConnector Opening server socket on all host IP addresses
            16:08:19,300 ERROR [EmbeddedCatalinaServiceSX] Starting failed
            java.lang.NullPointerException
            at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:74)
            at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:57)
            at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:948)
            at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
            at org.apache.catalina.startup.Embedded.start(Embedded.java:962)
            at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.startService(EmbeddedCatalinaServiceSX.java:249)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:160)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:777)
            at $Proxy2.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:341)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
            at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:78)
            at $Proxy1.start(Unknown Source)
            at org.jboss.deployment.SARDeployer.deploy(SARDeployer.java:257)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:458)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:413)
            at org.jboss.deployment.MainDeployer.scan(MainDeployer.java:272)
            at org.jboss.deployment.MainDeployer.run(MainDeployer.java:259)
            at java.lang.Thread.run(Thread.java:484)

            Cheers,
            Fred

            • 3. Re: jboss-3.0beta_tomcat-4.0.2: cannot setup HTTPS...
              Sean Howell Newbie

              Hi Fred

              I'm getting the nullpointer also, did you get it working?

              Sean

              • 4. Re: jboss-3.0beta_tomcat-4.0.2: cannot setup HTTPS...
                roger Newbie

                Where did you find jboss-3.0beta_tomcat-4.0.2?
                I can see jboss-3.0_tomcat-4.0.3 on sourceforge.net.
                I'm trying to implement SSL on jboss-3.0_tomcat-4.0.3 but looks like there are many things to do. some R&D as well..
                Did you try the jboss3.0 woth tomcat 4.0.3 (bundle)?

                • 5. Re: jboss-3.0beta_tomcat-4.0.2: cannot setup HTTPS...
                  Stephen J. Thompson Newbie

                  I have tried the jboss-3.0_tomcat-4.0.3 setup and I get a NullPointerException the same as yourselves. I am wondering if there is a bug or has anyone managed to get this working.


                  Regards,

                  Romeriz.

                  • 6. Re: jboss-3.0beta_tomcat-4.0.2: cannot setup HTTPS...
                    roger Newbie

                    hi Romeriz,
                    Could you mention the steps that are required to implement SSL with JBoss3.0_Tomcat4.0.3 bundle, please?
                    Thanks,

                    • 7. Re: jboss-3.0beta_tomcat-4.0.2: cannot setup HTTPS...
                      Stephen J. Thompson Newbie

                      Hello,

                      I basically modified the following:

                      My tomcat4-service.xml file has the following in:


                      jboss.security:service=JaasSecurityManager




                      file:/d:/java/jboss-3.0.0_tomcat-4.0.3/catalina/certificates/keystore
                      testkey
                      JKS


                      .
                      .
                      .

                      <!-- A HTTP Connector on port 8080 -->
                      <!--

                      -->

                      <!-- A HTTP Connector on port 8443 -->






                      My jboss-service.xml file security section has been modified to :

                      <!-- JAAS security manager and realm mapping -->


                      org.jboss.security.plugins.JaasSecurityManager






                      I still get the NullPointerException.

                      Regards,

                      Romeriz.