Comments on: Deploying Java Servlet applications on Windows with IIS http://www.helicontech.com/articles/deploying-java-servlet-applications-on-windows-with-iis/ Web Server Enhancements Thu, 07 Jun 2012 15:10:57 +0000 hourly 1 https://wordpress.org/?v=5.2.4 By: Slov http://www.helicontech.com/articles/deploying-java-servlet-applications-on-windows-with-iis/#comment-38826 Thu, 07 Jun 2012 14:58:14 +0000 http://www.helicontech.com/articles/?p=926#comment-38826 A bug with tags. Try again:

<?xml version=”1.0″?>
<!DOCTYPE Configure PUBLIC “-//Jetty//Configure//EN” “http://www.eclipse.org/jetty/configure.dtd”>

<Configure class=”org.eclipse.jetty.webapp.WebAppContext”>
<Get name=”securityHandler”>
<Set name=”loginService”>
<New class=”org.eclipse.jetty.security.HashLoginService”>
<Set name=”name”>Test Realm</Set>
</New>
</Set>
</Get>

<Set name=”contextPath”>/jenkins</Set>
<Set name=”war”>jenkins.war</Set>
<Set name=”tempDirectory”>jenkins</Set>
</Configure>

]]>
By: Slov http://www.helicontech.com/articles/deploying-java-servlet-applications-on-windows-with-iis/#comment-38825 Thu, 07 Jun 2012 12:48:51 +0000 http://www.helicontech.com/articles/?p=926#comment-38825 I think installing Jenkins on IIS may deserve a separate article.
First you will need to upgrade your Jetty installation as we have fixed some functions. Just delete C:\jetty folder and install again using Helicon Zoo feed.
Then you will need to use contexts folder, instead of setting WAR file explicitly as Jenkins require additional configurations.
Please remove all “environmentVariables” from web.config, create contexts folder, and create context.xml file in this folder with the following content:

< ?xml version="1.0"?>
< !DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">





Test Realm


/jenkins
jenkins.war

After that navigate to http://localhost/jenkins (not to the root folder). It should work now.

]]>
By: jules http://www.helicontech.com/articles/deploying-java-servlet-applications-on-windows-with-iis/#comment-38814 Fri, 01 Jun 2012 13:14:46 +0000 http://www.helicontech.com/articles/?p=926#comment-38814 I installed on a Windows 7 64 bit machine and then downloaded the jenkins.war file and tried to deploy it:
But I get:
HTTP ERROR: 503
Problem accessing /test. Reason:
Service Unavailable
Powered by Jetty://

??

]]>
By: Slavik http://www.helicontech.com/articles/deploying-java-servlet-applications-on-windows-with-iis/#comment-38804 Fri, 18 May 2012 14:26:31 +0000 http://www.helicontech.com/articles/?p=926#comment-38804 Hello.
Please try and use CONTEXT_PATH variable as follows:
<add name="CONTEXTS_PATH" value="/appname" />

Make sure “appname” is an application. If it’s not, open IIS manager, navigate to that folder and in the context menu click “Convert to Application”.

]]>
By: Peter http://www.helicontech.com/articles/deploying-java-servlet-applications-on-windows-with-iis/#comment-38739 Thu, 17 May 2012 14:33:40 +0000 http://www.helicontech.com/articles/?p=926#comment-38739 Downloaded and installed as described in the article (http://www.helicontech.com/articles/deploying-java-servlet-applications-on-windows-with-iis/).

However for some weird reason I can successfully view the Java app via IIS when using http://localhost/appname but if I do the same thing http:///appname on another machine I get a a 404 from IIS and if I do it on the server itself I get a 404 from Jetty instead.

This is running on a 64bit Win2008R2 Std server VM with an IIS app set up to use a ASP.NET 4.0 integrated app pool.
The folder the IIS app points to contains the contents of the WAR file, i.e. \web-inf and \xforms-jsp and the web.config with the described contents from the article.

Any ideas on what could be wrong would be much appreciated.

]]>