• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Tomcat & Error Status 404

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
Could you help me please!
I can start running Tomcat. It displays index.html page. DOS window named "java"(??) is open, with the text:
Starting service Tomcat_Standalone
Apache Tomcat/4.0.1
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
I copied servlet.jar from common/lib directory to the jdk1.3\lib.
When I click on the links(located in the Web applications box), to display jsp or servlet examples, I get page with the message:
Apache Tomcat/4.0.1 - HTTP Status 404 - /jsp/
type Status
message /jsp/
description The requested resource (/jsp/) is not available.
It won't display default index.html page located in the examlpe/jsp/ subdirectory.
I tried to type full path to the index.html file, without clicking on the link, and it is still the same.
Simply, it does not run jsp nor servlets.
I hope you can help me.
Thanks
Berko

------------------
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have u tried, after starting tomcat, opening a browser and
typed http://localhost:8080
Tomcat default index.html should open
u can able to run example programs on servlets and jsps
pl try and reply
regards
mohan
 
mohan kannan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
have u included servlet.jar file copied from tomcat/lib to jdk/lib in the classpath
try after including this in autoexec.bat and run examples
hope this helps
mohan
 
dodo dimitrius
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mohan,
Thanks for your reply.
I already did everything what you sugested.These are the lines from my autoexec.bat file:
set path=c:\jdk1.3\bin;%path%
set classpath=c:\jdk1.3\lib;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\lib\servlet.jar
set java_home=c:\jdk1.3
set catalina_home=c:\jakarta-tomcat-4.0.1
I copied servlet.jar and tools.jar to the common/lib subdirectory, and tools.jar to the Tomcat's lib/ subdirectory.
I can start Tomcat, and load default index.html page, and that is all I can do. It won't run jsp nor servlets.It won't display default pages from jsp nor servlet subdirectories(index.html). It displays Error status 404.
I don't know what to do.
Berko
------------------
 
mohan kannan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
you have to include tomcat's lib in your classpath
the settings in autoexec.bat for running tomcat in my pc are
set classpath=.;c:\jdk1.3\lib;c:\jdk1.3\lib\servlet.jar;c:\jakarta-tomcat-4.0.1\lib;
SET JAVA_HOME=C:\JDK1.3
SET CATALINA_HOME=C:\JAKARTA-TOMCAT-4.0.1
include c:\jakarta-tomcat-4.0.1\lib; in yr classpath
and try
regards
mohan
 
dodo dimitrius
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mohan,
Thanks for your reply.
I fixed the problem.
Tomcat is working.
Regards
Berko
------------------
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic