• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help in Apache Tomcat for scwcd

 
kaarthik asokkumar
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Suja Mudunuri
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also having the same problem. I am stuck on Page 81 on HFS and JSP book. Somebody please help me go forward.
 
Anant Rao
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Infyniti
 
kaarthik asokkumar
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karthik,

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.

Shourya
 
kaarthik asokkumar
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the reply. I got it fixed i set the catalina home to tomcat 5.0 it worked. Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic