欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

启动JBoss出现“java.net.URISyntaxException: Illegal character in path at index 11”解决

程序员文章站 2024-02-14 17:06:52
...

环境

MyEclipse 8.6 + Jboss 6.0 + JDK 1.6.13

问题

启动Tomcat包如下异常。

解决

Jboss存放路径不能包含中文或者空格。

16:32:21,130 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/invoker state=Create mode=Manual requiredState=Installed: java.net.URISyntaxException: Illegal character in path at index 11: file:/D:/My Software/编程开发/JBoss/jboss-as-distribution-6.0.0.Final/jboss-6.0.0.Final/server/default/deploy/http-invoker.sar/invoker.war/
	at java.net.URI$Parser.fail(URI.java:2809) [:1.6.0_13]
	at java.net.URI$Parser.checkChars(URI.java:2982) [:1.6.0_13]
	at java.net.URI$Parser.parseHierarchical(URI.java:3066) [:1.6.0_13]
	at java.net.URI$Parser.parse(URI.java:3014) [:1.6.0_13]
	at java.net.URI.<init>(URI.java:578) [:1.6.0_13]
	at java.net.URL.toURI(URL.java:918) [:1.6.0_13]
	at org.jboss.vfs.VFS.getChild(VFS.java:174) [jboss-vfs.jar:3.0.0.GA]


参考资料

http://blog.csdn.net/centre10/article/details/6124202