Hi
If you configure your system to run at localhost, then it is only accessible for localhost. The IP address for localhost is normally 127.0.0.1. Thus, when you try to call MyIp, it will not resolve to your application because your told your application to listen only to localhost, not to MyIp.
Please read the JBoss documentation how to install and setup web applications within JBoss. Regarding OpenOLAT, the only relevant parameter is server.domainname in the olat.local.properties. Set it to the same as you configure in your JBoss configuration.
Cheers
Florian