Tomcat doesn't want to download anything

This isn't strictly jme related, but I am trying to deliver my jme application using WebStart. So I installed tomcat, created a war archive, put all the stuff into it, created a web.xml, signed all my jars and deployed all that to the running tomcat server using the tomcat manger. So, the server side of the application is working - I can access the URL which it is supposed to listen to and I get the desired data.

But when I try to access the jnlp file I get a 404. When I try to run the jnlp file directly it runs, but then fails with an exception which says that it couldn't access the application jar that it should download from the tomcat webapp. Apparently I need to say something in the web.xml with regards to that, but all my reading of tutorials out there doesn't turn up anything conclusive.

The war file looks such that it contains the following files:




The web.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns:xsi="" xmlns="" xmlns:web="" xsi:schemaLocation="" id="WebApp_ID" version="2.5">


































the jnlp file looks like this:

<?xml version="1.0" encoding="utf-8"?>

<jnlp spec="1.0+"






    <homepage href="http://localhost"/>


    <description kind="short">someshortdesc</description>







    <jar href="MyApp.jar"/>

    … all my other jars in a similar way

    <!-- extension name="other_vendor" href="other_vendor.jnlp"/ -->


  <resources os="Windows">

  <j2se version="1.5+"/>

    <nativelib href="windows-native.jar"/>


  <resources os="Mac OS">

    <j2se version="1.5+"/>

    <nativelib href="macos-native.jar"/>


  <resources os="Linux" arch="i386">

    <j2se version="1.5+"/>

    <nativelib href="linux-native.jar"/>


  <application-desc main-class="MyApp"/>



However, if I split things up, and make one server tomcat application (with the part that works as described above), and one client tomcat app, which is simply a war file containing the jnlp file and the jars directly (without any subdirectories), then at least running the jnlp file locally (that is, just doublicking it there in my folder, instead of accessing its URL on the tomcat server) works and I can enjoy both the client side of my app, as well as it successfully talking to the server side.

But I don't think this is the way it's supposed to work. Apparently, if I don't have a web.xml, it defaults to something that happens to work for me, whereas my proper web.xml does something wrong, or omits to do something. Anyone any ideas?