• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

jdk5.0 with tomcat 5.5 error 404

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have downloaded the JDK 5.0 Update 6 without netbeans and installed it to <c:\programfiles\java\jdk1.5.0_06> on(xp home).java -version works in comm.

I have set JAVA_HOME to the java installation dir <C:\programfiles\java\jdk1.5.0_06> and added bin to the path <C:\programfiles\java\jdk1.5.0_06\bin>.

I have also downloaded and installed apache-tomcat-5.5.15 to
<c:\tomcat5.5.> Tomcat has found the puplic jre at
<C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll> & java classpath <C:\Tomcat 5.5\bin\bootstrap.jar>

in the browser the url http://localhost:8080/index.jsp, serves the tomcat welcom page, but if I try to access any jsp examples I get:

HTTP Status 404 - /jsp-examples/

type Status report

message /jsp-examples/

description The requested resource (/jsp-examples/) is not available.
Apache Tomcat/5.5.15

I have also tried copying the tools.jar from the sdk lib to tomcat common/lib and set CATALINA_HOME to <c:\tomcat5.5>

can anyone help?
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a Tomcat forum that you will probably find more helpful in this situation. I'll move this post for you...
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tomcat has found the puplic jre at
<C:\Program Files\Java\jre1.5.0_06\bin\client\jvm.dll> & java classpath


That is not good - Tomcat should be reporting that it found the JDK path. The JRE path does not contain tools.jar so it can't compile JSP.
You should not have to do any copying of JDK files to tomcat directories, it should work "out of the box" if JAVA_HOME is correct.
Bill
 
I have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!