Am Samstag, 13. August 2005 16:59 schrieb Andreas Schenk:
> Am Samstag, 13. August 2005 12:48 schrieb Mario Ivankovits:
> > Andreas Schenk wrote:
> > >(1) and (2) only occur in my example, not in the myfaces example. I
> > >experimented a lot, and finally I even copied the myfaces example. The
> > > only difference is the TreeBacker class. Unfortunately I cannot find
> > > the sources for the TreeBacker in the myfaces example. But even if I
> > > would, I cannot imagine that my TreeBacker class will be responsible
> > > for the problems (1) and (2).
> >
> > Did you add the extensions filter in your web.xml?
>
> I checked my faces-config.xml, web.xml and the libraries against the
> myfaces example. I even updated all libs. To no avail.
>
I made some progress, but now I am completely stuck. The reason for the errors
described before had the following reason: I didn't clean up my eclipse
project completely, so the old lib myfaces.jar was present in the war, in
addition to the new libs. Once myfaces.jar was removed, these errors
disappeared.
But now I definitely cleaned up everything: the project and the server. I
rebuilt the project and deployed the app. Now I have the following problem:
The images of the nodes (with the +/- sign in them) are not displayed. The
server shows the exception:
2005-08-13 18:00:24,147 : StandardWrapperValve.invoke : Servlet.service() for
servlet default threw exception
java.io.IOException: Unable to find resource images/null for component
tree2.HtmlTreeRenderer. Check that this file is available in the classpath in
sub-directory /resource of the component-directory.
at
org.apache.myfaces.component.html.util.AddResource.serveResource(AddResource.java:248)
at
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:98)
[...]
However, I can still expand the tree with client side toggle -- once. As soon
as I click on a leaf, I get another exception. The same happens, if I click
the first time on the node with server side toggle:
javax.servlet.ServletException: Invalid bit mask of 14
javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
[...]
Now I have no other ideas.
Andreas Schenk