Deploy War File in Microsoft IIS 7

26,547

Solution 1

You can't. You need a Java EE Web Container such as Tomcat or JBoss in order to do so. IIS can just act as a front facing proxy for the stuff hosted through the WAR file.

What you probably need is a way to connect IIS and Tomcat together so that requests for any dynamic resources such as JSPs and Servlets can be delegated to Tomcat.

The following link explains how to do so in detail.

http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html

Solution 2

Please read this article: Deploying Java Servlet applications on Windows with IIS The Java is running on Jetty and IIS is used as a proxy, but in this solution all components are fit together to make it look and feel like it is built-in IIS feature of running WAR files.

Share:
26,547
user1176926
Author by

user1176926

Updated on July 09, 2022

Comments

  • user1176926
    user1176926 almost 2 years

    I would like to ask how can I deploy a war file to Microsoft IIS 7? Thanks in advance.

  • user1176926
    user1176926 over 12 years
    I had an idea to run tomcat seperadly, start my servlet and send a redirect from my website (using javascript) to that servlet, it should work even without creating any connectino between tomcat and iis, no?
  • adarshr
    adarshr over 12 years
    You wanted to use IIS, so I told you how to do it. If you don't want to use IIS, servlets still work fine.
  • user1176926
    user1176926 over 12 years
    OK, i just thought that initialy the iis will be capable to run java code, but if it doesn't so i think it is easier to just install tomcat seperadly from the iis and run both of them togheter