0 Replies Latest reply on Apr 24, 2018 2:56 PM by Mukul Panwar

    javax.servlet.ServletException: __redirected.__SAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory

    Mukul Panwar Newbie

      'org.springframework.web.context.support.XmlWebApplicationContext' for servlet 'action'

      2018-04-24 14:09:06,197 INFO  [com.db.lemg.common.web.security.SpringContextLoaderPlugIn] (ServerService Thread Pool -- 169) ContextLoaderPlugIn for Struts ActionServlet 'action', module '': initialization completed in 280 ms

      2018-04-24 14:09:06,323 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 169) MSC000001: Failed to start service jboss.undertow.deployment.default-server.default-host./abc: org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./abc: javax.servlet.ServletException: __redirected.__SAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:85)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

      at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

      at java.lang.Thread.run(Thread.java:745)

      at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      Caused by: javax.servlet.ServletException: __redirected.__SAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory

      at flex.server.j2ee.proxy.ProxyServlet.setupFlexService(ProxyServlet.java:306)

      at flex.server.j2ee.proxy.ProxyServlet.init(ProxyServlet.java:215)

      at flex.bootstrap.BootstrapServlet.init(BootstrapServlet.java:44)

      at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)

      at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)

      at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)

      at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:239)

      at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:133)

      at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:527)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)

      at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)

      ... 6 more

       

       

      2018-04-24 14:09:06,333 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "abc.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./abc" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./abc: javax.servlet.ServletException: __redirected.__SAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory

          Caused by: javax.servlet.ServletException: __redirected.__SAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory"}}

      2018-04-24 14:09:06,384 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 40) WFLYSRV0010: Deployed "abc.ear" (runtime-name : "abc.ear")

      2018-04-24 14:09:06,388 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report

       

      Could you please suggest what is the issue and how can i fix this ?

       

      I already followed this link but no luck : [WFLY-4673] Caused by: java.lang.ClassCastException: __redirected.__SAXParserFactory cannot be cast to javax.xml.parsers…

       

       

      AS 7.0.10.Final... java.lang.ClassCastException: __redirected.__SAXParserFactory cannot be cast to javax.xml.parsers.SAXParserFactory

       

      I am getting this error during deployment of abc.ear