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.
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.
William Brogden
,
Author and all-around good cowpoke
when i run Tomcat,it say port already in use. whatever i change port( server.xml) to 8080 or 80,it does not work.my win2000 use both port? my jdk is 1.4.0.2
Chances are IIs is using port 8080, and not allowing Tomcat to use it. The easiest way is to get IIs to stop running. Or you can change the port that Tomcat uses to something besides 8080 or 80.
Post by:autobot
When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad:
a bit of art, as a gift, the permaculture playing cards