On 9/20/06, NABA <[EMAIL PROTECTED]> wrote:
Hi...
My environment:
Eclipse 3.2
Tomcat 5.5.17
jsf-impl-1.2
tomahawk-1.1.3
servlet: 2.4
1. I attached the web.xml to this mail.
I would like use Myfaces-Tomahawk and the Sun RI.
Problem:
When I build a tree (<tree2>) without using :
- org.apache.myfaces.webapp.StartupServletContextListener
you can see the tree, but it is not possible to collapse or expand it.
This Listener is a part of Myfaces-impl.jar.
When I put the Myfaces-impl-1.3.jar in my project, I get a "base null"
error.
I think that it is a problem to use the Sun RI (jsf-impl) and
myfaces-impl in the same application.
My questions are:
+ Can I use the <tree2> without this listener?
Not sure. See below.
- Is there any possibilities to use this listener without the
myfaces-impl?
I'm guessing it's not provided as part of tomahawk, and that you
probably don't need it.
+ Is it a problem to use jsf-impl and myfaces-impl in the same project??
Yes. Not allowed.
+ contains the web.xml any errors?? what can be a reason for this problem?
Yes, it has errors. Yes, it could be the cause of the problem.
You have the extensions filter mapped five times instead of two.
Delete the one for <url-pattern>*.faces</url-pattern>
Delete the one for <url-pattern>/faces/*</url-pattern>
Keep the one for <servlet-name>Faces Servlet</servlet-name>
Keep the one for <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
Delete the one for <url-pattern>*.jsf</url-pattern>
Move the servlet-name one after the myFacesExtensionResource one.