Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've followed the tutorial here: http://community.jboss.org/wiki/UsingModjk12WithJBoss

All my files as configured as it says there but then I try to access http://localhost/jmx-console I get

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /jmx-console.

Reason: DNS lookup failure for: host1

If I call http://localhost/admin/ the browser seems to be loading forever.

Any ideas ?

share|improve this question
    
I think you're going to need to post some more info before anyone can provide an answer. Try including the relevant information from your apache and modjk configuration files. Can you get to /jmx-console when you access your jboss instance directly (bypassing apache)? –  micah Jun 21 '11 at 20:39
    
Here is my httpd.conf : pastebin.com/3EDqhm0V and httpf.conf : pastebin.com/Cm7DKcdm mod-jk : pastebin.com/3Wug1Z7t , uriworkermap.properties : pastebin.com/hDiSyhSq and workers.properties : pastebin.com/RxPeA7yb . With these configured I can acces localhost/myapp-1 and localhost/myapp-2 but not localhost/jmx-console . Thank you. –  Sergiu Jun 22 '11 at 7:29
    
Try commenting out lines 488+ in your httpd.conf. It looks like you may have been trying to use mod_proxy at some point and left that in? Those lines are causing it try to proxy requests for /jmx-console to a server called "host1" which does not seem to exist in your environment. –  micah Jun 22 '11 at 13:21
    
It works now. Stupid me. Thank you micah. –  Sergiu Jun 22 '11 at 14:36

1 Answer 1

up vote 1 down vote accepted

For the sake of recording an answer: Comment out the unused mod_proxy directives in the httpd.conf file.

share|improve this answer
    
With the same config files, I start a second JBoss instance on another PC, and when I call 192.168.224.5:80/autoid I get time-outs. The only modification between the two JBoss's is jvmRoute="node2" in server.xml in the second computer. Is that correct ? –  Sergiu Jun 23 '11 at 9:39
    
I've also added in mod-jk.conf Allow from 192.168.224.160 (the IP of my second computer) under the <Location /jkstatus> tag but to no use. –  Sergiu Jun 23 '11 at 9:54
    
Ignore the above post. Firewall issues. –  Sergiu Jun 23 '11 at 10:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.