Mango and Jetty problem
-
Hi,
I would like to run Mango on cloude server but i got this error durring initialization:
SelectChannelConnector@0.0.0.0:8080 FAILED: java.net.SocketException: Permission denied.Embedded Jetty tries to open socket at 0.0.0.0, which is prohibited by Openshift server - you can only open ports at $OPENSHIFT_INTERNAL_IP.
My question is : how to set jetty.host to $OPENSHIFT_INTERNAL_IP ( any xml ? ) ?
Is compilation from source necessary ?
Thanks in advance
Przemek
-
plato,
This is currently only done by modifying the source in one of our private libraries. I have just made some changes to the code that will allow changing the host interface that Mango will bind to. This release should be available by next week.
Currently Mango will bind to 0.0.0.0 (all interfaces). The change I have made will allow binding to any ip address via a new property in the env.properties file called 'host'. Am I correct in assuming this will fix your issue?
-
Yes - this should help.
Will let you know.Thanks!