Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes tomcat/iis - not recognizing web.xml file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat/iis - not recognizing web.xml file." Watch "tomcat/iis - not recognizing web.xml file." New topic
Author

tomcat/iis - not recognizing web.xml file.

Dave Bosky
Ranch Hand

Joined: Dec 16, 2003
Posts: 72
I'm using tomcat 4+ with IIS 5.
I have a site called myweb within the site I have a WEB-INF directory that contains a web.xml file. For some reason Tomcat is not recognizing this web.xml nor any of my class files I have in WEB-INF/classes directory.
All my .jsp files process fine. Do I need to make any changes to Tomcat for it to see the WEB-INF directories in each of my sites?
Thanks,
Dave
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

So if you request:
http://www.mysite.com/abc/foo.jsp

that works.

But:
http://www.mysite.com/abc/servlet/some.class.name

it does not?

if so: http://faq.javaranch.com/view?InvokerServlet
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
On startup, Tomcat should recognize any directory under webapps that contains a WEB-INF and web.xml file as a web application.
Does your myweb application show up on the Tomcat Manager screen as a recognized application?
Is this the directory structure?
Dave Bosky
Ranch Hand

Joined: Dec 16, 2003
Posts: 72
Do I need to put my entire website under 'tomcat/webapps/mysite' directory?
I use IIS and would like to keep the website structure under 'inetpub/wwwroot/mysite'. Can I change some mappings in tomcat to look for webapps in 'inetpub/wwwroot/' instead of 'tomcat/webapps/'?
There must be something simple I'm overlooking here but....
Thanks,
Dave
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
I believe you can put the application anywhere you want using a Context element in your server.xml. There is a discussion of this in your Tomcat installation under tomcat-docs/config/context.html
Bill
 
jQuery in Action, 2nd edition
 
subject: tomcat/iis - not recognizing web.xml file.