DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Installing an application in tomcat

  1. #1
    Flash Guest

    Installing an application in tomcat


    Hello
    I'm trying to run a simple application on a tomcat server.
    I've made a directory in /webapps named XML, in webapps/XML
    I've set my startup page , index.html and in webapps/XML/WEB-INF
    I've made the necessary web.xml file, plus the map classes where
    my servlet code is going to come.
    I've added the following line to define the context node:
    <Context path="/XML" docBase="SlidesMaker" debug="0" reloadable="true" />

    in the server.xml configuration file. My problem is: when I start up the
    server, and I type "http://localhost/XML/index.html" in my browser I
    get the answer from tomcat that the requested resourceis not available.
    What shoul I do to get tomcat to recognize my application

  2. #2
    jos Guest

    Re: Installing an application in tomcat


    "Flash" <dries_herbots@hotmail.com> wrote:
    >
    >Hello
    >I'm trying to run a simple application on a tomcat server.
    >I've made a directory in /webapps named XML, in webapps/XML
    >I've set my startup page , index.html and in webapps/XML/WEB-INF
    >I've made the necessary web.xml file, plus the map classes where
    >my servlet code is going to come.
    >I've added the following line to define the context node:
    ><Context path="/XML" docBase="SlidesMaker" debug="0" reloadable="true" />
    >
    >in the server.xml configuration file. My problem is: when I start up the
    >server, and I type "http://localhost/XML/index.html" in my browser I
    >get the answer from tomcat that the requested resourceis not available.
    >What shoul I do to get tomcat to recognize my application


    docBase in the context should point to your folder in webapps ('XML' in your
    case, no slash in front of it). And the path in this same context is the
    path that is typed after your ip-adress in the browser (that OK right now,
    so leave it just the way it is).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center