Results 1 to 3 of 3
  1. #1
    hartmannr76 is offline Member
    Join Date
    Feb 2012
    Posts
    3
    Rep Power
    0

    Default The requested resource () is not available

    Ok, so this has been in my face the past couple hours and I just can't figure out how to get past this...

    I setup eclipse for java ee, I am using tomcat 6 and have been following tutorials online to get me going..

    I have configured tomcat to have the javaee.jar and appserv-rt.jar and have made a regular "Dynamic Web Project" that ran fine and I saw the page I made.
    I made a JSF 1.2 project in eclipse and am using the libraries jsf-api, jsf-impl, jstl, jstl-connector, jstl-impl, and standard.jar (as I have found other people saying that had this problem)

    my web.xml file looks as such:
    Java Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>JSF-tut</display-name>
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
      <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>
      <context-param>
        <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
      </context-param>
      <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
        <param-value>resources.application</param-value>
      </context-param>
      <listener>
        <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
      </listener>
    </web-app>
    I right-click on my login.jsp file and choose "Run on Server" which directs me to http://localhost:8080/JSF-tut/faces/login.jsp and is giving me a 404 with "The requested resource () is not available"
    which is killing me trying to figure out how to resolve this issue..

    Please if anyone can help me out with this I will be grateful!!!

    Thank you in advance for your help!!

  2. #2
    nicephotog is offline Member
    Join Date
    Mar 2012
    Posts
    41
    Rep Power
    0

    Default Re: The requested resource () is not available

    so you are saying you have a .war called "JSF-tut.war" and in that folder of the same name is a index.jsp with a redirect to login.jsp???
    and you compiled the application and packaged it first ???

  3. #3
    nicephotog is offline Member
    Join Date
    Mar 2012
    Posts
    41
    Rep Power
    0

    Default Re: The requested resource () is not available

    I'd also try this
    http://localhost:8080/faces/JSF-tut/login.jsp

Similar Threads

  1. Replies: 3
    Last Post: 06-23-2011, 10:31 PM
  2. HTTP Status 404-The requested resource is not available.
    By DeViLHuNTeR in forum Java Servlet
    Replies: 17
    Last Post: 03-11-2011, 03:40 PM
  3. The requested resource () is not available. Error
    By shyameni in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-17-2010, 10:22 AM
  4. The requested resource is not available.
    By ravichandra.t in forum Java Servlet
    Replies: 0
    Last Post: 07-29-2009, 03:18 PM
  5. The requested resource (/Test.war/index.jsp) is not available.
    By rameshraj in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 04-06-2009, 12:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •