May 9th, 2005, 10:34 PM
RMIServiceExporter and Spaces in URLs = BOOM
Spring version 1.1.5
When using Tomcat 5.5 on Windows with the RMIServiceExporter, I get the following error:
java.net.MalformedURLException: no protocol: 5.5/webapps/report/WEB-INF/classes/
Tomcat is installed at "C:\dev\Tomcat 5.5" Notice that the space in the file path seems to be screwing up the RMI export. This goes along with the following thread I found:
So, it seems that when your app server has a space in it, the Naming lookup is blowing up.
This seems like a bug. Anything I can do about it other than JIRA it?
May 11th, 2005, 01:23 AM
It would help if you post the full stack trace.
May 25th, 2005, 08:50 AM
Well, this doesn't seem to be a Spring issue but rather one of the JDK's RMI subsystem...
In general, avoid spaces in file paths at at any cost when you're dealing with Java applications - a common advice in Java land for years, actually! While spaces in paths might work sometimes, they can cause quite a lot of headache in various places.