You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Timo --Blazko-- Boewing <bl...@neveprise.net> on 2005/07/17 23:52:59 UTC

RE: Probs creating a first test (error on setupResponseWriter() of each UI component)

[MyFaces List: I just mailed this mail cc because it might help others;
problem was getting setupResponseWriter() extceptions with very simple
hello world apps in Eclipse together w/ Tomcat 5.5x and JDK 1.5]


Hello all,

I do not know if you are still struggeling w/ your JSF stuff to get it
working at all :-)
But as I promised you, I am hereby answering you in case of progress.

So, if you still have problems, I can tell you that I now got it finally
running (no, I rested for a time and did not fnd out the reasone all the
time...=)

So, my config is this:
- Eclipse 3.1
- Tomcat 5.5.9
- JDK 1.5_04
- MyFaces 1.0.9
- GNU/Linux 2.6 (Debian/Ubuntu)

What I did:
I removed the commons-el.jar and of course jsp2.0.jar (or so, I think we
all did this before). Then I added according DOCTYPE declaration in
faces-config.xml; SAX insisted on it. Then, I sticket to name all files
containing JSF entities *.jsp. On most important error I did is to call
my pages with their file system name, thus, a "hello.jsp" *has* to be
called as "hello.faces" - I thought the *.faces Servlet mapping was for
MyFaces internal purposes.

As a refernece, I added a sample JSP, my web.xml and the
faces-config.xml. I think the extensionFilter is not required, but who
knows. Most important is the load-on-startup param in the servlet as
well as adding the listener.
Please do not expcet my attachments to work, because it is not the
entire app of course but basic samples for your reference. It is basing
on stuff from Hans Bergsten's JSF book that I am currently reading :-)

I hope this will help you.
Have a nice week!


-- 
greetings,                   |  /"\ 
                             |  \ /  ASCII-Ribbon-Campaign
Timo                         |   X     Against HTML Mail
                             |  / \