Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1128

Deploy failed when jar-path contains a plus-sign or an exclamation point

XMLWordPrintable

    • Hide

      1. Change the path to contain a plus sign or an exclamation point
      2. Start the application

      Show
      1. Change the path to contain a plus sign or an exclamation point 2. Start the application
    • Workaround Exists
    • Hide

      Don't use a path containing exclamation points or plus signs.

      Show
      Don't use a path containing exclamation points or plus signs.

      When the jar-path contains a plus or an exclamation point then the deploy of the jar failed with a FileNotFound-Exception:

      D:\tmp\lauf\client N!P\bin>"C:\Program files (x86)\Java\jdk1.7.0_02\bin\java" -Xmx500M -jar startclient.jar
      07.05.12 12:14 INFO WELD-000900 1.1.8 (Final) [org.jboss.weld.Version]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:14 TRACE scanning: file:/D:/tmp/lauf/client N [org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler]
      07.05.12 12:14 TRACE archive: D:\tmp\lauf\client N [org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler]
      07.05.12 12:14 WARN could not read entries [org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler]
      java.io.FileNotFoundException: D:\tmp\lauf\client N (Das System kann die angegebene Datei nicht finden)
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:214)
      at java.util.zip.ZipFile.<init>(ZipFile.java:144)
      at java.util.zip.ZipFile.<init>(ZipFile.java:158)
      at org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler.handleArchiveByFile(FileSystemURLHandler.java:71)
      at org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler.handle(FileSystemURLHandler.java:58)
      at org.jboss.weld.environment.se.discovery.url.URLScanner.scan(URLScanner.java:102)
      at org.jboss.weld.environment.se.discovery.url.WeldSEUrlDeployment.<init>(WeldSEUrlDeployment.java:39)
      at org.jboss.weld.environment.se.Weld.createDeployment(Weld.java:177)
      at org.jboss.weld.environment.se.Weld.initialize(Weld.java:127)
      at de.nupis.kernel.plugins.Pluginzentrale.ladePlugins(Pluginzentrale.java:216)
      at de.nupis.kernel.Kernel.startePluginzentrale(Kernel.java:137)
      at de.nupis.kernel.Start.starteClient(Start.java:205)
      at de.nupis.kernel.Start.starteKernel(Start.java:126)
      at de.nupis.kernel.Start.main(Start.java:1518)

      As you can see, the path is trimmed at the exclamation point. If the path contains a plus-sign it's converted to a space (an so the resulting path is invalid):

      D:\tmp\lauf\client N+P\bin>"C:\Program files (x86)\Java\jdk1.7.0_02\bin\java" -Xmx500M -jar startclient.jar
      07.05.12 12:19 INFO WELD-000900 1.1.8 (Final) [org.jboss.weld.Version]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 DEBUG URL Type: jar [org.jboss.weld.environment.se.discovery.url.URLScanner]
      07.05.12 12:19 TRACE scanning: file:/D:/tmp/lauf/client N P/bin/de_nupis_einstellungen_client.jar [org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler]
      07.05.12 12:19 TRACE archive: D:\tmp\lauf\client N P\bin\de_nupis_einstellungen_client.jar [org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler]
      07.05.12 12:19 WARN could not read entries [org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler]
      java.io.FileNotFoundException: D:\tmp\lauf\client N P\bin\de_nupis_einstellungen_client.jar (Das System kann den angegebenen Pfad nicht finden)
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:214)
      at java.util.zip.ZipFile.<init>(ZipFile.java:144)
      at java.util.zip.ZipFile.<init>(ZipFile.java:158)
      at org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler.handleArchiveByFile(FileSystemURLHandler.java:71)
      at org.jboss.weld.environment.se.discovery.url.FileSystemURLHandler.handle(FileSystemURLHandler.java:58)
      at org.jboss.weld.environment.se.discovery.url.URLScanner.scan(URLScanner.java:102)
      at org.jboss.weld.environment.se.discovery.url.WeldSEUrlDeployment.<init>(WeldSEUrlDeployment.java:39)
      at org.jboss.weld.environment.se.Weld.createDeployment(Weld.java:177)
      at org.jboss.weld.environment.se.Weld.initialize(Weld.java:127)
      at de.nupis.kernel.plugins.Pluginzentrale.ladePlugins(Pluginzentrale.java:216)
      at de.nupis.kernel.Kernel.startePluginzentrale(Kernel.java:137)
      at de.nupis.kernel.Start.starteClient(Start.java:205)
      at de.nupis.kernel.Start.starteKernel(Start.java:126)
      at de.nupis.kernel.Start.main(Start.java:1518)

              marko.luksa@gmail.com Marko Luksa (Inactive)
              dziegenbalg_jira Dirk Ziegenbalg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: