URISyntaxException Starting Jboss

I recently encountered the following error:
Failed to deploy: file:/C:/Documents and Settings/jbossSpaces/out/artifacts/jbossSpaces_ear_exploded.ear/: java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/jbossSpaces/out/artifacts/jbossSpaces_ear_exploded.ear/

Moving the project to c:\\ solved it for me.

Turns out that Jboss can't handle spaces in the path so always make sure that you use a path without any spaces!