1 Reply Latest reply on Nov 3, 2008 4:55 AM by vikram8522

    Configure apache with jboss by mod_jk [Response problem]

    vikram8522

      Hi All

      I Configure my Jboss4.0.4 with apache2.2 with the link

      http://www.jboss.org/community/docs/DOC-12525;jsessionid=1569CBFB7C3096C59C977CD3F7159A32 every thing is fine.
      But problem is that when I try to send the custom response (reponse.setStatus(like 804) ,if any exception in my code) ,but it send its own response ,but its work fine when merely access the jboss(without apache).

      I aslo tried to configure it by mod_proxy but same problem ,Is there any port bind by firewall
      or
      any other configuration required
      or
      any thing else ?

      Any suggestion would be very helpful for me.

        • 1. Re: Configure apache with jboss by mod_jk [Response problem]
          vikram8522

          Hi All

          I Configure my Jboss4.0.4 with apache2.2 with the link

          wwwjboss.org/community/docs/DOC-12525;jsessionid=1569CBFB7C3096C59C977CD3F7159A32 every thing is fine.
          But problem is that when I try to send the custom response (reponse.setStatus(like 804) ,if any exception in my code) ,but it send its own response ,but its work fine when merely access the jboss(without Apache).

          for example

          in my jsp what I do is........


          List list=(List)request.getAttribute("a");
          if(list==null){
          response.setStatus(212);
          list=new ArrayList();
          }else{
          ....
          ........
          ........
          }
          }
          %>

          in my code I get response in .js file using Ajax

          if (req.readyState == 4) {

          if (req.status == 212) {
          .......
          ....... do some thing
          }
          }
          but it send 500 when using apache jboss both and send 212 when merely access the jboss.

          I also tried to configure it by mod_proxy but same problem ,Is there any port bind by firewall
          or
          any other configuration required
          or
          any thing else ?

          Any suggestion would be very helpful for me.