Forums Register Login

my first jsp can not display(http status 500)

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Hi,Joe Broderick
i think may IIS conflict with Tomcat.I set up the IIS in my win2000.may this problem.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Can you get the JSP examples that come with Tomcat to run? Which version of the Java SDK do you have installed?
Bill
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
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
https://gardener-gift.com


reply
reply
This thread has been viewed 1623 times.
Similar Threads
java.lang.NoClassDefFoundError: sun/tools/javac/Main
JAI error :EXCEPTION_FLT_DIVIDE_BY_ZERO
what does this error message mean
Error While Starting tomcat
Error in compiling a source code *.java
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:35:13.