[JBoss JIRA] (WELD-1128) Deploy failed when jar-path contains a plus-sign or an exclamation point
by Dirk Ziegenbalg (JIRA)
Dirk Ziegenbalg created WELD-1128:
-------------------------------------
Summary: Deploy failed when jar-path contains a plus-sign or an exclamation point
Key: WELD-1128
URL: https://issues.jboss.org/browse/WELD-1128
Project: Weld
Issue Type: Bug
Components: Bootstrap and Metamodel API
Affects Versions: 1.1.8.Final
Environment: Windows 7 64 bit, JAVA 7u2, Weld-SE
Reporter: Dirk Ziegenbalg
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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira