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

    Join Date
    May 2001
    Posts
    5
    Rep Power
    0

    Unhappy Please help me with Tomcat!


    Hello all,

    I am a newbie to JSP and Java Servlets. I have a RedHat v6.2 Linux server and I installed Tomcat to the server. The installation was very successful, and I included the tomcat-apache.conf to the httpd.conf. Restarted HTTPD and no errors at all.

    Now I have this test JSP script, I tried to run it:

    http://64.23.60.11/jsp/date.jsp

    It's supposed to load the script, but it prompts to download the script! What's the problem?!

    What could be the possible problems? I chmoded and chowned the JSP files. No result. Making sure the Apache conf files have the necessary commands such as

    AddType text/jsp .jsp
    AddHandler jserv-servlet .jsp

    But afterall I can't find the solution to solve the problem. My dedicated host refuses to help me find out the problem BECAUSE they simply say they can't provide support on the Tomcat software.

    All JSP experts here... any ideas?

    Your help will be much appreciated

    Thank you.

    David

    Comments on this post

    • Gran Roguismo agrees
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    3
    Rep Power
    0

    maybe..


    Ok,
    You might want to try putting your jsp into your webapps/ROOT folder of your Tomcat distro. Then try accessing it with the address you used:
    http://64.23.60.11/jsp/date.jsp

    Good Luck!
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    5
    Rep Power
    0
    Ok I got my colocation host to fix the problem. Now the prompt download problem is over, but another problem arises. Some java classes are not found for some reason:

    http://mass-suicide.com/date.jsp

    Any ideas?
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    Montpellier, France
    Posts
    1
    Rep Power
    0
    You need to place the class file or the JAR file containing the class file for dates.JspCalendar in the WEB-INF/classes directory. Another option is to put the JAR in the WEB-INF/lib directory.

    Sincerely,
    Anthony Eden

IMN logo majestic logo threadwatch logo seochat tools logo