Please help me with Tomcat!
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:
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
Comments on this post
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:
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:
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.