- This topic has 2 replies, 1 voice, and was last updated 19 years, 11 months ago by paulbhart.
-
AuthorPosts
-
paulbhartMemberUsing Tomcat 5.0
Eclipse 3.0I 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 *.facesHere 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>
paulbhartMemberanother 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 . . .
paulbhartMemberNever mind, figure it out, nothing here but 😳
-
AuthorPosts