Note that there are some explanatory texts on larger screens.

plurals
  1. POGlassfish 3.1.2 Faces Servlet xhtml not processing properly / missing output
    text
    copied!<p>I have two similar pages, one named index.xhtml and one named index_old.xhtml both in the Web Pages root, as seen in NetBeans 7.1.2.</p> <p>index.xhtml processes properly and has the correct output.</p> <p>index_old.xhtml seems to show only the hard coded text and nothing else.</p> <p>When index.xhtml --> index_older.xhtml &amp; index_old.xhtml --> index.xhtml then the formerly not functioning properly index_old.xhtml now displays the correct output &amp; the formerly correctly working index.xhtml now does not display the proper output.</p> <p>Why is this happening? How is this issue resolved?</p> <p>The following are my index files:</p> <p>index.xhtml:</p> <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"&gt; &lt;h:head&gt; &lt;title&gt;Development Environment - THIS SITE IS A LIVE VIEW OF A WORK IN PROGRESS&lt;/title&gt; &lt;h:outputStylesheet name="css/jsfcrud.css"/&gt; &lt;/h:head&gt; &lt;h:body&gt; &lt;h:graphicImage id="logo" value="/images/logo.PNG" width="256" height="55" /&gt; &lt;br /&gt; &lt;br /&gt; Development Environment - THIS SITE IS A LIVE VIEW OF A WORK IN PROGRESS. &lt;br /&gt; &lt;br /&gt; This is a live, fully functioning dynamic web site for the migration of the Service and Naming Standards Inventory workbook to a web enabled, database hosted application.&lt;br /&gt; It's purpose is to allow for testing and development of expected functionality before the application is deployed to a production server.&lt;br /&gt; &lt;br /&gt; For feature requests, change requests, and bug reports, please send a detailed email to &lt;br /&gt; &lt;br /&gt; &lt;a href="/SNSI/secureNOC/indexSecure.xhtml"&gt;NOC personnel log in here&lt;/a&gt; &lt;br /&gt; &lt;br /&gt; &lt;a href="/SNSI/secureBasic/indexBasic.xhtml"&gt;Other authorized personnel log in here&lt;/a&gt; &lt;/h:body&gt; &lt;/html&gt; </code></pre> <p>index_old.xhtml:</p> <pre><code>&lt;?xml version='1.0' encoding='UTF-8' ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"&gt; &lt;h:head&gt; &lt;title&gt;Development Environment - THIS SITE IS A LIVE VIEW OF A WORK IN PROGRESS&lt;/title&gt; &lt;h:outputStylesheet name="css/jsfcrud.css"/&gt; &lt;/h:head&gt; &lt;h:body&gt; &lt;h:graphicImage id="logo" value="/images/logo.PNG" width="256" height="55" /&gt; &lt;br /&gt; &lt;br /&gt; Development Environment - THIS SITE IS A LIVE VIEW OF A WORK IN PROGRESS. &lt;br /&gt; &lt;br /&gt; This is a live, fully functioning dynamic web site for the migration of the Service and Naming Standards Inventory workbook to a web enabled, database hosted application.&lt;br /&gt; It's purpose is to allow for testing and development of expected functionality before the application is deployed to a production server.&lt;br /&gt; &lt;br /&gt; For feature requests, change requests, and bug reports, please send a detailed email to &lt;br /&gt; &lt;br /&gt; &lt;h:form&gt; &lt;h:commandLink action="/darkFiber/List" value="Open Dark Fiber Table" target="_blank"/&gt; &lt;/h:form&gt; &lt;h:form&gt; &lt;h:commandLink action="/darkFiberCircuitIdAid/List" value="Open Dark Fiber Circuit ID Aid Table" target="_blank"/&gt; &lt;/h:form&gt; &lt;/h:body&gt; &lt;/html&gt; </code></pre> <hr> <p>Changed as BalusC suggested and received an error and stack trace as a result. Please see below for the error &amp; stack trace:</p> <pre><code>An Error Occurred: /faces/index.xhtml Not Found in ExternalContext as a Resource - Stack Trace com.sun.faces.context.FacesFileNotFoundException: /faces/index.xhtml Not Found in ExternalContext as a Resource at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:232) at com.sun.faces.facelets.impl.DefaultFaceletFactory.resolveURL(DefaultFaceletFactory.java:273) at com.sun.faces.facelets.impl.DefaultFaceletFactory.getMetadataFacelet(DefaultFaceletFactory.java:209) at com.sun.faces.application.view.ViewMetadataImpl.createMetadataView(ViewMetadataImpl.java:114) 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$AdapterCallable.call(ContainerMapper.java:317) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228) 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) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload