Community
Participate
Working Groups
Created attachment 183783 [details] A simple war file, contains a manifest, html file and no web.xml This would appear to be a problem with Virgo as we never get to the point of actually installing the bundle in OSGi. I believe this is a disjoin between using the extender model to deploy apps and not being able to transform the war into a bundle to deploy it for the extender in Jetty to pick it up and do the transform. The exception thrown is: [2010-11-24 17:04:48.276] fs-watcher org.eclipse.virgo.medic.eventlog.default HD0001I Hot deployer processing 'INITIAL' event for file 'simple-war.war'. [2010-11-24 17:04:48.276] fs-watcher o.e.virgo.kernel.deployer.hot.HotDeploymentFileSystemListener ApplicationConditionallyDeploying path '/Users/chrisfrost/Repos/eclipse/jetty-server/build-jetty-server/target/package-expanded/virgo-jetty-server-2.2.0.M01/pickup/simple-war.war'. [2010-11-24 17:04:48.281] fs-watcher org.eclipse.virgo.medic.eventlog.default DE0701E Cannot determine the artifact identity of the file '/Users/chrisfrost/Repos/eclipse/jetty-server/build-jetty-server/target/package-expanded/virgo-jetty-server-2.2.0.M01/pickup/simple-war.war'. [2010-11-24 17:04:48.282] fs-watcher System.out org.eclipse.virgo.kernel.deployer.core.DeploymentException: Cannot determine the artifact identity of the file '/Users/chrisfrost/Repos/eclipse/jetty-server/build-jetty-server/target/package-expanded/virgo-jetty-server-2.2.0.M01/pickup/simple-war.war' In the case of war files, we need a way of detecting them and programtically getting the relavent RFC66 impl to do the transform. This is how Gemini Web works.
This is not currently supported in Jetty and is being discussed on the Jetty dev list.
Adding a dependency on the bug to support war deployment.
*** This bug has been marked as a duplicate of bug 336955 ***
Not actually a dup of bug 336955 as when that bug is fixed, we'll still need to decide how to handle WAR files with no web.xml. Tomcat supports this but Jetty doesn't and doesn't have to as it's not required in the servlet spec. Jetty are not particularly interested in changing this behaviour. So the fix to this bug is either to generate an "empty" web.xml in Virgo or to document the behaviour as a "known issue". No real applications should be impacted, only trivial tests.
This has been fixed in Jetty and will just work once Virgo Jetty supports War files at all.