Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-4325

Relative path error in context parameter on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • 9.0.0.Beta1
    • 9.0.0.Beta1
    • Web (Undertow)
    • None

    Description

      Deploying the Eclipse BIRT viewer with a context parameter containing a relative reference as a context parameter on a windows machine

      <param-value>../birtdata/logs</param-value>

      results in

      2015-02-05 10:07:37,736 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./birt: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./birt: Failed to start service
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.RuntimeException: java.nio.file.InvalidPathException: Illegal char <:> at index 2: \C:\Java\WildFly-9.x-testi\standalone\deployments\birt-4.4.0.war\..\birtdata\logs\org.eclipse.datatools.connectivity.oda_2015_02_05_10_07_37.log.lck
      at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:221)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:86)
      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.start(UndertowDeploymentService.java:71)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      ... 3 more
      Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 2: \C:\Java\WildFly-9.x-testi\standalone\deployments\birt-4.4.0.war\..\birtdata\logs\org.eclipse.datatools.connectivity.oda_2015_02_05_10_07_37.log.lck
      at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
      at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
      at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
      at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
      at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
      at java.nio.file.Paths.get(Paths.java:84)
      at java.util.logging.FileHandler.openFiles(FileHandler.java:438)
      at java.util.logging.FileHandler.<init>(FileHandler.java:318)
      at org.eclipse.birt.report.utility.LoggingUtil.initFileLogger(LoggingUtil.java:103)
      at org.eclipse.birt.report.utility.LoggingUtil.configureLoggers(LoggingUtil.java:76)
      at org.eclipse.birt.report.service.ReportEngineService.<init>(ReportEngineService.java:229)
      at org.eclipse.birt.report.service.ReportEngineService.initEngineInstance(ReportEngineService.java:271)
      at org.eclipse.birt.report.service.BirtViewerReportService.<init>(BirtViewerReportService.java:83)
      at org.eclipse.birt.report.listener.ViewerServletContextListener.contextInitialized(ViewerServletContextListener.java:57)
      at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:173)
      at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:192)
      ... 7 more

      This used to work on the 8.x-series

      Attachments

        Activity

          People

            tomazcerar Tomaž Cerar (Inactive)
            nickarls Nicklas Karlsson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: