[jbosstools-issues] [JBoss JIRA] (JBIDE-12001) Cannot Start AS7.1.1 server with a space in path using JBoss Tools

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Thu May 31 02:47:17 EDT 2012


    [ https://issues.jboss.org/browse/JBIDE-12001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12697379#comment-12697379 ] 

Max Rydahl Andersen commented on JBIDE-12001:
---------------------------------------------

Patch reviewed to work and i'm now able to start server with spaces in it on OSX too ;)

I suggest the space test gets updated to something like https://gist.github.com/2841504 which actually explains the test logic.

Code is here for completeness:

{code}
public void testSetToNullWithQuotes() {
		
		String argId = "-Dtest";
		String folder = "my folder";
		String QUOTE = "\"";
		String EQ = "=";
		
		final String args = QUOTE + argId + EQ + folder + QUOTE;
		String result = ArgsUtil.setArg(args, null, argId, null, true);
		assertEquals("When argument is set to null, argument should not be present", "", result.trim());
		
		result = ArgsUtil.setArg(args, null, argId, folder, true);
	
		assertEquals("When argument is to to same value, the content should not change except for spacing", args, result.trim());
	}
{code}
                
> Cannot Start AS7.1.1 server with a space in path using JBoss Tools
> ------------------------------------------------------------------
>
>                 Key: JBIDE-12001
>                 URL: https://issues.jboss.org/browse/JBIDE-12001
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS/Servers
>    Affects Versions: 3.3.0.Beta3
>         Environment: Windows 7 64-bit; Java 1.6.0u23; Eclipse 3.7.2 EE edition with JBoss Tools;  - also fails on OSX and Linux
>            Reporter: Darren Jones
>            Assignee: Rob Stryker
>            Priority: Blocker
>             Fix For: 3.3.0.CR1
>
>         Attachments: JBIDE-12001, JBIDE-12001a, JBIDE-12001c.patch
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list