15 Apr 2013, 15:57
Facebook_pragsmall

Glenn Goodrich (10 posts)

I completed the Torquebox deployment in Chapter 7, and everything seems to be working except the port forwarding of 8080 to 8888.

I can wget http://localhost:8080 from within the VM and index.html renders just fine, but going to http://localhost:8888 from the host doesn’t work.

Vagrant reports the port is being forwarded with I bring up the box, but I just get an empty response from http://localhost:8888 (curl actually says “Empty response”)

Any clues? My thoughts are that it has something to do with using the torquebox to run the service instead of the vagrant user….

Any help appreciated, Glenn

15 Apr 2013, 17:17
Facebook_pragsmall

Glenn Goodrich (10 posts)

So, this is b/c torquebox binds to 127.0.0.1 which messes with Vagrant’s ability to forward the port. You have to bind tb to 0.0.0.0, which, BTFW, breaks it’s ability to cluster (sigh).

I edited /etc/init/torquebox.conf and added -Djboss.bind.address=0.0.0.0 to the call to standalone.sh.

  You must be logged in to comment