Re: deploymant failure with jsf
On 18/04/2010 21:13, Yucca Nel wrote: over the last four days deployment continues to fail of my simple war that I set up to get to familiar with jsf. First I will stress that I am using windows 7 and the problem occurs withboth majorra and myFaces version 1.2 andboth tomcat 6.0.2 and 6.026 my war ir correctly laid out and contains the libs and classes in the WEB-INF folder. my web.xml is as follows: ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet !-- Faces Servlet Mapping -- servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern /servlet-mapping /web-app as you can see, my facess servlet should be activated on any request to file located in my faces folder inside my web folder. OK, makes sense so far. index.jsp forwards a request to welcome.jsp and this is where deployment fails Deployment fails, or parts of the application don't work? How do you know it fails (you don't say)? Does index.jsp execute any other logic? because the minute I remove the url pattern for /faces/* then deployment succeeds. Deployment succeeds? How do you know (you don't say)? Deployment fails with a 404 and no jsps or html are located in Web-INF meaning that all should be directly accesable. Are you certain they are in the WAR file? Have you checked, if so, how? /It would be easy to assume that I am not packaging my war incorrectly, but when I use same packaging and other jars unrelated to jsf like jstl then app find these jars as needed. Perhaps I am using incorrect jsf jars. Could anyone mail me a copy of jsf lib that they are using and have found to work in above mentioned containers and possibly point out any obvious errors that I am making? Nope. You've provided very little configuration information, so it would be hard for us to know what, if anything, you're doing wrong. p signature.asc Description: OpenPGP digital signature
Re: deploymant failure with jsf
Many thanks, I resolved issue this morning and was my own misunderstanding or prefix and suffix mappings in jsf. Many tutorials(and this was my first jsf project don't mention when they forward a request in index.jsp to page-y.jsf that page-y is in fact a file whith.jsp and and not jsf extension. Please advise on how I provide others with info that issue was rsolved?? regards, Yucca -- From: Pid p...@pidster.com Sent: Saturday, April 17, 2010 10:42 PM To: Tomcat Users List users@tomcat.apache.org Subject: Re: deploymant failure with jsf - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: deploymant failure with jsf
On 19/04/2010 10:19, Yucca Nel wrote: Many thanks, I resolved issue this morning and was my own misunderstanding or prefix and suffix mappings in jsf. Many tutorials(and this was my first jsf project don't mention when they forward a request in index.jsp to page-y.jsf that page-y is in fact a file whith.jsp and and not jsf extension. Please advise on how I provide others with info that issue was rsolved?? You just have done. p regards, Yucca -- From: Pid p...@pidster.com Sent: Saturday, April 17, 2010 10:42 PM To: Tomcat Users List users@tomcat.apache.org Subject: Re: deploymant failure with jsf signature.asc Description: OpenPGP digital signature
deploymant failure with jsf
over the last four days deployment continues to fail of my simple war that I set up to get to familiar with jsf. First I will stress that I am using windows 7 and the problem occurs withboth majorra and myFaces version 1.2 andboth tomcat 6.0.2 and 6.026 my war ir correctly laid out and contains the libs and classes in the WEB-INF folder. my web.xml is as follows: ?xml version=1.0 encoding=UTF-8? web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; version=2.5 servlet servlet-nameFaces Servlet/servlet-name servlet-classjavax.faces.webapp.FacesServlet/servlet-class load-on-startup1/load-on-startup /servlet !-- Faces Servlet Mapping -- servlet-mapping servlet-nameFaces Servlet/servlet-name url-pattern/faces/*/url-pattern /servlet-mapping /web-app as you can see, my facess servlet should be activated on any request to file located in my faces folder inside my web folder. index.jsp forwards a request to welcome.jsp and this is where deployment fails because the minute I remove the url pattern for /faces/* then deployment succeeds. Deployment fails with a 404 and no jsps or html are located in Web-INF meaning that all should be directly accesable. /It would be easy to assume that I am not packaging my war incorrectly, but when I use same packaging and other jars unrelated to jsf like jstl then app find these jars as needed. Perhaps I am using incorrect jsf jars. Could anyone mail me a copy of jsf lib that they are using and have found to work in above mentioned containers and possibly point out any obvious errors that I am making?