Announcement Announcement Module
No announcement yet.
RMIServiceExporter and Spaces in URLs = BOOM Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • RMIServiceExporter and Spaces in URLs = BOOM

    Spring version 1.1.5
    JDK 1.5.0_01

    When using Tomcat 5.5 on Windows with the RMIServiceExporter, I get the following error: 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?

  • #2
    It would help if you post the full stack trace.


    • #3
      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.