Java .war application with Jetty.
4 posts
• Page 1 of 1
- krunarsson
- Posts: 3
- Joined: 07 Feb 2014, 19:39
Java .war application with Jetty.
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.
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>
Re: Java .war application with Jetty.
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/
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests