[ 
https://issues.apache.org/jira/browse/IGNITE-7233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Ivanov closed IGNITE-7233.
--------------------------------

> Problems with classpath on Windows when IGNITE_HOME contains spaces
> -------------------------------------------------------------------
>
>                 Key: IGNITE-7233
>                 URL: https://issues.apache.org/jira/browse/IGNITE-7233
>             Project: Ignite
>          Issue Type: Bug
>    Affects Versions: 2.3
>         Environment: Windows, cmd, batch files
>            Reporter: Ilya Kasnacheev
>            Assignee: Peter Ivanov
>              Labels: windows
>
> {code}
> C:\releases> cd "apache-ignite-fabric-2.3.0 bin"
> REM note the white space in directory name ^
> C:\releases\apache-ignite-fabric-2.3.0 bin>set 
> IGNITE_HOME="C:\releases\apache-ignite-fabric-2.3.0 bin"
> C:\releases\apache-ignite-fabric-2.3.0 bin>bin\ignite.bat 
> %IGNITE_HOME%\config\default.xml
> 'C:\Program' is not recognized as an internal or external command,
> operable program or batch file.
> Error: Could not find or load main class 
> bin\libs\*;C:\releases\apache-ignite-fabric-2.3.0\*
> Error: Could not find or load main class 
> bin\libs\*;C:\releases\apache-ignite-fabric-2.3.0\*
> bin\ignite.bat, WARN: Failed to resolve JMX host. JMX will be disabled.
> class org.apache.ignite.IgniteException: Failed to create Ignite component 
> (consider adding ignite-spring module to classpath) [component=SPRING, 
> cls=org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl]
>         at 
> org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:966)
>         at org.apache.ignite.Ignition.start(Ignition.java:350)
>         at 
> org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
> Caused by: class org.apache.ignite.IgniteCheckedException: Failed to create 
> Ignite component (consider adding ignite-spring module to classpath) 
> [component=SPRING, 
> cls=org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl]
>         at 
> org.apache.ignite.internal.IgniteComponentType.componentException(IgniteComponentType.java:320)
>         at 
> org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:296)
>         at 
> org.apache.ignite.internal.IgniteComponentType.create(IgniteComponentType.java:207)
>         at 
> org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:671)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:874)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:783)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:653)
>         at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:622)
>         at org.apache.ignite.Ignition.start(Ignition.java:347)
>         ... 1 more
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:264)
>         at 
> org.apache.ignite.internal.IgniteComponentType.create0(IgniteComponentType.java:282)
>         ... 8 more
> Failed to start grid: Failed to create Ignite component (consider adding 
> ignite-spring module to classpath) [component=SPRING, 
> cls=org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl]
> Note! You may use 'USER_LIBS' environment variable to specify your classpath.
> Press any key to continue . . .
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to