Not sure how exactly this is caused and how exactly Maven plays a role since I don't use it, but I see at least three potential causes.
Not sure how exactly this is caused and how exactly Maven plays a role since I don't use it, but I see at least three potential causes: You have JSF 1. X libraries in your /WEB-INF/lib or elsewhere in classpath. Remove it (or instruct Maven to not include them).
Glassfish 3 already ships with builtin JSF 2. X libraries. The was namely introduced in JSF 2.0 and is thus absent in JSF 1.x.
The FaceletViewHandler declaration in faces-config. Xml is entirely superfluous. Remove it.
This is only mandatory when you're using JSF 1.x. JSF 2. X uses by default Facelets.
If you did add it because you couldn't get Facelets to run, then the whole problem is definitely caused by cause #1 (and then remove any Facelets 1. X libraries as well). The web.
Xml is not been declared as Servlet 3.0. I'm not sure how Glassfish acts on this with regard to the provided JSF implementation, but you should be declaring Servlet 3.0 whenever the container supports it. Also the com.sun.faces.
ExpressionFactory param is entirely superfluous with Servlet 3.0 since it is already the Glassfish-default one. Unrelated to the concrete problem, I recommend to bring the FacesServlet mappings to a minimum. Stick to the *.
Xhtml one and get rid of the others.
The post by BalusC solved the problem. Using a 3.0 web. Xml declaration helped.
– Chin Boon Mar 6 at 4:20 You're welcome. But what exactly was the cause? – BalusC Mar 6 at 4:20 thank you for your advise.
The servlet 2.5 web. Xml declaration was cause. – Chin Boon Mar 6 at 4:24 This actually surprises me a bit.
I know that Glassfish is pretty strict, but JSF 2.0 is designed to be backwards compatible with Servlet 2.5. This goes overboard. Thank you for mentioning the actual cause :) – BalusC Mar 6 at 4:25 For what is worth, I posted an issue report. – BalusC Mar 6 at 4:37.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.