Thread: Need to host a web server for hw assignment

  1. #1
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901

    Need to host a web server for hw assignment

    I have to do a HW assignment that either can be hosted on the school's web server or my own. It's for a database and it uses mysql, apache tomcat, and a jsp file for a web interface. I basically want to allow one connection with a password to my server so that I can present it to the teacher when he needs to grade it. I am new to web serving so I don't know how to actually link the whole thing and put it on a site. And I would like to do it using my comptuer rather than some pay for domain. Can anyone steer me in the right direction

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Why not test locally, then upload to your school's webserver?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    I'm trying to test locally, like have it show up on a website, so if I sent it to the schools' web server I know it works. I don't know how to set up webserving at all.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Have you installed the necessary software yet?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    I have my mysql database setup, I can make the tables alright, I just set up apache tomcat and started the service but when I try to browse localhost I get a screen with this on it.

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Could it be that you did not configure web.xml and context.xml correctly, as stated in Deployment?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  7. #7
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    The folder containing your content doesn't exist according to that error message, reconfigure it so that it points to an existing folder that you plan on putting content in.

  8. #8
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    I assume I do that through the server.xml with

    Code:
          <Host name="localhost"  appBase="G:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps"
                unpackWARs="true" autoDeploy="true"
                xmlValidation="false" xmlNamespaceAware="false">
    still doesn't work.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. server client application - (i really need your help)
    By sarahnetworking in forum C Programming
    Replies: 3
    Last Post: 03-01-2008, 10:54 PM
  2. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  3. free web host with php?
    By Xterria in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 08-22-2002, 02:25 PM
  4. Web Hosting SQL Server
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 06-14-2002, 07:00 PM
  5. Replies: 1
    Last Post: 06-07-2002, 11:22 AM