com.sun.faces.context.FacesFileNotFoundException: /default.xhtml Not Found in ExternalContext as a Resource app server.log: [#|2016-07-06T12:45:41.827+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=150;_ThreadName=Thread-2;|2016-07-06 12:45:41,827 [http-thread-pool-28881(2)] - DEBUG - Retrieving configuration settings for controller 'ess.vmware' |#] [#|2016-07-06T12:45:41.848+0200|SEVERE|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.context|_ThreadID=150;_ThreadName=Thread-2;|javax.faces.application.ViewExpiredException: viewId:/balancer.xhtml - View /balancer.xhtml could not be restored.

GitHub | AndreasTWolf | 5 months ago
  1. 0

    "VMWare controller:" error 500 when session time out occurs

    GitHub | 5 months ago | AndreasTWolf
    com.sun.faces.context.FacesFileNotFoundException: /default.xhtml Not Found in ExternalContext as a Resource app server.log: [#|2016-07-06T12:45:41.827+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=150;_ThreadName=Thread-2;|2016-07-06 12:45:41,827 [http-thread-pool-28881(2)] - DEBUG - Retrieving configuration settings for controller 'ess.vmware' |#] [#|2016-07-06T12:45:41.848+0200|SEVERE|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.context|_ThreadID=150;_ThreadName=Thread-2;|javax.faces.application.ViewExpiredException: viewId:/balancer.xhtml - View /balancer.xhtml could not be restored.
  2. 0

    Filter in Glassfish 3.1.1 custom 500/404/"Not Found in ExternalContext as Resource" page

    Stack Overflow | 4 years ago | JScoobyCed
    com.sun.faces.context.FacesFileNotFoundException: /m/test.xhtml Not Found in ExternalContext as a Resource
  3. 0

    How-to: Modular Java EE Applications with CDI and PrettyFaces | OCPsoft

    ocpsoft.org | 4 months ago
    com.sun.faces.context.FacesFileNotFoundException: /jk1.xhtml Not Found in ExternalContext as a Resource
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The right URL is:http://host/path/page.jsf If I access the jsf page URL by mistake like: http://host/path/page1.jsf It changed the jsf extension to JSP by itself, and then triggered 500 error. The log says: SEVERE: PWC6117: File "/path/page1.jsp" not found WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.NullPointerException at com.sun.faces.context.flash.ELFlash.doLastPhaseActions(ELFlash.java:607) at com.sun.faces.context.ExternalContextImpl.responseFlushBuffer(ExternalContextImpl.java:899) at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:154) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:99) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849) at com.sun.grizzly.arp.DefaultAsyncExecutor.execute(DefaultAsyncExecutor.java:159) at com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:145) at com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:102) at com.sun.grizzly.http.TaskBase.run(TaskBase.java:193) at com.sun.grizzly.http.TaskBase.execute(TaskBase.java:175) at com.sun.grizzly.arp.DefaultAsyncHandler.handle(DefaultAsyncHandler.java:145) at com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:210) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722) But if the URL is: http://host/path/page1.xhtml then the 404 error is issued, and the log shows: WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception com.sun.faces.context.FacesFileNotFoundException: /path/page1.xhtml Not Found in ExternalContext as a Resource at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:231) at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:272) at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:208) at com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:113) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:233) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849) at com.sun.grizzly.arp.DefaultAsyncExecutor.execute(DefaultAsyncExecutor.java:159) at com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:145) at com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:102) at com.sun.grizzly.http.TaskBase.run(TaskBase.java:193) at com.sun.grizzly.http.TaskBase.execute(TaskBase.java:175) at com.sun.grizzly.arp.DefaultAsyncHandler.handle(DefaultAsyncHandler.java:145) at com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:210) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722) The web.xml contains: <context-param> <param-name>javax.faces.FACELETS_SUFFIX</param-name> <param-value>.xhtml</param-value> </context-param> and <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.jsf</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.xhtml</url-pattern> </servlet-mapping>

    Java.net JIRA | 4 years ago | nullone
    com.sun.faces.context.FacesFileNotFoundException: /ponderacion/indicadores/indexs.xhtml Not Found in ExternalContext as a Resource
  6. 0

    I got this Exception when I changed index.xhtml to indexs.xhtml to test: com.sun.faces.context.FacesFileNotFoundException: /ponderacion/indicadores/indexs.xhtml Not Found in ExternalContext as a Resource at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:231) at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:287) at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:208) at com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:113) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:233) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217) Mojarra needs return a 404 error in this case, not 500. I can use a workaround easily but is better to fix it. When I type index.xhtm instead of index.xhtml for example I get the correct error (404).

    Java.net JIRA | 4 years ago | Lynx6
    com.sun.faces.context.FacesFileNotFoundException: /ponderacion/indicadores/indexs.xhtml Not Found in ExternalContext as a Resource

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.sun.faces.context.FacesFileNotFoundException

      /default.xhtml Not Found in ExternalContext as a Resource app server.log: [#|2016-07-06T12:45:41.827+0200|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=150;_ThreadName=Thread-2;|2016-07-06 12:45:41,827 [http-thread-pool-28881(2)] - DEBUG - Retrieving configuration settings for controller 'ess.vmware' |#] [#|2016-07-06T12:45:41.848+0200|SEVERE|glassfish3.1.2|javax.enterprise.resource.webcontainer.jsf.context|_ThreadID=150;_ThreadName=Thread-2;|javax.faces.application.ViewExpiredException: viewId:/balancer.xhtml - View /balancer.xhtml could not be restored.

      at com.sun.faces.lifecycle.RestoreViewPhase.execute()
    2. JSF
      LifecycleImpl.execute
      1. com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:205)
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      3. com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
      4. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      4 frames
    3. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
      1 frame
    4. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
      2. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
      3. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      3 frames
    5. org.oscm.app
      AuthorizationFilter.doFilter
      1. org.oscm.app.vmware.ui.filter.AuthorizationFilter.doFilter(AuthorizationFilter.java:100)
      1 frame
    6. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      5. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      6. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      7. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
      8. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
      9 frames
    7. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
      2. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
      2 frames
    8. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:229)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      13 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:744)
      1 frame