Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Starting Java App with no internet connection?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to start a Java application (*.war) with no internet connection? It seems that Tomcat must vailadate the web.xml file with java.sun.com. I have tried to changing the DTD location in the web.xml file with no luck to date.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Assuming that the machine is not on the internet...why don't assume the hostname java.sun.com and deploy the required files on the local box. I know its a hack but it should work...
 
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not connected, tomcat is available via
http://localhost:8080/
So you can check your web-application 'standalone' .
 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Adam:
You can host the file web-app_2_3.dtd in your local web server...the one that comes with tomcat.
Get the file from web app DTD and save it locally under \Apache Tomcat 4.0\webapps\ROOT\dtd OR any other web app you prefer. ( for the ROOT to work you should uncomment a line in server.xml if it's not already done).
Anyway, henceforth, refer to this DTD file thru' "http://localhost:8080/dtd/web-app_2_3.dtd"
whereever it was originally referring to "http://java.sun.com/dtd/web-app_2_3.dtd" in your web.xml
Problem solved...and u don't need an internet connection.
Point being you're validating your web.xml against the local DTD instead of the one in java.sun.com site ( assuming they both are identical
Hope this helped
 
The government thinks you are too stupid to make your own lightbulb choices. But this tiny ad thinks you are smart:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic