aspose file tools*
The moose likes Tomcat and the fly likes tomcat cant find the resources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat cant find the resources" Watch "tomcat cant find the resources" New topic
Author

tomcat cant find the resources

santomh Mclain
Greenhorn

Joined: Jun 25, 2008
Posts: 19
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

Joined: Dec 11, 2004
Posts: 13410

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?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
santomh Mclain
Greenhorn

Joined: Jun 25, 2008
Posts: 19
its OnlineExam, the development directory
[ June 28, 2008: Message edited by: santomh Mclain ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

No, I mean, where exactly on your machine did you put the xml file?
santomh Mclain
Greenhorn

Joined: Jun 25, 2008
Posts: 19
inside $catlina_home$/conf/catlina/localhost/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat cant find the resources