• 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

tomcat cant find the resources

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have created OnlineExam.xml(app directory) file and put it inside $catlina_home$/conf/engine name/hostname/ directory in this format



and tried to request few web pages stored in app directory, but tomcat giving the error with error code 404 saying can not find the requested resource.

i suspected on setting inside server.xml and found that the appBase attribute of Host element having the value "webapps"(default app directory). so i changed this value to point E:\java\OnlineExam, after this although tomcat didn't show any error but not any response either(a blank web page).

while, i read tutorial and got that when resources are requested then engine goes inside $catlina_home$/conf/engine name/hostname/ directory and searches the .xml file to get the context root. then why it is not supposed to do so in my case?

any other setting i need to do?

tomcat version 5.5.17

regards
san
[ June 28, 2008: Message edited by: santomh Mclain ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by santomh Mclain:
file and put it inside $catlina_home$/conf/engine name/hostname/ directory in this format



What is the real name of the directory/path where you put the context fragment file?
 
santomh Mclain
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
its OnlineExam, the development directory
[ June 28, 2008: Message edited by: santomh Mclain ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, I mean, where exactly on your machine did you put the xml file?
 
santomh Mclain
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
inside $catlina_home$/conf/catlina/localhost/
reply
    Bookmark Topic Watch Topic
  • New Topic