aspose file tools*
The moose likes Tomcat and the fly likes Tomcat error 500? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat error 500?" Watch "Tomcat error 500?" New topic

Tomcat error 500?

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
Just installed Apache and Tomcat. Everything seems to work ok, however I wanted to test out Tomcat and put a simple jsp file http://localhost:8080/jsp-examples/o.jsp and get this error:

What does this error mean? Do I need to reinstall my JDK?

All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

There are two problems:


This is a JRE, not a JDK, so you (Tomcat) will not be able to compile JSP's. So alter JAVA_HOME to point to a JDK. If you've already installed Tomcat 5 as a Service, try uninstalling and re-installing, this time making sure Tomcat picks the JDK for JAVA_HOME.

the second problem is:
class file has wrong version 48.0, should be 47.0

I'm not sure of the exact reason, but this normally happens when people start mixing JDK 1.3 and JDK 1.4
Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
thanks Mike,
but after reinstalling Tomcat and making sure I chose JDK directory, I got the same error -- it still says "bad class file: C:\Program Files\Java\j2re1.4.2_03\lib\rt.jar(java/lang/Object.class)." How can I change my JAVA_HOME for Tomcat manually?
I agree. Here's the link:
subject: Tomcat error 500?
Similar Threads
error in running the jsp
Tomcat Setup and a JSP question
Jsp Error 500
Multiple forms in a single JSP page
Error while executing JSP programs