com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.sun.faces.config.WebConfiguration cannot be cast to com.sun.faces.config.WebConfiguration

Icesoft | mmorales84 | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Re:portlet demo error

    Icesoft | 7 years ago | mmorales84
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.sun.faces.config.WebConfiguration cannot be cast to com.sun.faces.config.WebConfiguration

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.sun.faces.config.WebConfiguration cannot be cast to com.sun.faces.config.WebConfiguration

      at com.sun.faces.config.WebConfiguration.getInstance()
    2. JSF
      RenderKitFactoryImpl.<init>
      1. com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:116)
      2. com.sun.faces.config.WebConfiguration.getInstance(WebConfiguration.java:104)
      3. com.sun.faces.renderkit.ResponseStateManagerImpl.init(ResponseStateManagerImpl.java:351)
      4. com.sun.faces.renderkit.ResponseStateManagerImpl.<init>(ResponseStateManagerImpl.java:99)
      5. com.sun.faces.renderkit.RenderKitImpl.<init>(RenderKitImpl.java:88)
      6. com.sun.faces.renderkit.RenderKitFactoryImpl.<init>(RenderKitFactoryImpl.java:68)
      6 frames
    3. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      5. java.lang.Class.newInstance0(Class.java:355)
      6. java.lang.Class.newInstance(Class.java:308)
      6 frames
    4. JavaEE 7
      FactoryFinder.getFactory
      1. javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:537)
      2. javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:386)
      3. javax.faces.FactoryFinder.access$400(FactoryFinder.java:135)
      4. javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:717)
      5. javax.faces.FactoryFinder.getFactory(FactoryFinder.java:239)
      5 frames
    5. JSF
      ConfigureListener.contextInitialized
      1. com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:186)
      2. com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:131)
      3. com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:203)
      4. com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
      4 frames
    6. org.jboss.web
      JBossJSFConfigureListener.contextInitialized
      1. org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:75)
      1 frame
    7. Glassfish Core
      StandardContext.start
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
      2 frames
    8. JBoss Application Server Tomcat
      TomcatDeployment.performDeploy
      1. org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
      2. org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
      2 frames
    9. JBoss Application Server Server
      WebModule.start
      1. org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
      2. org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
      3. org.jboss.web.deployers.WebModule.start(WebModule.java:97)
      3 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    11. org.jboss.mx
      ReflectedDispatcher.invoke
      1. org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
      1 frame
    12. JBoss Application Server J2SE
      MBeanServerImpl.invoke
      1. org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
      2. org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      3. org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      4. org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      4 frames
    13. org.jboss.system
      ServiceProxy.invoke
      1. org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
      1 frame
    14. Unknown
      $Proxy36.start
      1. $Proxy36.start(Unknown Source)
      1 frame
    15. org.jboss.system
      StartStopLifecycleAction.installAction
      1. org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
      2. org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
      2 frames
    16. JBoss Microcontainer Dependency
      AbstractControllerContext.install
      1. org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      2. org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      3. org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      4. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      4 frames
    17. org.jboss.system
      ServiceControllerContext.install
      1. org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
      1 frame
    18. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      2. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      3. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      4. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      5. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      6. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      6 frames
    19. JBoss Application Server System
      ServiceDeployer.deploy
      1. org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      2. org.jboss.system.ServiceController.start(ServiceController.java:460)
      3. org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
      4. org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
      5. org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
      5 frames
    20. JBoss Deployers SPI
      AbstractRealDeployer.deploy
      1. org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      2. org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      2 frames
    21. JBoss Deployers Impl
      DeployersImpl.install
      1. org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      2. org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
      3. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      4. org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
      5. org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      5 frames
    22. JBoss Microcontainer Dependency
      AbstractController.change
      1. org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      2. org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      3. org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      4. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      5. org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      6. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      7. org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      7 frames
    23. JBoss Deployers Impl
      MainDeployerImpl.process
      1. org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      2. org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
      2 frames
    24. JBoss Application Server System
      HDScanner.run
      1. org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
      2. org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
      2 frames
    25. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      3. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      6. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      7. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      8. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      9. java.lang.Thread.run(Thread.java:619)
      9 frames