Sunday, August 23, 2009

Chapter 04: Know your Server

There are two things you must know if you have a server.

  1. Where to place the files (or programs) in the server.
  2. How to access them from a web browser.
We are gonna write a sample HTML program and try to do the above steps.
In apache Tomcat, we have to place the files in the webapps folder of tomcat's installation directory. For me, it's F:\tomcat 6.0.
So, if your application name is "demo", then create a folder called "demo" under the following directory.
F:\Tomcat 6.0\webapps\demo
View the below video for understanding more.

Download Video Source: High-Quality : 7 MB

Click below arrow to download….


11 comments:

  1. This video not found!
    Thanks.

    ReplyDelete
  2. Hi,

    i have tried created a html file inside demo. But when i click the demo in apache, it is throwing

    HTTP status 404 ERROR.

    Could you please advice.

    Thanks & Regards,
    Yaser

    ReplyDelete
  3. hi
    when i open my server it showing d error message as "403 Access Denied" but i've given correct username & password.
    Using:-
    Server : Tomcat 7.0.2
    O.S : Windows 7
    Browser : Firefox 6.0.2
    how to clear it? reply to stu22.kamal@gmail.com as soon as possible please...

    ReplyDelete
  4. Kamal

    your demo folder index.html
    ok

    ReplyDelete
  5. Wht URL are you trying to open Kamal?

    ReplyDelete
  6. hi friends,
    i create html file inside the demo folder.And run the demo from tomcat manager.I set the class path in environment variable.But the following error generated.

    HTTP Status 404 - /demo/
    type Status report
    message /demo/
    description The requested resource (/demo/) is not available.
    Apache Tomcat/6.0.16

    pls help me frnds....

    thnku.

    ReplyDelete
  7. Mahesh, tell me the name of the HTML file you are trying to open with the web browser, when you got this error.

    ReplyDelete
  8. HTTP Status 404 - /demo/
    type Status report
    message /demo/
    description The requested resource (/demo/) is not available.
    Apache Tomcat/6.0.16

    pls help me frnds....

    ReplyDelete
  9. Alrite...i see many people posting the same error. Guess I did not misguide in the video demonstration.

    there should be a file called index.html inside the demo folder, without which the above URL will not open a file.

    please check again and reply back if it solves your problem.

    ReplyDelete
  10. sir pls add java front-end and sql back-end connection..

    ReplyDelete
  11. hi vignesh i cant download the file from this chapter.pls se that

    ReplyDelete

Our Google Group

Our Facebook Group