2 Replies Latest reply on Oct 16, 2011 6:00 PM by badr elhouari

    Hitting a jsf page using ip address

    Vikas V Newbie

      Hi,

       

      Am using,  JSF 2.0 , Jboss As 6.0, GateIn 3.1 and my war is built using Maven 3.1

       

      So, I will get a war like myWar-0.0.1-SNAPSHOT.war

       

      My xhtml file is placed under webapp -> web-inf -> jsp -> html -> myJsf.xhtml

       

      My war , myWar-0.0.1-SNAPSHOT.war , is deployed in  App server and I want to access myJsf page from Web server.

       

      Something like this ...   http:// myWebServerIp /myWar-0.0.1-SNAPSHOT/jsp/html/myJsf.xhtml

       

      I have tried all combinations like http:// myWebServerIp /portal/myWar-0.0.1-SNAPSHOT/jsp/html/myJsf.xhtml ( Because context path for GateIn

       

      is /portal)

       

      But, am not able to access that page.

       

      That war is a servlet.

       

      When I hit that URL I get 404 error.

       

       

      My web.xml has (among other configurations), below configuration

       

      <servlet-mapping>

          <servlet-name>Faces Servlet</servlet-name>

          <url-pattern>*.jsf</url-pattern>

          <url-pattern>/faces/*</url-pattern>

      </servlet-mapping>

       

       

      How can I access myJsf page by hitting URL ?

       

       

      Thanks in advance!

       

      Regards,

       

      Vikas