I'm working on an Apache Ignite service based on one of the examples from the Ignite 2.9.1 Github project. The application builds fine, using the exact same set of dependencies as the Ignite 2.9.1 example project.
I've now spent quite a bit of time trying to diagnose and fix this error:
Exception in thread "main" class org.apache.ignite.IgniteException: Failed to instantiate Spring XML application context [springUr
l=jar:file:/home/ignitedev/dev/esi/ignite-writebehind/target/ignite-writebehind-1.0-SNAPSHOT-shaded.jar!/apache-example-ignite.xml
, err=Configuration problem: Unexpected failure during bean definition parsing
Offending resource: URL [jar:file:/home/ignitedev/dev/esi/ignite-writebehind/target/ignite-writebehind-1.0-SNAPSHOT-shaded.jar!/ap
ache-example-ignite.xml]
Bean 'ignite.cfg'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration pro
blem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/util]
Offending resource: URL [jar:file:/home/ignitedev/dev/esi/ignite-writebehind/target/ignite-writebehind-1.0-SNAPSHOT-shaded.jar!/ap
ache-example-ignite.xml]
Property 'includeEventTypes'
-> Bean 'ignite.cfg']
at org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1089)
at org.apache.ignite.Ignition.start(Ignition.java:356)
at com.tapestrysoutions.esi.ignitebase.client.IgniteWriteBehindJavaConfig.main(IgniteWriteBehindJavaConfig.java:42)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to instantiate Spring XML application context [springUrl=jar:fil
e:/home/ignitedev/dev/esi/ignite-writebehind/target/ignite-writebehind-1.0-SNAPSHOT-shaded.jar!/apache-example-ignite.xml, err=Con
figuration problem: Unexpected failure during bean definition parsing
Offending resource: URL [jar:file:/home/ignitedev/dev/esi/ignite-writebehind/target/ignite-writebehind-1.0-SNAPSHOT-shaded.jar!/ap
ache-example-ignite.xml]
Bean 'ignite.cfg'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration pro
blem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/util]
Offending resource: URL [jar:file:/home/ignitedev/dev/esi/ignite-writebehind/target/ignite-writebehind-1.0-SNAPSHOT-shaded.jar!/ap
ache-example-ignite.xml]
From the various things I've found searching, this is typically caused by a missing dependency. I've tried adding the suggested dependencies (spring-beans, spring-security-config) to no avail.
It'd be great if a better error message were possible indicating possible solutions, but I understand that may be difficult.
Any help is greatly appreciated! Thanks!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…