• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic