OS is Rocky linux 8.x / CentOS 7.4, latest updated.
JDK is OpenJDK 1.8.0

Thank you yonghua.

On 2021/12/02 4:36, yong...@laposte.net wrote:
‌what’s the app env? The OS, JDK version etc.
De : "Hajime Kobashi"
A : user@ignite.apache.org
Envoyé: jeudi 2 Décembre 2021 03:18
Objet : Code Deployment configuration error, start ignite.sh
Hi community.

Where is the UriDeploymentSpi.class and source file ?
I want something for start ignite, what is wrong.

I have some issue, that the ClassNotFoundException occured
spi.deployment.uri.UriDeploymentSpi class configuration to XML file with
ignite.sh starting.

I can not find UriDeploymentSpi class next 3 directory or jars.

1: git clone my local directory.
./ignite/modules/core/src/main/java/org/apache/ignite/spi/deployment
2: download source jar: apache-ignite-2.11.0-src.zip

./apache-ignite-2.11.0-src/modules/core/src/main/java/org/apache/ignite/spi/deployment
3: ignite.sh execution environment jar in libs: ignite-core-2.11.0.jar
./org/apache/ignite/spi/deployment

this configuration refer to Code Deployment-Deploying User Code section.
https://ignite.apache.org/docs/latest/code-deployment/deploying-user-code.

start ignite.sh java exception. configuration XML file name is
./config/testNode1.xml. issue part.
=======================================================================





file://freq=5000@localhost/usr/local/bin/ignite/libs




=======================================================================
next ignite.sh starting result messages.
=========================================================================
[root@sidious apache-ignite]# ./bin/ignite.sh ./config/testNode1.xml
class org.apache.ignite.IgniteException: Failed to instantiate Spring
XML application context (make sure all classes used in Spring
configuration are present at CLASSPATH)
[springUrl=file:/opt/apache/apache-ignite/./config/testNode1.xml]
at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1098)
at org.apache.ignite.Ignition.start(Ignition.java:356)
at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:367)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
instantiate Spring XML application context (make sure all classes used
in Spring configuration are present at CLASSPATH)
[springUrl=file:/opt/apache/apache-ignite/./config/testNode1.xml]
at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:387)
at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:104)
at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
at
org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:741)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:942)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:851)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:721)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:690)
at org.apache.ignite.Ignition.start(Ignition.java:353)
... 1 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'org.apache.ignite.configuration.IgniteConfiguration#0' defined in URL
[file:/opt/apache/apache-ignite/./config/testNode1.xml]: Cannot create
inner bean
'org.apache.ignite.spi.deployment.uri.UriDeploymentSpi#3327bd23' of type
[org.apache.ignite.spi.deployment.uri.UriDeploymentSpi] while setting
bean property 'deploymentSpi'; nested exception is
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
find class [org.apache.ignite.spi.deployment.uri.UriDeploymentSpi] for
bean with name
'org.apache.ignite.spi.deployment.uri.UriDeploymentSpi#3327bd23' defined
in URL [file:/opt/apache/apache-ignite/./config/testNode1.xml]; nested
exception is java.lang.ClassNotFoundException:
org.apache.ignite.spi.deployment.uri.UriDeploymentSpi
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1522)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1269)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:757)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:381)
... 9 more
Caused by:
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot
find class [org.apache.ignite.spi.deployment.uri.UriDeploymentSpi] for
bean with name
'org.apache.ignite.spi.deployment.uri.UriDeploymentSpi#3327bd23' defined
in URL [file:/opt/apache/apache-ignite/./config/testNode1.xml]; nested
exception is java.lang.ClassNotFoundException:
org.apache.ignite.spi.deployment.uri.UriDeploymentSpi
at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1397)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:454)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)
... 22 more
Caused by: java.lang.ClassNotFoundException:
org.apache.ignite.spi.deployment.uri.UriDeploymentSpi
at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:251)
at
org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1444)
at
org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1389)
... 24 more
Failed to start grid: Failed to instantiate Spring XML application
context (make sure all classes used in Spring configuration are present
at CLASSPATH)
[springUrl=file:/opt/apache/apache-ignite/./config/testNode1.xml]
Note! You may use 'USER_LIBS' environment variable to specify your
classpath.

Reply via email to