Java .war application with Jetty.

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 3
Joined: 07 Feb 2014, 19:39

Java .war application with Jetty.

16 Mar 2015, 12:19

I have a Play framework application that I would like to deploy on my IIS with WS 2012 R2. I use the play2war (https://github.com/play2war/play2-war-plugin) to generate a .war file for my application.

I followed to introduction on the Helicon Site on how to setup Java application with Jetty, but when I deploy my .war file I always end up with this:
https://imgur.com/f2nf6Pr

Am I doing something wrong or is the .war file not correct?

Below is the web.config file I am using.

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <heliconZoo>
      <clear />
      <application name="tomcat.project" >
        <environmentVariables>
          <!-- Uncomment line below if you want to set single WAR file -->
          <!-- or specific directory with Java application to run -->
          <!-- <add name="WAR_FILE" value="my_application.war" /> -->

        <add name="WAR_FILE" value="ROOT.war" />
      </environmentVariables>
      </application>
    </heliconZoo>
    <handlers>
      <remove name="tomcat.project#x86"/>
      <remove name="tomcat.project#x64"/>
      <add name="tomcat.project#x86" scriptProcessor="java.tomcat.7"  path="*" verb="*" modules="HeliconZoo_x86" preCondition="bitness32" resourceType="Unspecified" requireAccess="Script" />
      <add name="tomcat.project#x64" scriptProcessor="java.tomcat.7"  path="*" verb="*" modules="HeliconZoo_x64" preCondition="bitness64" resourceType="Unspecified" requireAccess="Script" />
    </handlers>
  </system.webServer>
</configuration>

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Java .war application with Jetty.

17 Mar 2015, 10:09

According from what I can see in web.config you are actually using Java Tomcat project and not Java Jetty as you saying. Well, actually both options should work, but it depends on how you have it installed. The Tomcat project template is pretty automatic. You just use Web Platform Installer, to install Java Tomcat Project in a site, this will also install all requirements, the on a home of the project you will have an option to select a WAR file. You need to copy your WAR file into the location of web site, update the page, new war file will appear, select it and apply. I just tried this with Apache sample war and it worked. Please try: https://tomcat.apache.org/tomcat-7.0-doc/appdev/sample/

User avatar
Posts: 27
Joined: 13 Apr 2015, 03:03

Re: Java .war application with Jetty.

13 Apr 2015, 03:21

Thanks you ;)

Educa

User avatar
Posts: 1
Joined: 16 Apr 2015, 12:17

Re: Java .war application with Jetty.

16 Apr 2015, 12:20

I need thiss!! Thanks :P

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 12 guests