ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Evgeniy Rudenko <e.a.rude...@gmail.com>
Subject Re: Spring XML Issue
Date Wed, 16 Oct 2019 17:30:40 GMT
Just add

<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd">

to the start of the file and

</beans>

to the end.

On Wed, Oct 16, 2019 at 8:22 PM sri hari kali charan Tummala <
kali.tummala@gmail.com> wrote:

> Hi All,
>
> I am trying out steps mentioned in this blog (
> https://www.gridgain.com/docs/8.7.6//installation-guide/manual-install-on-ec2)
> I created Ec2 nodes and .xml file when I try to run I get this bean xml
> error can anyone help with resolving this am I missing something in the
> file?
>
> Run Command:-
>
> ./gridgain-community-8.7.6/bin/ignite.sh aws-static-ip-finder_2.xml
>
> File aws-static-ip-finder.xml has below content:-
>
> <bean class="org.apache.ignite.configuration.IgniteConfiguration" >
>
>     <!-- other properties -->
>
>     <!-- Explicitly configure TCP discovery SPI to provide a list of
> nodes. -->
>
>     <property name="discoverySpi">
>
>         <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>
>             <property name="ipFinder">
>
>                 <bean class=
> "org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
>
>                     <property name="addresses">
>
>                         <list>
>
>                             <value>172.31.81.211</value>
>
>                             <value>172.31.82.21</value>
>
>                         </list>
>
>                     </property>
>
>                 </bean>
>
>             </property>
>
>         </bean>
>
>     </property>
>
> </bean>
>
>
>
> Error:-
>
>
> class org.apache.ignite.IgniteException: *Failed to instantiate Spring
> XML application context
> [springUrl=file:/home/ec2-user/aws-static-ip-finder_2.xml, err=Line 1 in
> XML document from URL [file:/home/ec2-user/aws-static-ip-finder_2.xml] is
> invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 1;
> columnNumber: 67; cvc-elt.1: Cannot find the declaration of element
> 'bean'.]*
>
> * at
> org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:1052)*
>
> * at org.apache.ignite.Ignition.start(Ignition.java:350)*
>
> * at
> org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:300)*
>
> *Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
> instantiate Spring XML application context
> [springUrl=file:/home/ec2-user/aws-static-ip-finder_2.xml, err=Line 1 in
> XML document from URL [file:/home/ec2-user/aws-static-ip-finder_2.xml] is
> invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 1;
> columnNumber: 67; cvc-elt.1: Cannot find the declaration of element
> 'bean'.]*
>
> * at
> org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:391)*
>
> * at
> org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:103)*
>
> * at
> org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:97)*
>
> * at
> org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:750)*
>
> * at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:951)*
>
> * at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:860)*
>
> * at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:730)*
>
> * at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:699)*
>
> * at org.apache.ignite.Ignition.start(Ignition.java:347)*
>
> * ... 1 more*
>
> *Caused by:
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
> 1 in XML document from URL [file:/home/ec2-user/aws-static-ip-finder_2.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber:
> 1; columnNumber: 67; cvc-elt.1: Cannot find the declaration of element
> 'bean'.*
>
> * at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:399)*
>
> * at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)*
>
> * at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)*
>
> * at
> org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.applicationContext(IgniteSpringHelperImpl.java:378)*
>
> * ... 9 more*
>
> *Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber:
> 67; cvc-elt.1: Cannot find the declaration of element 'bean'.*
>
> * at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)*
>
> * at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1901)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:741)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:613)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3132)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:852)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)*
>
> * at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)*
>
> * at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)*
>
> * at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)*
>
> * at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)*
>
> * at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)*
>
> * at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)*
>
> * at
> org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)*
>
> * at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429)*
>
> * at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)*
>
> * ... 12 more*
>
> *Failed to start grid: Failed to instantiate Spring XML application
> context [springUrl=file:/home/ec2-user/aws-static-ip-finder_2.xml, err=Line
> 1 in XML document from URL [file:/home/ec2-user/aws-static-ip-finder_2.xml]
> is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber:
> 1; columnNumber: 67; cvc-elt.1: Cannot find the declaration of element
> 'bean'.]*
>
>
>
>
>
>
>
> --
> Thanks & Regards
> Sri Tummala
>
>

-- 
Best regards,
Evgeniy

Mime
View raw message