how and when are you setting the hostname? I had a similar problem recently and it was because my hostname was being read from a class which tomcat had serialised in the session. The result was that when tomcat starts up deserialisation of session objects takes place before any context listeners initialisations as such if you're setting properties in the context listeners during context startup it may fail.
very odd side line case but just in the random off chance you're hitting the same thing... On 4/3/13, Bruno Cappoen <[email protected]> wrote: > Hi Aki, thanks. I tested during the journey and i can't reproduce the > problem with a first call in localhost. I'm using Jboss4. I continue to > look. > > > 2013/4/2 Aki Yoshida <[email protected]> > >> i think someone invoked the service over the localhost url before >> anyone else called it over the host name url. >> >> 2013/4/2 Bruno Cappoen <[email protected]>: >> > Hello everybody, we are using CXF 2.2.8 and i have a random strange >> problem. >> > Sometimes during the night (after the reboot of my AS), I have the >> > endpoints with localhost instead of real hostname in the list of >> services. >> > I don't see what it can be happened in class >> > org.apache.cxf.transport.servlet.ServletController. >> > If I reboot the AS the morning, i have no problem during the >> > replacement. >> > >> > Any idea ? >> > >> > Thanks. >> > -- Ted.
