Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Requested Resource Not Available
Requested Resource Not Available [message #196392] Thu, 12 July 2007 15:36 Go to next message
Eclipse User
Originally posted by: Ben.Sisson.ccci.org

In "WTP Tutorials - JavaServer Faces Tools Tutorial" I get the following
message when I try to run the login.jsp: "The requested resource
(/JSFTutorial/login.faces) is not available" I looked under the archives
and found a related case and it suggested copying the jsf-api.jar and
js-impl.jar files to the /lib directory of the Tomcat server. I did this,
restarted the server and still get the same message.

I'm running:
Eclipse 3.3
WTP 2.0
Tomcat 6.0.13
JavaServer Faces 1.2
Java 5.0

I would apprecaite any help in this. Everything seems to be setup the
same as the tutorial had directed.

Here is a copy of my web.xml file:
<?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>JSFTutorial</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>
</web-app>
Re: Requested Resource Not Available [message #196457 is a reply to message #196392] Sun, 15 July 2007 08:10 Go to previous message
epson wang is currently offline epson wang
Messages: 32
Registered: July 2009
Member
First you should to eclipse.webtools.jsf
your web.xml is correct.

the login.faces is not availabe is that you should have a login.jsp in
the folder "WebContent" of your project
"WebContent" is your web root folder.

On Thu, 12 Jul 2007 15:36:47 +0000 (UTC), Ben.Sisson@ccci.org (Ben)
wrote:

>In "WTP Tutorials - JavaServer Faces Tools Tutorial" I get the following
>message when I try to run the login.jsp: "The requested resource
>(/JSFTutorial/login.faces) is not available" I looked under the archives
>and found a related case and it suggested copying the jsf-api.jar and
>js-impl.jar files to the /lib directory of the Tomcat server. I did this,
>restarted the server and still get the same message.
>
Previous Topic:create webservice for OC4J
Next Topic:CSS and HTML Snippets
Goto Forum:
  


Current Time: Wed Sep 24 02:37:52 GMT 2014

Powered by FUDForum. Page generated in 0.09626 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software