0 Replies Latest reply on Jan 22, 2004 11:58 AM by sergioortiz

    Apache 2.0.46+JBOSS+SSL using 8843

    sergioortiz Newbie

       

      "sergioOrtiz" wrote:
      Hi all,

      I use Apache as front-end web server and I'm trying to tunnel all incoming traffic to a certain IP through a AJP13 channel to JBOSS/Jetty.
      I'm using the Direct SSL approach, that is, to manage SSL directly in JBoss.

      I have no problems with HTTP connections but HTTPS fails when I configure 8843 as Jetty secure port. These are the lines describing the error that appears in /etc/httpd/logs/error_log.

      [Thu Jan 22 17:39:42 2004] [error] Error ajp_marshal_into_msgb - No such method !L!!!
      [Thu Jan 22 17:39:42 2004] [error] ajp13.service(): error marshaling
      [Thu Jan 22 17:39:42 2004] [error] mod_jk.handler() Error connecting to tomcat 120000

      The problem does not appear when Apache is not listening to 443 and I configure Jetty to use 443 as secure port.

      Any similar experience? Does anyone faced a similar problem?

      Thanks in advance

      P.S.- IMPORTANT!!! -> XML-style tags doesn't appear when I preview the post so I've changed <> for [] in jboss-service.xml and Virtual Host part of the httpd.conf. In my installation <> are used properly :)

      My system configuration is:
      Red Hat 9 Enterprise
      Apache 2.0.46 (RedHat)
      Jboss 3.2.1+Jetty
      Mod_jk2 ( taken from mod_jk2-2.0.4-4jpp.i386.rpm )

      2 webs
      - Static web A (IP1 -> 200.10.0.4) -> served by Apache
      - Dynamic web B ( IP2 - ipaliased -> 200.10.0.35 ) -> served by JBoss/Jetty

      ------ worker2.properties extract -------

      [channel.socket:localhost:8009]
      info=Ajp13 forwarding over socket
      debug=0
      tomcatId=localhost:8009
      port=8009
      host=localhost

      [ajp13:localhost:8009]
      info=Estoy en el canal ajp13
      channel=channel.socket:localhost:8009
      debug=0
      logger=logger.file:0

      -------------------------------------------

      ------ httpd.conf extract * -------
      [VirtualHost 200.10.0.4]
      ServerName 200.10.0.4
      DocumentRoot /var/www/html
      ErrorLog logs/error_log
      CustomLog logs/access_log common
      [/VirtualHost]
      [VirtualHost 200.10.0.35]
      [Location /]
      JkUriSet worker ajp13:localhost:8009
      [/Location]
      ServerName 200.10.0.35
      ErrorLog logs/error_log
      CustomLog logs/custom_log common
      [/VirtualHost]

      -------------------------------------------
      ------ Jetty's jboss-service.xml * -----------
      [Call name="addListener"]
      [Arg]
      [New class="org.mortbay.http.SocketListener"]
      [Set name="Port"><SystemProperty name="jetty.port" default="8080"/][/Set]
      [Set name="MinThreads"]10[/Set]
      [Set name="MaxThreads"]100[/Set]
      [Set name="MaxIdleTimeMs"]30000[/Set]
      [Set name="LowResourcePersistTimeMs"]5000[/Set]
      [Set name="IntegralPort"]8843[/Set]
      [Set name="ConfidentialPort"]8843[/Set]
      [Set name="IntegralScheme"]https[/Set]
      [Set name="ConfidentialScheme"]https[/Set]
      [/New]
      [/Arg]
      [/Call]

      [Call name="addListener"]
      [Arg]
      [New class="org.mortbay.http.SunJsseListener"]
      [Set name="Port"]8843[/Set]
      [Set name="MinThreads"]5[/Set]
      [Set name="MaxThreads"]100[/Set]
      [Set name="MaxIdleTimeMs"]30000[/Set]
      [Set name="LowResourcePersistTimeMs"]2000[/Set]
      [Set name="Keystore"][SystemProperty name="jboss.server.home.dir"/] /conf/server.keystore[/Set]
      [Set name="Password">MYPASSWORD[/Set]
      [Set name="KeyPassword">MYKEYPASSWORD[/Set]
      [/New]
      [/Arg]
      [/Call]

      [Call name="addListener"]
      [Arg]
      [New class="org.mortbay.http.ajp.AJP13Listener"]
      [Set name="Port"]8009[/Set]
      [Set name="MinThreads"]5[/Set]
      [Set name="MaxThreads"]20[/Set]
      [Set name="MaxIdleTimeMs"]0[/Set]
      [Set name="confidentialPort"]8843[/Set]
      [Set name="confidentialScheme"]https[/Set]
      [/New]
      [/Arg]
      [/Call]

      --------------------------------------------------