File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Help in Apache Tomcat for scwcd Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Help in Apache Tomcat for scwcd" Watch "Help in Apache Tomcat for scwcd" New topic

Help in Apache Tomcat for scwcd

kaarthik asokkumar

Joined: Jan 21, 2005
Posts: 29
guyz i am preparing for scwcd. i installed apache tomcat5 for practice. i did a sample servlet program and an xml mapping but i was not sure where the container is expecting my map nor my servlet file to be. i am getting 404 error. can u please tell me how to start on with apache and where to set classpath and so on. thanks guyz for your help .

SCJP 1.4, SCWCD 1.4,SCBCD 1.3.
Suja Mudunuri

Joined: Jul 28, 2004
Posts: 14
I am also having the same problem. I am stuck on Page 81 on HFS and JSP book. Somebody please help me go forward.

Sujatha Mudunuri<br />SCJP 1.4<br />(Preparing SCWCD 1.4)
Anant Rao
Ranch Hand

Joined: Nov 12, 2004
Posts: 126

First check for ur log file for the error if it gives error abt compatibility package then installCompat zip file that will contain the following list, which are needed when running on J2SE 1.4:
* jmx.jar (Java Management Extensions API 1.2 or later)
* xercesImpl.jar (Xerces XML Parser, version 2.6.2 or later)

In class path add new System variable as
CATALINA_HOME c:\java\tomcat 5.5.4

I hope this will solve ur problem

kaarthik asokkumar

Joined: Jan 21, 2005
Posts: 29
guyz my dir struct is tomcat\webapps\ch1\WEB-INF\classes. I have my xml file in WEB-INF and servlet file in classes. This does not work,
but the tomcat\webapps\servlet-example\WEB-INF\classes which came with tomcat works perfecty fine. I wanted to know if there is any class path that i should set apart for tomcat home.any help will be gr8. thanks
Shourya Kalinga

Joined: Dec 14, 2004
Posts: 19

can you post your web.xml file content here, so that we can understand the problem. I understand that Container is unable to locate your resource.


SCJP 1.4<br />SCWCD 1.4
kaarthik asokkumar

Joined: Jan 21, 2005
Posts: 29
thanks for the reply. I got it fixed i set the catalina home to tomcat 5.0 it worked. Thanks.
I agree. Here's the link:
subject: Help in Apache Tomcat for scwcd
It's not a secret anymore!