facebook

JSFLoginDemo -> userLogin.faces not ceated

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #232626 Reply

    agenturs
    Member

    I just started using MyEclipse on Mac OS X and I am trying to work through the JSFLoginDemo tutorial.

    For some reason while deploying to JBOSS 4 (same thing with TOMCAT 5) the file userLogin.faces is not created.

    I googled the problem and searched in this forum but couldn’t find anything related (except a possible relation to web.xml)

    Could anyone point me in the right direction?

    Thanks

    Jean-Marie

    #232655 Reply

    What do you mean by the file not created? There is no such file in the folder or the server cannot find this resource when you type in the URL?
    How do you map the JSF servlet?

    #232670 Reply

    agenturs
    Member

    I was looking for the file userLogin.faces since http://localhost:8080/JSFLoginDemo/userLogin.faces didn’t work. I couldn’t find it on the server so I figured there must have been something wrong with my config.

    Now, I just tried it again and it does work.

    Does that mean that by accessing userLogin.faces JBOSS looks for faces-config.xml on its own so there doesn’t have to be a file userLogin.faces?

    Jean-Marie

    #232673 Reply

    That request is processed by a JSF servlet that is mapped to the *.faces URL. Then the servlet will look for the JSP file with respective name and start processing JSF directives in it.
    I guess you have the userLogin.jsp file – it’s the actual JSP page that is processed.

    #232722 Reply

    agenturs
    Member

    OK, I guess the mapping is defined in web.xml (<servlet-mapping>).

    Thanks for clearing that up.

    Jean-Marie

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: JSFLoginDemo -> userLogin.faces not ceated

You must be logged in to post in the forum log in