Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12001

Cannot Start AS7.1.1 server with a space in path using JBoss Tools

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.3.0.CR1
    • 3.3.0.Beta3
    • server
    • None
    • Hide

      Installed JBoss 7.1.1 to "F:\My Servers\jboss-as-7.1.1.Final" (note the space in the path).
      Created a Server in Eclipse/JBoss Tools using the server location above.
      Attempted to start the server by right-clicking in the Servers view.

      Show
      Installed JBoss 7.1.1 to "F:\My Servers\jboss-as-7.1.1.Final" (note the space in the path). Created a Server in Eclipse/JBoss Tools using the server location above. Attempted to start the server by right-clicking in the Servers view.

    Description

      I have a 7.1.1 server installed in "F:\My Servers\jboss-as-7.1.1.Final" (note the space in the path).

      It starts just fine using the standalone.bat file within that folder. But if I try to start the server from within Eclipse using JBoss Tools (3.3.0 Beta 3), I get this error in the console:

      java.lang.NoClassDefFoundError: F:/My
      Caused by: java.lang.ClassNotFoundException: F:.My
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      Exception in thread "main"

      I've captured the command line used when I right-click on the server in Eclipse and Debug. Here it is (copied from Process Monitor's Process Tree):

      "C:\Program Files\Java\jdk1.6.0_23\bin\javaw.exe" -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:63144 -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.boot.log.file= F:/My Servers/jboss-as-7.1.1.Final/standalone/log/boot.log Servers/jboss-as-7.1.1.Final/standalone/log/boot.log -Dlogging.configuration=file:/F:/My%20Servers/jboss-as-7.1.1.Final/standalone/configuration/logging.properties -Djboss.home.dir= F:/My Servers/jboss-as-7.1.1.Final Servers/jboss-as-7.1.1.Final -Dfile.encoding=Cp1252 -classpath "F:\My Servers\jboss-as-7.1.1.Final\jboss-modules.jar" org.jboss.modules.Main -mp "" F:/My Servers/jboss-as-7.1.1.Final/modules Servers/jboss-as-7.1.1.Final/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -b localhost --server-config=standalone.xml

      Attachments

        1. JBIDE-12001
          3 kB
        2. JBIDE-12001a
          4 kB
        3. JBIDE-12001c.patch
          4 kB

        Activity

          People

            rob.stryker Rob Stryker (Inactive)
            darrenjones_jira Darren Jones (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: