• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help in Apache Tomcat for scwcd

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic