How do I take the final step to make my servlets accessible to the web?

25 views Asked by At
  1. Running Lubuntu 14.04
  2. Tomcat7 and the manager is installed and working
  3. Servlet is deployed to Tomcat7
  4. Servlet working in localhost
  5. Router port forwarding is working
  6. Website name has NS and A records and is at the registry. I see this with a "dig"
  7. I am missing that last step to allow myself and others to see the site using the web.

server.xml has two pertinent lines:

<Connector port="8088" protocol="HTTP/1.1" connectionTimeout="20000" URIEncoding="UTF-8" redirectPort="8443" address="0.0.0.0"/>

and

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">

A key piece of information might be that this was all working before I decided Ubuntu 14.04 was not to my liking and I re-installed Lubuntu over the top (forgetting to backup my server.xml). Thus the router and DNS have both already been setup and were working prior to this attempt. It would seem that this step is not very popular for a variety of reasons. As a result, I am having a non-trivial amount of trouble locating this last step. Any help any of you can provide is much appreciated.

1

There are 1 answers

0
brightmatter On BEST ANSWER

The A record was changed within a 1 day period (86400 seconds). Thus, from my PC and other computers I use, the TTL had not yet elapsed. This means I was cached in the recursive resolver. The cached A record was still pointing to a bad IP address. After being patient the site resolved when the cache was purged.

Next time I make a change to a record I will:

  • Set the records TTL to 5 minutes (300)
  • Wait for the 86400 seconds to elapse
  • Make my changes to the records
  • Wait five minutes before testing the changes
  • Finally, when I am satisfied with the changes, I will change my records TTL back to 86400

Lesson learned.