You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Victor Alekseev (JIRA)" <de...@myfaces.apache.org> on 2005/11/29 15:29:30 UTC

[jira] Created: (MYFACES-886) Problem with custom TreeModelListeners to DefaultTreeModel

Problem with custom TreeModelListeners to DefaultTreeModel
----------------------------------------------------------

         Key: MYFACES-886
         URL: http://issues.apache.org/jira/browse/MYFACES-886
     Project: MyFaces
        Type: Bug
  Components: Tomahawk  
    Versions: 1.1.1    
 Environment: xp, tomcat, java 1.4.2
    Reporter: Victor Alekseev
    Priority: Blocker


Program code:
       ...
        model = new DefaultTreeModel(root);
        model.getTreeModelListeners().add(new testListner());
       ...
       class testListner implements TreeModelListener  { ...}


Exception:

2005-11-29 16:28:22 StandardContext[]Loading Spring root WebApplicationContext
2005-11-29 16:28:29 StandardContext[/adf-faces-demo]Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1366)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3723)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4257)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
	at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:316)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:653)

Problem code:

    public void addToModelListeners()
    {
        Collection listeners = getModel(FacesContext.getCurrentInstance()).getTreeModelListeners();
        long currentTime = System.currentTimeMillis();
        boolean found = false;

        for (Iterator iterator = listeners.iterator(); iterator.hasNext();)
        {
            ModelListener listener = (ModelListener) iterator.next();


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (MYFACES-886) Problem with custom TreeModelListeners to DefaultTreeModel

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-886?page=all ]
     
Mike Kienenberger closed MYFACES-886:
-------------------------------------

    Resolution: Invalid

The error you're seeing is some kind of JSF RI configuration error.  It doesn't have anything to do with Tomahawk nor would the code you posted have any impact on the error below:

Note the com.sun.faces.* prefix.

Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener 

> Problem with custom TreeModelListeners to DefaultTreeModel
> ----------------------------------------------------------
>
>          Key: MYFACES-886
>          URL: http://issues.apache.org/jira/browse/MYFACES-886
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: 1.1.1
>  Environment: xp, tomcat, java 1.4.2
>     Reporter: Victor Alekseev
>     Priority: Blocker

>
> Program code:
>        ...
>         model = new DefaultTreeModel(root);
>         model.getTreeModelListeners().add(new testListner());
>        ...
>        class testListner implements TreeModelListener  { ...}
> Exception:
> 2005-11-29 16:28:22 StandardContext[]Loading Spring root WebApplicationContext
> 2005-11-29 16:28:29 StandardContext[/adf-faces-demo]Error configuring application listener of class com.sun.faces.config.ConfigureListener
> java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1366)
> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213)
> 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3723)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4257)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> 	at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:316)
> 	at org.apache.catalina.core.StandardHost.install(StandardHost.java:859)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:653)
> Problem code:
>     public void addToModelListeners()
>     {
>         Collection listeners = getModel(FacesContext.getCurrentInstance()).getTreeModelListeners();
>         long currentTime = System.currentTimeMillis();
>         boolean found = false;
>         for (Iterator iterator = listeners.iterator(); iterator.hasNext();)
>         {
>             ModelListener listener = (ModelListener) iterator.next();

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira