Hi,

If you want Jetty listen to all the network interface you do use this
0.0.0.0:PORT.

On 6/17/11 12:56 AM, Vitaly Peressada wrote:
Migrated from
CXF 2.2.2 and Jetty 6.1.18
To
CXF 2.4.0 and Jetty 7 7.3.1.v20110307

We start CXF using JAXRSServerFactoryBean something like:

  this.endpointUrl = "http://";
                 + InetAddress.getLocalHost().getCanonicalHostName()
                 + ":"
                 + String.valueOf(this.getListenPort()) + "/";
  jaxrsBean.setAddress(this.endpointUrl);
server = jaxrsBean.create();
server.start();

But after upgrade CXF responds only on fully qualified host name eg. 
http://foo.bar.com and http://localhost... is not working

Not sure if this CXF or jetty issue. Any ideas?



--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Reply via email to