The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:Hello Menen, welcome to the JavaRanch.
When you create a JSF webapp, you must include the JSF api jar as part of the webapp, and like all library JARs for a J2EE WAR, that means you put a copy of the jsf-api.jar in the webapp's WEB-INF/lib directory.
Tomcat is not JEE 5 compliant, so the actual JSF implementation classes aren't a standard part of Tomcat the way they are in full-fledged JEE servers. So you have to also include the jsf-impl.jar in WEB-INF/lib.
Multiple Annotations on this line:
The content of element type must match "(head, body)"
Attribute "xmlns:h" must be declared for element type html
Attribute "xmlns:f" must be declared for element type html
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:The message you got from Tomcat 5.5 was probably because 5.5 JSF webapps also requires the EL jar that's part of Tomcat 6.
I'm not sure about the html error. The first message I think would require being able to see some more of the HTML than just the outermost element. The 2 namespace errors shouldn't be happening if the jsf-api jar is located in the apps classpath, since that's where those definitions are stored.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Tim Holloway wrote:
Tim Holloway wrote:The message you got from Tomcat 5.5 was probably because 5.5 JSF webapps also requires the EL jar that's part of Tomcat 6.
I'm not sure about the html error. The first message I think would require being able to see some more of the HTML than just the outermost element. The 2 namespace errors shouldn't be happening if the jsf-api jar is located in the apps classpath, since that's where those definitions are stored.
BTW, it's usually better to start a new thread. Otherwise we sometimes end up with conversations on 2 different subjects and that can not only be confusing, it can make it a little harder for people who use the forum search.
Menen Zwerky wrote:I put
I put mojarra-2.0.3 jsf-impl and isf-api libs under WEB-INF/lib of Tomcat 5.5
but with the url http://localhost:8888/hello-world/
So that the exception has changed like that:
javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
do you know what it can depend by?
Consider Paul's rocket mass heater. |