Women in Technology

Hear us Roar



Article:
  Deploying Web Applications to Tomcat
Subject:   Adding web application under separate filesystem ...
Date:   2002-08-16 12:26:58
From:   dbarnick
I've been trying to assist the java application developer by "deploying" his application under Tomcat. What we want to do is get the web-app to work from a totally separate (unix) filesystem, something like "/company/test/project", where this "/company/..." is *the* filesystem. I've searched the web and have been unable to find any examples of deploying an application in this manner - the examples all seem to point to placing it under the "/examples" structure under the tomcat server-root, or under the ROOT structure. The application DOES work if we place it under the /examples structure, but we don't want to deploy a production version, or even a test version under "examples". We want to keep production, test, and development totally separate if possible. Whenever I try the separate filesystem approach, I get the nebulous error message "The request resource (/company/test/project) is not available". I've tried several variations of "
Respectfully,


Don Barnick

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Adding web application under separate filesystem ...
    2002-08-26 10:56:58  slimd [View]

    You can use the '/examples' context as an example.

    <Context path="/yourAppsHTMLReference" docBase="dirYourAppIsIn" debug="0">

    Copy your application into a new directory under webapps. Use the examples directory structure as a sample if you have classes to deploy (may put them under dirYourAppIsIn/WEB-INF/classes).

    restart Tomcat and go to http://serverName/yourAppsHTMLReference/pageName to see your app.
    • Adding web application under separate filesystem ...
      2003-10-08 23:00:30  anonymous2 [View]

      u need to create an xml file say 'mwApp.xml' and put it under ur .../webapps dir.
      this xml file will have only the following context path:
      <Context path="/yourAppsHTMLReference" docBase="dirYourAppIsIn" debug="0">

      Also u need to point ur CATALINA_BASE to ur new webapps dir

      Thanks
      Satish
      Component Plus