Issue while starting the Ignite node in wildfly server

classic Classic list List threaded Threaded
3 messages Options
DEEPTHI KOLLIPARA DEEPTHI KOLLIPARA
Reply | Threaded
Open this post in threaded view
|

Issue while starting the Ignite node in wildfly server

Dear Team,

 

   I am trying to deploy the web application on wildfly server. Ignite client will be started from the application.

Ignite Version: 2.7

Wildfly Server version : 20

 

Added ignite related jars to Wildfly modules in the below path.

wildfly-20.0.0.Final/modules/system/layers/base/org/ignite/main

 

<?xml version="1.0" ?>

<module xmlns="urn:jboss:module:1.1" name="org.ignite">

    <resources>

        <resource-root path="ignite-core-2.7.0.jar"/>

                <resource-root path="ignite-indexing-2.7.0.jar"/>

                <resource-root path="ignite-shmem-1.0.0.jar"/>

                <resource-root path="ignite-spring-2.7.0.jar"/>

    </resources>

   <dependencies>

                <module name="sun.jdk"/>

                <module name="javax.api"/>

               

    </dependencies>

</module>

 

 

Below error is thrown at the time of node starts. Same code works fine with Tomcat.

 

Any help is highly appreciated.

 

2020-09-25 18:10:45 ERROR FactsLogger:104 - InputModel.crateTransaction : Could not initialize class org.apache.ignite.internal.util.IgniteUtils

java.lang.NoClassDefFoundError: Could not initialize class org.apache.ignite.internal.util.IgniteUtils

                at org.apache.ignite.internal.IgnitionEx.<clinit>(IgnitionEx.java:209) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.Ignition.start(Ignition.java:348) ~[ignite-core-2.7.0.jar:2.7.0]

                at com.cmc.facts.grid.matcher.MatcherGridInvoker.loadNode(MatcherGridInvoker.java:160) ~[Matcher-2.0-RC4.jar:?]

                at com.cmc.facts.grid.matcher.MatcherGridInvoker.getIgnite(MatcherGridInvoker.java:96) ~[Matcher-2.0-RC4.jar:?]

                at com.cmc.facts.grid.matcher.MatcherGridInvoker.invokeTPTPCSGrid(MatcherGridInvoker.java:263) ~[Matcher-2.0-RC4.jar:?]

                at com.cmc.facts.model.InputModel.createTransaction(InputModel.java:2349) ~[classes:?]

                at com.cmc.facts.model.InputModel$$FastClassBySpringCGLIB$$d946f9ed.invoke(<generated>) ~[classes:?]

                at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at com.cmc.facts.aop.LoggingInterceptor.logModels(LoggingInterceptor.java:19) ~[classes:?]

                at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

                at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

                at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

                at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

                at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at com.cmc.facts.model.InputModel$$EnhancerBySpringCGLIB$$29adf337.createTransaction(<generated>) ~[classes:?]

                at com.cmc.facts.nist.NistReaderModel.preprossingOfNistFile(NistReaderModel.java:326) ~[classes:?]

                at com.cmc.facts.civilian.FactsServiceUtilCivilian.processOne2OneMatch(FactsServiceUtilCivilian.java:912) ~[classes:?]

                at com.cmc.facts.civilian.FactsServiceUtilCivilian.processRequest(FactsServiceUtilCivilian.java:207) ~[classes:?]

                at com.cmc.facts.civilian.FactsServiceServlet.doPost(FactsServiceServlet.java:31) ~[classes:?]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:523) ~[jboss-servlet-api_4.0_spec-2.0.0.Final.jar!/:2.0.0.Final]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) ~[jboss-servlet-api_4.0_spec-2.0.0.Final.jar!/:2.0.0.Final]

                at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:173) ~[undertow-websockets-jsr-2.1.3.Final.jar!/:2.1.3.Final]

                at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:138) ~[struts2-core-2.5.18.jar:2.5.18]

                at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:155) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at

 

Thanks

Deepthi K

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you

BEELA GAYATRI BEELA GAYATRI
Reply | Threaded
Open this post in threaded view
|

RE: Issue while starting the Ignite node in wildfly server

Dear Team,

 

I am trying to deploy the web application on wildfly server. Ignite client will be started from the application.

Ignite Version: 2.7

Wildfly Server version : 20

 

wildfly-20.0.0.Final/modules/system/layers/base/org/wildfly/extension/io/main

<module name="org.apache.ignite" optional="true"/>

Added Ignite  jars  in

wildfly-20.0.0.Final/modules/system/layers/base/org/apache/ignite/main

 

We are getting below error . Please suggest

Failed to find empty constructor for class: org.apache.ignite.internal.processors.platform.websession.PlatformDotNetSessionLockResult

org.apache.ignite.binary.BinaryObjectException: Failed to find empty constructor for class: org.apache.ignite.internal.processors.platform.websession.PlatformDotNetSessionLockResult

                at org.apache.ignite.internal.binary.BinaryClassDescriptor.constructor(BinaryClassDescriptor.java:981) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.binary.BinaryClassDescriptor.<init>(BinaryClassDescriptor.java:267) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.binary.BinaryContext.registerPredefinedType(BinaryContext.java:1063) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.binary.BinaryContext.registerPredefinedType(BinaryContext.java:1048) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.binary.BinaryContext.<init>(BinaryContext.java:350) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl.start(CacheObjectBinaryProcessorImpl.java:208) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1700) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1013) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2038) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1730) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1158) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1076) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:962) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:861) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:731) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:700) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.Ignition.start(Ignition.java:348) ~[ignite-core-2.7.0.jar:2.7.0]

 

 

 

 

Sent from Mail for Windows 10

 

 

 

 

From: [hidden email]
Sent: Sunday, September 27, 2020 5:56 PM
To: [hidden email]
Subject: Issue while starting the Ignite node in wildfly server

 

"External email. Open with Caution"

Dear Team,

 

   I am trying to deploy the web application on wildfly server. Ignite client will be started from the application.

Ignite Version: 2.7

Wildfly Server version : 20

 

Added ignite related jars to Wildfly modules in the below path.

wildfly-20.0.0.Final/modules/system/layers/base/org/ignite/main

 

<?xml version="1.0" ?>

<module xmlns="urn:jboss:module:1.1" name="org.ignite">

    <resources>

        <resource-root path="ignite-core-2.7.0.jar"/>

                <resource-root path="ignite-indexing-2.7.0.jar"/>

                <resource-root path="ignite-shmem-1.0.0.jar"/>

                <resource-root path="ignite-spring-2.7.0.jar"/>

    </resources>

   <dependencies>

                <module name="sun.jdk"/>

                <module name="javax.api"/>

               

    </dependencies>

</module>

 

 

Below error is thrown at the time of node starts. Same code works fine with Tomcat.

 

Any help is highly appreciated.

 

2020-09-25 18:10:45 ERROR FactsLogger:104 - InputModel.crateTransaction : Could not initialize class org.apache.ignite.internal.util.IgniteUtils

java.lang.NoClassDefFoundError: Could not initialize class org.apache.ignite.internal.util.IgniteUtils

                at org.apache.ignite.internal.IgnitionEx.<clinit>(IgnitionEx.java:209) ~[ignite-core-2.7.0.jar:2.7.0]

                at org.apache.ignite.Ignition.start(Ignition.java:348) ~[ignite-core-2.7.0.jar:2.7.0]

                at com.cmc.facts.grid.matcher.MatcherGridInvoker.loadNode(MatcherGridInvoker.java:160) ~[Matcher-2.0-RC4.jar:?]

                at com.cmc.facts.grid.matcher.MatcherGridInvoker.getIgnite(MatcherGridInvoker.java:96) ~[Matcher-2.0-RC4.jar:?]

                at com.cmc.facts.grid.matcher.MatcherGridInvoker.invokeTPTPCSGrid(MatcherGridInvoker.java:263) ~[Matcher-2.0-RC4.jar:?]

                at com.cmc.facts.model.InputModel.createTransaction(InputModel.java:2349) ~[classes:?]

                at com.cmc.facts.model.InputModel$$FastClassBySpringCGLIB$$d946f9ed.invoke(<generated>) ~[classes:?]

                at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:749) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at com.cmc.facts.aop.LoggingInterceptor.logModels(LoggingInterceptor.java:19) ~[classes:?]

                at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]

                at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]

                at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

                at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

                at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) ~[spring-aop-5.1.9.RELEASE.jar:5.1.9.RELEASE]

                at com.cmc.facts.model.InputModel$$EnhancerBySpringCGLIB$$29adf337.createTransaction(<generated>) ~[classes:?]

                at com.cmc.facts.nist.NistReaderModel.preprossingOfNistFile(NistReaderModel.java:326) ~[classes:?]

                at com.cmc.facts.civilian.FactsServiceUtilCivilian.processOne2OneMatch(FactsServiceUtilCivilian.java:912) ~[classes:?]

                at com.cmc.facts.civilian.FactsServiceUtilCivilian.processRequest(FactsServiceUtilCivilian.java:207) ~[classes:?]

                at com.cmc.facts.civilian.FactsServiceServlet.doPost(FactsServiceServlet.java:31) ~[classes:?]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:523) ~[jboss-servlet-api_4.0_spec-2.0.0.Final.jar!/:2.0.0.Final]

                at javax.servlet.http.HttpServlet.service(HttpServlet.java:590) ~[jboss-servlet-api_4.0_spec-2.0.0.Final.jar!/:2.0.0.Final]

                at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at io.undertow.websockets.jsr.JsrWebSocketFilter.doFilter(JsrWebSocketFilter.java:173) ~[undertow-websockets-jsr-2.1.3.Final.jar!/:2.1.3.Final]

                at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:138) ~[struts2-core-2.5.18.jar:2.5.18]

                at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131) ~[undertow-servlet-2.1.3.Final.jar!/:2.1.3.Final]

                at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:320) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:119) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:155) ~[spring-security-web-5.1.6.RELEASE.jar:5.1.6.RELEASE]

                at

 

Thanks

Deepthi K

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you

 

akorensh akorensh
Reply | Threaded
Open this post in threaded view
|

Re: Issue while starting the Ignite node in wildfly server

In reply to this post by DEEPTHI KOLLIPARA
Hi,
   Looks like an error w/the classpath,
   IgniteUtils is in the same mode as the Ignition class therefore this
looks like the igntie-core was not loaded correctly.
  Ignite 2.7 is an old version. I would try to simplify the scenario by
loading the latest Ignite version  
https://ignite.apache.org/download.cgi#binaries and using only ignite-core
and ignite-spring.
  Don't load any other ignite or other modules/libraries. Verify the
classpath of the java process running WildFly using jinfo or other java
tool.

Thanks, Alex



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/