Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1709

TomEE webapps (See rest-example) doesn't work under Windows (Path - Problem with backslash "\")

    XMLWordPrintableJSON

Details

    Description

      TomEE rest-example.zip http://ci.apache.org/projects/openejb/examples-generated/webapps/rest-example/index.html
      See SVN http://svn.apache.org/repos/asf/openejb/trunk/openejb/examples/webapps/rest-example
      doesn't work under Windows (Path - Problem with backslash "\" *http://nopath/\tomee*)

      Error message for Example
      *Caused by: java.net.URISyntaxException: Illegal character in path at index 14: http://nopath/\tomee-0.17488958453574144*

      javax.ejb.EJBException: org.apache.openejb.OpenEJBException: Creating application failed: D:\Temp\tomee-0.17488958453574144: uri syntax is not correct
      	at org.apache.tomee.embedded.EmbeddedTomEEContainer$EmbeddedTomEEContainerProvider.createEJBContainer(EmbeddedTomEEContainer.java:119)
      	at javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:56)
      	at org.superbiz.rest.dao.UserServiceTest.start(UserServiceTest.java:41)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
      	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      Caused by: org.apache.openejb.OpenEJBException: Creating application failed: D:\Temp\tomee-0.17488958453574144: uri syntax is not correct
      	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:858)
      	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:492)
      	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:488)
      	at org.apache.tomee.embedded.Container.deploy(Container.java:212)
      	at org.apache.tomee.embedded.EmbeddedTomEEContainer$EmbeddedTomEEContainerProvider.createEJBContainer(EmbeddedTomEEContainer.java:98)
      	... 18 more
      Caused by: org.apache.openejb.server.rest.OpenEJBRestRuntimeException: uri syntax is not correct
      	at org.apache.openejb.server.rest.RESTService.getAddress(RESTService.java:286)
      	at org.apache.openejb.server.rest.RESTService.deployPojo(RESTService.java:237)
      	at org.apache.openejb.server.rest.RESTService.afterApplicationCreated(RESTService.java:113)
      	at org.apache.tomee.webservices.TomeeJaxRsService.afterApplicationCreated(TomeeJaxRsService.java:55)
      	at org.apache.tomee.catalina.WebDeploymentListeners.afterApplicationCreated(WebDeploymentListeners.java:38)
      	at org.apache.tomee.catalina.TomcatWebAppBuilder.afterStart(TomcatWebAppBuilder.java:600)
      	at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:103)
      	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:389)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:166)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:812)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:787)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:607)
      	at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:246)
      	at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:818)
      	... 22 more
      Caused by: java.net.URISyntaxException: Illegal character in path at index 14: http://nopath/\tomee-0.17488958453574144
      	at java.net.URI$Parser.fail(Unknown Source)
      	at java.net.URI$Parser.checkChars(Unknown Source)
      	at java.net.URI$Parser.parseHierarchical(Unknown Source)
      	at java.net.URI$Parser.parse(Unknown Source)
      	at java.net.URI.<init>(Unknown Source)
      	at org.apache.openejb.server.rest.RESTService.getAddress(RESTService.java:282)
      	... 37 more
      

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            alwillha Alex Willhaug
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: