• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat/iis - not recognizing web.xml file.

 
Dave Bosky
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic