Change the following like as below:

<Context path="" docBase="myrealroot" debug="0">

and uncomment it.

Regards,
Partha

        ----------
        From:  Daniel Joshua [SMTP:[EMAIL PROTECTED]
        Sent:  Wednesday, August 04, 2004 10:54 AM
        To:  [EMAIL PROTECTED]
        Subject:  Re: [NEWBIE] TomCat 5.x webapps\ROOT

        True, but I asked for an alternative way.

        >How do I make it so that when I enter my web server IP without a
context
        >root, it defaults to my webapp (without copying my webapp to ROOT).


        Would you know how to configure the below?

        >        <!-- Tomcat Root Context -->
        >        <!--
        >          <Context path="" docBase="ROOT" debug="0">
        >        -->


        Regards,
        Daniel


        -----Original Message-----
        From: A mailing list for discussion about Sun Microsystem's Java
Servlet
        API Technology. [mailto:[EMAIL PROTECTED] Behalf Of
Paul
        Copeland
        Sent: Wednesday, 04 August, 2004 12:37 AM
        To: [EMAIL PROTECTED]
        Subject: Re: [NEWBIE] TomCat 5.x webapps\ROOT


        One solution is to put this file in the ROOT directory:

        --- index.html ----
        <html>
        <head>
        <script language="JavaScript">
            location.replace('/myrealroot/index.html');
        </script>
        </head>
        </html>

        - Paul Copeland - JOT Servlets - http://www.jotobjects.com

        >Date:    Fri, 30 Jul 2004 13:48:06 +0800
        >From:    Daniel Joshua <[EMAIL PROTECTED]>
        >Subject: Re: [NEWBIE] TomCat 5.x webapps\ROOT
        >
        >Hi all,
        >
        >I am still looking for a solution for this. Thanks!
        >
        >
        >Regards,
        >Daniel
        >
        >
        >-----Original Message-----
        >From: A mailing list for discussion about Sun Microsystem's Java
Servlet
        >API Technology. [mailto:[EMAIL PROTECTED] Behalf Of
        >Daniel Joshua
        >Sent: Tuesday, 27 July, 2004 5:03 PM
        >To: [EMAIL PROTECTED]
        >Subject: [NEWBIE] TomCat 5.x webapps\ROOT
        >
        >
        >Hi,
        >
        >I am using TomCat 5.0.16 and would like to set my root context to
my web
        >app.
        >
        >Currently it defaults to \webapps\ROOT which displays the TomCat
        >examples/docs/etc.
        >How do I make it so that when I enter my web server IP without a
context
        >root,
        >it defaults to my webapp (without copying my webapp to ROOT).
        >
        >I read in the help that I need to set the below, but I am not sure
how to.
        >
        >In \conf\server.xml:
        >
        >        <!-- Define properties for each web application.  This is
only
        >needed
        >             if you want to set non-default properties, or have web
        >application
        >             document roots in places other than the virtual host's
appBase
        >             directory.  -->
        >
        >        <!-- Tomcat Root Context -->
        >        <!--
        >          <Context path="" docBase="ROOT" debug="0">
        >        -->
        >
        >Thanks.
        >
        >
        >Regards,
        >Daniel
        >
        >
        >
        >


___________________________________________________________________________
        To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
        of the message "signoff SERVLET-INTEREST".

        Archives:
http://archives.java.sun.com/archives/servlet-interest.html
        Resources:
http://java.sun.com/products/servlet/external-resources.html
        LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


___________________________________________________________________________
        To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
        of the message "signoff SERVLET-INTEREST".

        Archives:
http://archives.java.sun.com/archives/servlet-interest.html
        Resources:
http://java.sun.com/products/servlet/external-resources.html
        LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
*********************************************************************
Disclaimer: The information in this e-mail and any attachments is
confidential / privileged. It is intended solely for the addressee or
addressees. If you are not the addressee indicated in this message, you may
not copy or deliver this message to anyone. In such case, you should destroy
this message and kindly notify the sender by reply email. Please advise
immediately if you or your employer does not consent to Internet email for
messages of this kind.
*********************************************************************

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to