dimanche 26 juillet 2015

Openshift project runs locally but not on the server

what i did is first i created a maven project, than added idex.xhtml file for JSF and changed the web.xml to

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.1" xmlns="http://ift.tt/19L2NlC" xmlns:xsi="http://ift.tt/ra1lAU" xsi:schemaLocation="http://ift.tt/19L2NlC http://ift.tt/1drxgYl">
    <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
    </context-param>
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>faces/index.xhtml</welcome-file>
    </welcome-file-list>
</web-app>

After that deleted deleted JSP and html classes which i m not gonna need it. So when i try to run it locally i get the index page but when i run it on the web i get http status 404 not found. I committed and pushed my changes and made clean build before pushing. Any ideas ?

Aucun commentaire:

Enregistrer un commentaire