4 Replies Latest reply on Oct 29, 2009 6:50 AM by Thomas Goettlich

    deploy unpacked wars in external directory

    Thomas Goettlich Novice

      Hi,

      I have a maven project that contains a web module along with several other jars. The jars are deployed as an EAR into deploy/ but the war should not, for development reasons (changing the pages should not require a rebuild).

      So I added the war directory to in jboss-service.xml. The structure is <project dir>/src/main/webapp/myapp.war and I registered <project dir>/src/main/webapp/.

      However, on startup I get:

      19:26:49,764 ERROR [ContextConfig] Exception fixing docBase: {0}
      java.util.zip.ZipException: The system can't find the given path (this might not be fully correct, since I translated it from the German message)
       at java.util.zip.ZipFile.open(Native Method)
       at java.util.zip.ZipFile.<init>(ZipFile.java:203)
       at java.util.jar.JarFile.<init>(JarFile.java:132)
       at java.util.jar.JarFile.<init>(JarFile.java:70)
       at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:56)
       at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:41)
       at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:78)
       .....


      What am I missing?