Re: force embedded tomcat 7 to listen on ALL adresses

2012-07-21 Thread Alexander Shutyaev
Will this help? Can I safely call addWebapp() for 2nd and all other webapps after start() ? 2012/7/22 Mark Thomas > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 17/07/2012 19:31, Alexander Shutyaev wrote: > > Hi Christopher, > > > > I've found a soluti

Re: force embedded tomcat 7 to listen on ALL adresses

2012-07-18 Thread Alexander Shutyaev
Hi André, Thanks for your suggestion. I've changed (1) to tomcat.getEngine().setDefaultHost(tomcat.getHost().getName()); and removed (2). It also works this way and the code seems more adequate. Thanks again! 2012/7/18 André Warnier > Alexander Shutyaev wrote: > >> Hi Christ

Re: force embedded tomcat 7 to listen on ALL adresses

2012-07-17 Thread Alexander Shutyaev
localhost:8080, http://127.0.0.1:8080 and all other assigned addresses like http://192.168.1.1:8080 etc 2012/7/17 Christopher Schultz > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Alexander, > > On 7/17/12 6:42 AM, Alexander Shutyaev wrote: > > Ok, I've figur

Re: force embedded tomcat 7 to listen on ALL adresses

2012-07-17 Thread Alexander Shutyaev
Ok, I've figured out it DOES listen on ALL addresses no matter what hostname is, but somehow requests only succeed if they have the hostname matching with the one set by Tomcat.setHostname(...) (which is localhost by default). I'm not sure where the requests fail, but they do. 2012/7/17

force embedded tomcat 7 to listen on ALL adresses

2012-07-17 Thread Alexander Shutyaev
Hi all! I've embedded tomcat 7 using org.apache.catalina.startup.Tomcat class. It seems that by default it listens on "localhost". I've noticed there is a method org.apache.catalina.startup.Tomcat.setHostname(String) which I can use to change this. But I can't find how I can tell tomcat to listen