Results 1 to 3 of 3

Thread: RMIServiceExporter and Spaces in URLs = BOOM

  1. #1
    Join Date
    Nov 2004
    Posts
    17

    Default 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:

    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:

    http://forum.java.sun.com/thread.jsp...eadID= 372925

    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. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    335

    Default

    It would help if you post the full stack trace.

  3. #3
    Join Date
    Aug 2004
    Location
    Linz, Austria
    Posts
    391

    Default

    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.

    Juergen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •