java.lang.ClassNotFoundException: org.apache.struts.action.RequestProcessor
aniket.rawat May 1, 2018 8:19 AMHi Everyone,
I have configured Wildfly 11 cluster on 2 windows server (master, slave) in domain mode and are using load balancer (Mod cluster Httpd 1.2.6) on the master machine.
When we are working on a single node (either master or slave) then our application works fine, but as we start another node then we receive the following error:
2018-05-01 06:08:33,402 ERROR [io.undertow.servlet.request] (default task-12) UT015002: Stopping servlet action due to permanent unavailability: javax.servlet.UnavailableException: Cannot initialize RequestProcessor of class org.apache.struts.action.RequestProcessor: java.lang.ClassNotFoundException: org.apache.struts.action.RequestProcessor from [Module "org.wildfly.security.elytron-private" from local module loader @636be97c (finder: local module finder @50a638b5 (roots: C:\wildfly\modules,C:\wildfly\modules\system\layers\base))]
I am using <distributable/> in web.xml of the app.
Can anyone please guide what configuration may have been @missed.
Thank you
Complete server log:
2018-05-01 06:07:25,963 INFO [org.quartz.simpl.SimpleThreadPool] (ServerService Thread Pool -- 141) Job execution threads will use class loader of thread: ServerService Thread Pool -- 141
2018-05-01 06:07:25,979 INFO [org.quartz.core.QuartzScheduler] (ServerService Thread Pool -- 141) Quartz Scheduler v.1.6.0 created.
2018-05-01 06:07:25,979 INFO [org.quartz.simpl.RAMJobStore] (ServerService Thread Pool -- 141) RAMJobStore initialized.
2018-05-01 06:07:25,979 INFO [org.quartz.impl.StdSchedulerFactory] (ServerService Thread Pool -- 141) Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
2018-05-01 06:07:25,979 INFO [org.quartz.impl.StdSchedulerFactory] (ServerService Thread Pool -- 141) Quartz scheduler version: 1.6.0
2018-05-01 06:07:25,995 INFO [org.quartz.core.QuartzScheduler] (ServerService Thread Pool -- 141) Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
2018-05-01 06:07:27,620 INFO [org.apache.activemq.artemis.ra] (default-threads - 3) AMQ151001: Attempting to reconnect org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec(ra=org.wildfly.extension.messaging.activemq.ActiveMQResourceAdapter@2bd07716 destination=queue/LoadFileQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=1)
2018-05-01 06:07:27,620 INFO [org.apache.activemq.artemis.ra] (default-threads - 4) AMQ151001: Attempting to reconnect org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec(ra=org.wildfly.extension.messaging.activemq.ActiveMQResourceAdapter@2bd07716 destination=queue/RegulatoryFieldQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=1)
2018-05-01 06:07:27,682 INFO [org.apache.activemq.artemis.ra] (default-threads - 2) AMQ151001: Attempting to reconnect org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec(ra=org.wildfly.extension.messaging.activemq.ActiveMQResourceAdapter@2bd07716 destination=queue/ItemLogQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=5)
2018-05-01 06:07:27,776 INFO [org.apache.activemq.artemis.ra] (default-threads - 1) AMQ151001: Attempting to reconnect org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec(ra=org.wildfly.extension.messaging.activemq.ActiveMQResourceAdapter@2bd07716 destination=queue/LoadRegFileQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=15)
2018-05-01 06:07:27,776 INFO [org.apache.activemq.artemis.ra] (default-threads - 5) AMQ151001: Attempting to reconnect org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec(ra=org.wildfly.extension.messaging.activemq.ActiveMQResourceAdapter@2bd07716 destination=queue/AccessLogQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=15)
2018-05-01 06:07:39,386 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 141) Initializing Mojarra 2.2.13.SP4 for context ''
2018-05-01 06:07:41,089 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 141) WFLYUT0021: Registered web context: '/' for server 'default-server'
2018-05-01 06:07:41,151 INFO [org.jboss.as.server] (ServerService Thread Pool -- 16) WFLYSRV0010: Deployed "gim-web-2.0.0-SNAPSHOT.war" (runtime-name : "gim-web-2.0.0-SNAPSHOT.war")
2018-05-01 06:08:33,402 ERROR [io.undertow.servlet.request] (default task-12) UT015002: Stopping servlet action due to permanent unavailability: javax.servlet.UnavailableException: Cannot initialize RequestProcessor of class org.apache.struts.action.RequestProcessor: java.lang.ClassNotFoundException: org.apache.struts.action.RequestProcessor from [Module "org.wildfly.security.elytron-private" from local module loader @636be97c (finder: local module finder @50a638b5 (roots: C:\wildfly\modules,C:\wildfly\modules\system\layers\base))]
at deployment.gim-web-2.0.0-SNAPSHOT.war//org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:595)
at deployment.gim-web-2.0.0-SNAPSHOT.war//org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at deployment.gim-web-2.0.0-SNAPSHOT.war//org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.api//javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.api//javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at io.undertow.servlet//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
at io.undertow.servlet//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
at deployment.gim-web-2.0.0-SNAPSHOT.war//com.stryker.inst.auth.ntlm.NTLMFilter.doFilter(Unknown Source)
at io.undertow.servlet//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
at io.undertow.servlet//io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
at io.undertow.servlet//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undertow.servlet//io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at org.wildfly.security.elytron-web.undertow-server//org.wildfly.elytron.web.undertow.server.ElytronRunAsHandler.lambda$handleRequest$1(ElytronRunAsHandler.java:68)
at org.wildfly.security.elytron-private//org.wildfly.security.auth.server.FlexibleIdentityAssociation.runAsFunctionEx(FlexibleIdentityAssociation.java:101)
at org.wildfly.security.elytron-private//org.wildfly.security.auth.server.Scoped.runAsFunctionEx(Scoped.java:150)
at org.wildfly.security.elytron-private//org.wildfly.security.auth.server.Scoped.runAs(Scoped.java:62)
at org.wildfly.security.elytron-web.undertow-server//org.wildfly.elytron.web.undertow.server.ElytronRunAsHandler.handleRequest(ElytronRunAsHandler.java:67)
at io.undertow.servlet//io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
at io.undertow.servlet//io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.core//io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
at io.undertow.core//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.core//io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53)
at io.undertow.core//io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet//io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undertow.servlet//io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)
at io.undertow.core//io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.core//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.extension.undertow//org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.core//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.extension.undertow//org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
at io.undertow.core//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
at io.undertow.servlet//io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
at io.undertow.servlet//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
at io.undertow.servlet//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
at io.undertow.servlet//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.extension.undertow//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
at org.wildfly.extension.undertow//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
at org.wildfly.extension.undertow//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
at org.wildfly.extension.undertow//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
at org.wildfly.extension.undertow//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
at io.undertow.servlet//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
at io.undertow.servlet//io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
at io.undertow.servlet//io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
at io.undertow.core//io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)
at io.undertow.core//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.base/java.lang.Thread.run(Thread.java:844)