MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
paulbhart
Post subject: Problems getting JSF (*.faces) to work correctly in web.xml  PostPosted: Nov 05, 2004 - 08:20 PM
Veteran Member
Veteran Member


Joined: Mar 02, 2004
Posts: 9

Using Tomcat 5.0
Eclipse 3.0


I have created a very simple example application (2 files in web root)
one [filename].faces and one [anotherfilename].jsp. When I point my
browser at [filename].faces file, it takes a while and then
I get an 404 error about not being
able to access [filename].jsp If I try a [anotherfilename].jsp it works
fine. The weird thing is it seems to work fine if I configure web.xml
to look for /faces/* instead of either *.jsf or *.faces

Here is my web.xml file
--
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
</web-app>
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
paulbhart
Post subject:   PostPosted: Nov 05, 2004 - 09:23 PM
Veteran Member
Veteran Member


Joined: Mar 02, 2004
Posts: 9

another piece of information making me think it might be in the configuration of tomcat.

I can interject errors into the *.faces, *.jsp files (both jsp and jsf errors) and I still only
get the 404 error. Making me thing that the servlets for jsp and jsf aren't even getting
called prior to tomcat issuing the 404 error . . .
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
paulbhart
Post subject:   PostPosted: Nov 06, 2004 - 12:54 AM
Veteran Member
Veteran Member


Joined: Mar 02, 2004
Posts: 9

Never mind, figure it out, nothing here but :oops:
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits