<?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>
< ?xml version="1.0"?>
< !DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
After that navigate to http://localhost/jenkins (not to the root folder). It should work now.
]]>??
]]>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”.
]]>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.
]]>