Hi I was wondering if anyone had any more ideas for me in regards to getting jetty to start if there is no internet connection?
I did try some of the other suggestions.
1. Adding hostname in hosts file did not get around the issue. 2. I added eclipse.org and www.eclipse.org ip in hosts file. (Not ideal by any means, but wanted to rule out if it was merely from dns resolution. 3. Without an internet connection, but with eclipse.org ip defined, I’ll still get a java.net.NoRouteToHostException: No route to host
4. I did try / correct the public doctype notation as per Joakim’s suggestion but that did not resolve the issue, although I think the suggestion was just to have the correct one.
I believe I still need to have the correct notation to load configure_9_3.dtd locally.
-John
10/01/2017 14:38:56.983 15 0 ERROR BUNDLE error reading XML configuration /usr/share/terascript/server/webconfig/contexts/localhost.xml:
10/01/2017 14:46:33.393 15 0 ERROR BUNDLE error reading XML configuration /usr/share/terascript/server/webconfig/contexts/localhost.xml: java.net.SocketException: Network is unreachable
This kind of behavior would happen to me on Mac OS X El Capitan using Jetty 9.3.15.v20161220. It was easy to reproduce:
1. Make my cell phone a WIFI hotspot 2. Disable cellular data, thus making the hotspot a deadend 3. Connect my Mac to the hotspot 4. Start embedded Jetty
It would hang when log4j was being initialized and actually had nothing to do with Jetty. It would hang here:
InetAddress addr = InetAddress.getLocalHost() in NetUtils.
I fixed it by adding my laptop's hostname and localhost to /etc/hosts as 127.0.0.1 and ::1. See [1]
I know that it is somewhat different situation, but I'm wondering if the root cause is the same -- slow DNS resolution in Java's InetAddress.
HTH!
_______________________________________________ jetty-users mailing list jetty-users@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jetty-users
|