Urgent Help Me Out..

Discussions

Web tier: servlets, JSP, Web frameworks: Urgent Help Me Out..

  1. Urgent Help Me Out.. (4 messages)

    Hi,
      I am using tomcat4.0.3 version and when i want to create a folder of my own for the development purpose I need to set up a piece of code in server.xml file.I have given the following code as below

    <Context path="/myapp" docBase="myapp" debug="0" reloadable="false">
    </Context>

    Still my folder "myapp" is not able to be recognized by the server. When i access the files in this folder it says file not found.


           Please help me out.

    With Regards,
    Sai

    Threaded Messages (4)

  2. Urgent Help Me Out..[ Go to top ]

    try this in server.xml

    <Context path="/myapp" docBase="myapp" debug="0" reloadable="true" privileged="true"/>

    don't end the tag </Context> it is already in the file at the end

    <Context path="/myapp" docBase="myapp" debug="0" reloadable="false">
    </Context>
  3. Re:Urgent Help Me Out..[ Go to top ]

    Hi,
       I am sorry to say that i am unable to solve the problem even though i have specified what you have given.Please suggest me one more.

    With Regards,
    Sai
  4. Re:Urgent Help Me Out..[ Go to top ]

    /myapp means u have myapp under ur current directory. Make sure u know that ur current path is proper. Just chk if tomcat is looking in right folder for myapp.
  5. Re:Urgent Help Me Out..[ Go to top ]

    Typically, if your /myapp is not located at:
    C:\YourTomcatDirectory/webapps/myapp, use

            <!-- Tomcat Sample Context -->
            <Context path="/myapp"
                     docBase="myapp"
                     debug="0"
                     privileged="true"/>

    If your application is NOT under the tomcat webapps
    directory use


            <!-- Tomcat Sample Context -->
            <Context path="/myapp"
                     docBase="C:\Myapp"
                     debug="0"
                     privileged="true"/>

    :)