Jetty
  1. Jetty
  2. JETTY-1166

java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Doc uments and Settings/karltdav/.m2/repository/org/mortbay/jetty/jetty-maven-plugin /7.0.1.v20091125/jetty-maven-plugin-7.0.1.v20091125.jar

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 7.0.1
    • Fix Version/s: None
    • Component/s: Maven
    • Labels:
      None
    • Environment:
      Win XP
      maven 2.2.1
    • Number of attachments :
      0

      Description

      See http://www.mail-archive.com/users@maven.apache.org/msg58572.html and http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4466485 for a background.

      2010-01-01 20:54:50.593:INFO::jetty-7.0.1.v20091125
      2010-01-01 20:54:50.640:WARN::Failed startup of context JettyWebAppContext@8825a
      5@8825a5/zipcodeservice,file:/C:/projects/ext/davidkarlsen.com/zipcodeservice/zi
      pcodeservice-war/src/main/webapp/,file:/C:/projects/ext/davidkarlsen.com/zipcode
      service/zipcodeservice-war/src/main/webapp/
      java.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Doc
      uments and Settings/karltdav/.m2/repository/org/mortbay/jetty/jetty-maven-plugin
      /7.0.1.v20091125/jetty-maven-plugin-7.0.1.v20091125.jar
              at java.net.URI$Parser.fail(URI.java:2809)
              at java.net.URI$Parser.checkChars(URI.java:2982)
              at java.net.URI$Parser.parseHierarchical(URI.java:3066)
              at java.net.URI$Parser.parse(URI.java:3014)
              at java.net.URI.<init>(URI.java:578)
              at java.net.URL.toURI(URL.java:918)
              at org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfi
      guration.java:81)
              at org.mortbay.jetty.plugin.MavenWebInfConfiguration.preConfigure(MavenW
      ebInfConfiguration.java:117)
              at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:347
      )
              at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContex
      t.java:102)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
      Cycle.java:55)
              at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCol
      lection.java:165)
              at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(Con
      textHandlerCollection.java:162)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
      Cycle.java:55)
              at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCol
      lection.java:165)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
      Cycle.java:55)
              at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrappe
      r.java:92)
              at org.eclipse.jetty.server.Server.doStart(Server.java:228)
              at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:69)
              at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
      Cycle.java:55)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMo
      jo.java:433)
              at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.
      java:377)
              at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:546)
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
      nManager.java:490)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
      ultLifecycleExecutor.java:694)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
      Goal(DefaultLifecycleExecutor.java:569)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
      ltLifecycleExecutor.java:539)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
      dleFailures(DefaultLifecycleExecutor.java:387)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
      ts(DefaultLifecycleExecutor.java:348)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
      fecycleExecutor.java:180)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
              at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
      0)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
              at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
              at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      
              at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      2010-01-01 20:54:50.781:INFO::Started SelectChannelConnector@0.0.0.0:8080
      [INFO] Started Jetty Server
      [INFO] Starting scanner at interval of 10 seconds.
      

        Issue Links

          Activity

          Hide
          David J. M. Karlsen added a comment -

          I've verified that this is due to spaces in the path to localRepository - the suggested workaround in the sun java bug report should work.

          Show
          David J. M. Karlsen added a comment - I've verified that this is due to spaces in the path to localRepository - the suggested workaround in the sun java bug report should work.
          Hide
          Jan Bartel added a comment -

          This issue is the same as that reported in JETTY-1063. I don't immediately see how any workaround in jetty could overcome the problem in the maven code for the reasons given in the bug above - if you can, please do provide a patch!

          cheers
          Jan

          Show
          Jan Bartel added a comment - This issue is the same as that reported in JETTY-1063 . I don't immediately see how any workaround in jetty could overcome the problem in the maven code for the reasons given in the bug above - if you can, please do provide a patch! cheers Jan
          Hide
          Jan Bartel added a comment -

          Closing, but happy to reopen if someone has a clever patch.

          Jan

          Show
          Jan Bartel added a comment - Closing, but happy to reopen if someone has a clever patch. Jan

            People

            • Assignee:
              Jan Bartel
              Reporter:
              David J. M. Karlsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: