Comment déployer une GUERRE qui est à l'intérieur de l'OREILLE comme la racine (/) contexte dans Glassfish?

J'ai une OREILLE de fichier qui contient deux Guerres, war1.la guerre et war2.guerre. Mon application.xml fichier ressemble à ceci:

<?xml version="1.0" encoding="UTF-8"?>
<application version="5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd">
  <display-name>MyEAR</display-name>
  <module>
    <web>
      <web-uri>war1.war</web-uri>
      <context-root>/</context-root>
    </web>
  </module>
  <module>
    <web>
      <web-uri>war2.war</web-uri>
      <context-root>/war2location</context-root>
    </web>
  </module>
</application>

Cette résultats dans war2.la guerre étant disponible sur http://localhost:8080/war2location, ce qui est correct, mais war1.la guerre est sur http://localhost:8080// -- notez les deux barres obliques.

Ce que je fais mal?

Noter que les Guerres " sun-web.xml les fichiers sont ignorés lorsqu'ils sont contenus dans une OREILLE.

OriginalL'auteur Marius Marais | 2008-09-24