File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat & Error Status 404 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat & Error Status 404" Watch "Tomcat & Error Status 404" New topic
Author

Tomcat & Error Status 404

dodo dimitrius
Greenhorn

Joined: Dec 04, 2001
Posts: 24
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

------------------
mohan kannan
Greenhorn

Joined: Dec 02, 2001
Posts: 26
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

Joined: Dec 02, 2001
Posts: 26
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

Joined: Dec 04, 2001
Posts: 24
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

Joined: Dec 02, 2001
Posts: 26
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

Joined: Dec 04, 2001
Posts: 24
Hi Mohan,
Thanks for your reply.
I fixed the problem.
Tomcat is working.
Regards
Berko
------------------
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat & Error Status 404