Look through this forum for the JBoss/Jetty FAQ - there is an item on exactly this.
Sorry - not this forum - the web forum.
Thanks...I'll check it out...do you have a link?
had the same problem. I wanted to run JBoss as a non-root user for security reasons. I got an error trying to bind to port 80. So here is how I solved it (for Linux)
I setup my JBoss to run on port 8080 as user JBoss.
I changed Linux to redirect port 80 to port 8080, effectively bypassing the security restriction of non-root users binding to port 80.
The redirect command is as follows:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
You will need to integrate this into whatever iptables commands you are already using.
That seems like a convoluted way AROUND the problem. Why don't you just change the tomcat41-service.xml file and modify the line:
to use port 80 like it is here. That will work fine, and if you have multiple IP adresses on the machine, you can also add in the address attribute.
that works fine if you run JBoss as "root". However, I consider that a security risk, and would rather run JBoss as a user who couldn't accidently delete every file on my system.
Yeah, the solution is pretty convulted, but it gives me the best security on port 80.