#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    UK
    Posts
    0
    Rep Power
    0

    Apache + JServ + Win


    Has anyone else set this up?
    If I type in the URL:
    http://localhost/jserv/
    then I get the JServ stats page.
    But how do I fire up the example (IsItWorking.class)?
    Do I have to modify the .properties and .conf files?

    Any pointers to step by step info on how to create a simple "Hello World" servlet and then fire it up with JServ+Apache+Win would be appreciated.

    Steve.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Iassy - Romania
    Posts
    2
    Rep Power
    0

    Smile I guess you've figure it out by now but anyway here it is:


    Basicaly what you'll need to do is:
    Stage 1:
    install Apache
    configure Apache
    install Tomcat
    configure Tomcat
    install "mod_jk.dll "
    connect Tomcat to Apache using the "mod_jk.dll" (Tomcat will provide a "mod_jk.conf" for you to copy/paste into Apache's "httpd.conf")

    Stage 2:
    Define a Virtual Host in Apache's "httpd.conf" (ApacheHome/conf)
    Define a Host in Tomcat's "Server.xml" (TomcatHome/conf)

    Stage 3:
    Restart Apache and Tomcat

    Stage 4:
    create in the VirtualHostDocRoot directory the following directories : "/servlet", "/Web-Inf/classes" and "/Web-Inf/jsp"
    copy the "web.xml" file from one of the tomcat examples dir's to the "/Web-Inf/" dir
    copy your servlets into the "/Web-Inf/classes" dir
    now, to execute the servlet open a browser and type:
    theAddressYouDefinedInApachehttpd.conf/servlet/ServletName
    like:
    www.test.com/servlet/Login

    For more information on the steps above surf the Apache and Tomcat documentation
    Good Luck!
    Peter.

IMN logo majestic logo threadwatch logo seochat tools logo