4 Replies Latest reply on Oct 26, 2011 5:53 AM by jfclere

    JBoss6: spaces in path

    chengwen

      When I use jboss 6.0.0.0 final, I found it that spaces in jboss_home path makes jboss6 fail to start.

      For example, if I put my jboss in the directory like "C:\Program Files\jboss",  it will end up with the exception:

       

      java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/jboss
      

       

      Is it a bug of jboss6? Haven't the bug been fixed yet?

       

      Or, is there any solutions which can make jboss run correctly  in the path "C:\Program Files\jboss" ?

      Or, what I can do is ONLY to change jboss to anther path without spaces ?

       

      Please tell me what to do. Thanks in advance !

        • 1. Re: JBoss6: spaces in path
          wolfgangknauf

          Original post with more details (error message and first analysis) can be found here: http://community.jboss.org/thread/170483

           

          Best regards

           

          Wolfgang

          • 2. Re: JBoss6: spaces in path
            chengwen

            Hello, these days I kept trying to find ways to solve the "spaces" problem, Now I find the solution.

             

            In %Jboss_home%/server/default/deploy/jbossweb.sar/jboss-web-service.jar, I find the class:

            org.jboss.web.tomcat.service.deployers.TomcatDeployment.java

             

            Line 222-223 was used to be:

             

             

            if (docBase == null)
              docBase = VFS.getChild(warUrl).getPhysicalFile().getAbsolutePath();
            

             

            Now I changed them to :

             

             if (docBase == null)       
                      docBase = warUrl.getFile();
            

             

            And then the jboss 6 can work in a path with spaces now.

             

            But I am not sure if what I did will cause other problems. Can I change the jar file to solve the problem like this?

             

            anyone can help?Thank you!

            • 3. Re: JBoss6: spaces in path
              polarke

              Yes, please change it.

               

              It is now in JBoss 6.1.0.0 also...

              • 4. Re: JBoss6: spaces in path
                jfclere

                JBAS-8677 ?