Jetty
  1. Jetty
  2. JETTY-1439

Space in path causes java.lang.ClassNotFoundException: org.eclipse.jetty.xml.XmlConfiguration

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 7.5.0, 8.0.0
    • Fix Version/s: 7.5.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      Win 7 64Bit, Jetty 7.5 and 8.0
    • Number of attachments :
      0

      Description

      When running Jetty in a path that has a space I get this error:
      java.lang.ClassNotFoundException: org.eclipse.jetty.xml.XmlConfiguration
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at org.eclipse.jetty.start.Main.invokeMain(Main.java:438)
      at org.eclipse.jetty.start.Main.start(Main.java:612)
      at org.eclipse.jetty.start.Main.parseCommandLine(Main.java:265)
      at org.eclipse.jetty.start.Main.main(Main.java:79)
      ClassNotFound: org.eclipse.jetty.xml.XmlConfiguration

      Usage: java -jar start.jar [options] [properties] [configs]
      java -jar start.jar --help # for more information

      This issue was fixed long ago and does not exist in Jetty 7.4.2 but exists in 7.5 and 8.0.

        Activity

        Hide
        Jan Bartel added a comment -

        Do you mean that you have jetty installed in a directory path that contains a space, or do you mean that inside one of the jetty xml config files you have configured a path that contains a space (if the latter, please post the config file)?

        thanks
        Jan

        Show
        Jan Bartel added a comment - Do you mean that you have jetty installed in a directory path that contains a space, or do you mean that inside one of the jetty xml config files you have configured a path that contains a space (if the latter, please post the config file)? thanks Jan
        Hide
        Henry Zaccak added a comment -

        I mean the Jetty folder is in a path like this:
        c:\This Breaks\jetty\

        but this one is okay:
        c:\ThisWorks\jetty\

        In Jetty 7.4.2 they both work fine.

        Show
        Henry Zaccak added a comment - I mean the Jetty folder is in a path like this: c:\This Breaks\jetty\ but this one is okay: c:\ThisWorks\jetty\ In Jetty 7.4.2 they both work fine.
        Hide
        Jan Bartel added a comment -

        Ah. Thanks. Looks like an overzealous recent fix for converting Files to URLs was the culprit. Fixed now.

        Show
        Jan Bartel added a comment - Ah. Thanks. Looks like an overzealous recent fix for converting Files to URLs was the culprit. Fixed now.

          People

          • Assignee:
            Jan Bartel
            Reporter:
            Henry Zaccak
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: