when i type simple.jsp,got error,I don't know why? need help.Thanks.my simple.jsp put in below folder. C:\Apache Tomcat 4.0\webapps\myJSPApp\simple.jsp ------------------------------------------------- Error message: javax.servlet.ServletException: sun/tools/javac/Main java.lang.NoClassDefFoundError: sun/tools/javac/Main
A few things to look at. First, do you have the web.xml file in the directory of myJSPapp? You need that file and the class folder to have JSP's run. Second, did you start tomcat after making any changes? Often, if you start Tomcat, work on your code, and then run your code, you get errors. Tomcat should be restarted if you are making any changes to beans. If the two above reasons are not the problem, perhaps it is in the code. If you show us your code, I would be willing to help you find errors.
Joined: Nov 04, 2002
Hi,Joe Broderick i think may IIS conflict with Tomcat.I set up the IIS in my win2000.may this problem.
Joined: Apr 23, 2003
I have not run IIs as a web server, so I do not know that much about it. Is tomcat giving you the error, or is IIs giving you the error? I know with Apache, there is a way to set it up as a proxy to send any 8080 requests to Tomcat, but I am not sure how to do it with IIs. Look in the config files to see if you see anything with proxies. Also, try shutting down IIs and then start Tomcat. That might be a good way of testing.