It's not a secret anymore!*
The moose likes JSP and the fly likes my first jsp can not display(http status 500) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "my first jsp can not display(http status 500)" Watch "my first jsp can not display(http status 500)" New topic
Author

my first jsp can not display(http status 500)

eric lee
Ranch Hand

Joined: Nov 04, 2002
Posts: 86
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
Joe Broderick
Greenhorn

Joined: Apr 23, 2003
Posts: 23
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.
eric lee
Ranch Hand

Joined: Nov 04, 2002
Posts: 86
Hi,Joe Broderick
i think may IIS conflict with Tomcat.I set up the IIS in my win2000.may this problem.
Joe Broderick
Greenhorn

Joined: Apr 23, 2003
Posts: 23
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
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Can you get the JSP examples that come with Tomcat to run? Which version of the Java SDK do you have installed?
Bill
eric lee
Ranch Hand

Joined: Nov 04, 2002
Posts: 86
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
Joe Broderick
Greenhorn

Joined: Apr 23, 2003
Posts: 23
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: my first jsp can not display(http status 500)