Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

my first jsp can not display(http status 500)

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,Joe Broderick
i think may IIS conflict with Tomcat.I set up the IIS in my win2000.may this problem.
 
Joe Broderick
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic