You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by ishan-jain <ja...@gmail.com> on 2017/06/06 08:36:46 UTC
Ignite Creation Error
Exception in thread "main" class org.apache.ignite.IgniteException: Failed to
find configuration in: file:/app/Test/3/example-default.xml
at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:946)
at org.apache.ignite.Ignition.start(Ignition.java:350)
at Stream.ExampleNodeStartup.main(ExampleNodeStartup.java:34)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to find
configuration in: file:/app/Test/3/example-default.xml
at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:116)
at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
at
org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:639)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:840)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:749)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:619)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:589)
at org.apache.ignite.Ignition.start(Ignition.java:347)
... 1 more
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Creation-Error-tp13398.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Ignite Creation Error
Posted by Ishan Jain <ja...@gmail.com>.
Thanx Mike.It Worked.
On Tue, Jun 6, 2017 at 4:47 PM, M G <en...@gmail.com> wrote:
> Use "example-ignite.xml" instead of "example-default.xml".
>
> "example-default.xml" is just a fragment a full configuration file, you
> can see it is <import>ed into example-ignite.xml:
>
> <import resource="example-default.xml"/>
>
> BR
>
> Mike
>
>
>
>
>
> On Tue, Jun 6, 2017 at 9:37 AM, ishan-jain <ja...@gmail.com> wrote:
>
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>>
>>
>>
>> <beans xmlns="http://www.springframework.org/schema/beans"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:util="http://www.springframework.org/schema/util"
>> xsi:schemaLocation="
>> http://www.springframework.org/schema/beans
>> http://www.springframework.org/schema/beans/spring-beans.xsd
>> http://www.springframework.org/schema/util
>> http://www.springframework.org/schema/util/spring-util.xsd">
>>
>>
>> <bean id="h2-example-db" class="org.h2.jdbcx.JdbcDataSource">
>> <property name="URL" value="jdbc:h2:tcp://localhost
>> /mem:ExampleDb"
>> />
>> <property name="user" value="sa" />
>> </bean>
>>
>> <bean abstract="true" id="ignite.cfg"
>> class="org.apache.ignite.configuration.IgniteConfiguration">
>>
>> <property name="peerClassLoadingEnabled" value="true"/>
>>
>>
>> <property name="includeEventTypes">
>> <list>
>>
>> <util:constant
>> static-field="org.apache.ignite.events.EventType.EVT_TASK_STARTED"/>
>> <util:constant
>> static-field="org.apache.ignite.events.EventType.EVT_TASK_FINISHED"/>
>> <util:constant
>> static-field="org.apache.ignite.events.EventType.EVT_TASK_FAILED"/>
>> <util:constant
>> static-field="org.apache.ignite.events.EventType.EVT_TASK_TIMEDOUT"/>
>> <util:constant
>> static-field="org.apache.ignite.events.EventType.EVT_TASK_
>> SESSION_ATTR_SET"/>
>> <util:constant
>> static-field="org.apache.ignite.events.EventType.EVT_TASK_REDUCED"/>
>>
>>
>> <util:constant
>> static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_PUT"/>
>> <util:constant
>> static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_READ"/>
>> <util:constant
>> static-field="org.apache.ignite.events.EventType.EVT_CACHE_
>> OBJECT_REMOVED"/>
>> </list>
>> </property>
>>
>>
>> <property name="discoverySpi">
>> <bean
>> class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
>> <property name="ipFinder">
>>
>>
>>
>> <bean
>> class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicas
>> t.TcpDiscoveryMulticastIpFinder">
>> <property name="addresses">
>> <list>
>>
>> <value>127.0.0.1:47500..47509</value>
>> </list>
>> </property>
>> </bean>
>> </property>
>> </bean>
>> </property>
>> </bean>
>> </beans>
>>
>>
>>
>>
>> --
>> View this message in context: http://apache-ignite-users.705
>> 18.x6.nabble.com/Ignite-Creation-Error-tp13398p13399.html
>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>
>
>
Re: Ignite Creation Error
Posted by M G <en...@gmail.com>.
Use "example-ignite.xml" instead of "example-default.xml".
"example-default.xml" is just a fragment a full configuration file, you can
see it is <import>ed into example-ignite.xml:
<import resource="example-default.xml"/>
BR
Mike
On Tue, Jun 6, 2017 at 9:37 AM, ishan-jain <ja...@gmail.com> wrote:
> <?xml version="1.0" encoding="UTF-8"?>
>
>
>
>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:util="http://www.springframework.org/schema/util"
> xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
> http://www.springframework.org/schema/util
> http://www.springframework.org/schema/util/spring-util.xsd">
>
>
> <bean id="h2-example-db" class="org.h2.jdbcx.JdbcDataSource">
> <property name="URL" value="jdbc:h2:tcp://localhost/mem:ExampleDb"
> />
> <property name="user" value="sa" />
> </bean>
>
> <bean abstract="true" id="ignite.cfg"
> class="org.apache.ignite.configuration.IgniteConfiguration">
>
> <property name="peerClassLoadingEnabled" value="true"/>
>
>
> <property name="includeEventTypes">
> <list>
>
> <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_TASK_STARTED"/>
> <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_TASK_FINISHED"/>
> <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_TASK_FAILED"/>
> <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_TASK_TIMEDOUT"/>
> <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_
> TASK_SESSION_ATTR_SET"/>
> <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_TASK_REDUCED"/>
>
>
> <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_PUT"/>
> <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_READ"/>
> <util:constant
> static-field="org.apache.ignite.events.EventType.EVT_
> CACHE_OBJECT_REMOVED"/>
> </list>
> </property>
>
>
> <property name="discoverySpi">
> <bean
> class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
> <property name="ipFinder">
>
>
>
> <bean
> class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.
> TcpDiscoveryMulticastIpFinder">
> <property name="addresses">
> <list>
>
> <value>127.0.0.1:47500..47509</value>
> </list>
> </property>
> </bean>
> </property>
> </bean>
> </property>
> </bean>
> </beans>
>
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Ignite-Creation-Error-tp13398p13399.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>
Re: Ignite Creation Error
Posted by ishan-jain <ja...@gmail.com>.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd">
<bean id="h2-example-db" class="org.h2.jdbcx.JdbcDataSource">
<property name="URL" value="jdbc:h2:tcp://localhost/mem:ExampleDb"
/>
<property name="user" value="sa" />
</bean>
<bean abstract="true" id="ignite.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="peerClassLoadingEnabled" value="true"/>
<property name="includeEventTypes">
<list>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_STARTED"/>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_FINISHED"/>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_FAILED"/>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_TIMEDOUT"/>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_SESSION_ATTR_SET"/>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_REDUCED"/>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_PUT"/>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_READ"/>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_REMOVED"/>
</list>
</property>
<property name="discoverySpi">
<bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
<property name="ipFinder">
<bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
<property name="addresses">
<list>
<value>127.0.0.1:47500..47509</value>
</list>
</property>
</bean>
</property>
</bean>
</property>
</bean>
</beans>
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-Creation-Error-tp13398p13399.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.