Note that there are some explanatory texts on larger screens.

plurals
  1. POJSF2 application not accessible without /faces/
    primarykey
    data
    text
    <p>I have a JSF2 application I can access my application @ <a href="http://tvmteleshopping.com/faces/ui/manageProfile.xhtml" rel="noreferrer">http://tvmteleshopping.com/faces/ui/manageProfile.xhtml</a></p> <p>but when i use <a href="http://tvmteleshopping.com/ui/manageProfile.xhtml" rel="noreferrer">http://tvmteleshopping.com/ui/manageProfile.xhtml</a> (without /faces/ ) this request is being served by Apache not tomcat. Any only static HTML content is rendered.</p> <p>I am using Apache to serve static HTML files and tomcat for serving *.xhtml files</p> <p>My Servlet mapping is fine: <strong>web.xml</strong></p> <pre><code> &lt;servlet&gt; &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt; &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt; &lt;load-on-startup&gt;1&lt;/load-on-startup&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt; &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt; &lt;url-pattern&gt;*.jsf&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt; &lt;url-pattern&gt;*.faces&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt; &lt;url-pattern&gt;*.xhtml&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; </code></pre> <p>My <strong>cp_jkmount.conf</strong> to redirect jsp and jsf files to tocat server.</p> <pre><code>&lt;IfModule mod_jk.c&gt; JkMount /*.jsp ajp13 JKMount /*.do ajp13 JKMount /servlet/* ajp13 JKMount /servlets/* ajp13 JKMount /*.xhtml ajp13 JKMount /ui/* ajp13 JKMount /ui/*.xhtml ajp13 JKMount /faces/* ajp13 JKMount /*.jsf ajp13 &lt;/IfModule&gt; </code></pre> <p>I have two <strong>cp_jkmount.conf</strong>, one in /usr/local/apache/conf/userdata/std/<strong>1</strong>/myuser/mysite.com/cp_jkmount.conf</p> <p>and one in /usr/local/apache/conf/userdata/std/<strong>2</strong>/myuser/mysite.com/cp_jkmount.conf</p> <p>And my both cp_jkmount are same. I don't know why i do have two cp_jkmount.conf in two different directories.</p> <p>P.S: my application is working fine for those .xhtml files which are in root folder <a href="http://tvmteleshopping.com/index.xhtml" rel="noreferrer">http://tvmteleshopping.com/index.xhtml</a></p> <p>for this i think my cp_jkmout.conf works fine. But for those .xhtml files behind 'ui' folder it doesn't work.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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