Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat cant find the resources

 
santomh Mclain
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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 ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • 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 Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
inside $catlina_home$/conf/catlina/localhost/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic