[jboss-user] [JBoss Portal] - Re: Configure apache with jboss by mod_jk [Response problem]

vikram8522 do-not-reply at jboss.com
Mon Nov 3 04:55:17 EST 2008


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186331#4186331

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186331



More information about the jboss-user mailing list