What benefits are you hoping to achieve using getRemoteAddr(). It's actually fairly useless. For example, every machine on my LAN would appear to your server under the same IP address.
The JOnAS webapp server runs an embedded copy of Tomcat, but because JOnAS is a full-stack implementation, it has to deal with EARs and other non-WAR deployables as well as WARs themselves. So its deployment processes are different from stand-alone Tomcat.
Fortunately, the JOnAS documentation is generally fairly good, and the people on the JOnAS project were always very helpful to me, so I always enjoyed working with JOnAS.
An IDE is no substitute for an Intelligent Developer.