6 Replies Latest reply on Oct 7, 2010 10:28 AM by J Miller

    unable to instantiate class

    J Miller Newbie

      I'm having some trouble with tooltips on my site, then I notice when I start my server (WAS 7.0), I'm getting an error.  The section I'm concerned with is below.  Anybody know how I can fix this?


      Thanks

       

      00000010 annotation    W com.ibm.ws.webcontainer.annotation.WASAnnotationHelper collectClasses unable to instantiate class                                  java.lang.ClassNotFoundException: org.richfaces.taglib.HtmlToolTipTag      at java.lang.Class.forNameImpl(Native Method)      at java.lang.Class.forName(Class.java:169)      at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.loadClass(WASAnnotationHelper.java:661)      at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.collectClasses(WASAnnotationHelper.java:455)      at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.<init>(WASAnnotationHelper.java:136)      at com.ibm.ws.webcontainer.annotation.WASAnnotationHelperManager.getAnnotationHelper(WASAnnotationHelperManager.java:59)      at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:246)      at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)      at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)      at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)      at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)      at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)      at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)      at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1315)      at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:619)      at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:940)      at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2046)      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)      at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:110)      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:949)      at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)

       

      00000010 annotation    W com.ibm.ws.webcontainer.annotation.WASAnnotationHelper collectClasses unable to instantiate class
                                       java.lang.ClassNotFoundException: org.richfaces.taglib.HtmlToolTipTag
      at java.lang.Class.forNameImpl(Native Method)
      at java.lang.Class.forName(Class.java:169)
      at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.loadClass(WASAnnotationHelper.java:661)
      at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.collectClasses(WASAnnotationHelper.java:455)
      at com.ibm.ws.webcontainer.annotation.WASAnnotationHelper.<init>(WASAnnotationHelper.java:136)
      at com.ibm.ws.webcontainer.annotation.WASAnnotationHelperManager.getAnnotationHelper(WASAnnotationHelperManager.java:59)
      at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:246)
      at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:100)
      at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:166)
      at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:731)
      at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:616)
      at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:376)
      at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:668)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1122)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1315)
      at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:619)
      at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:940)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:725)
      at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2046)
      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:439)
      at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:382)
      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$300(CompositionUnitMgrImpl.java:110)
      at com.ibm.ws.runtime.component.CompositionUnitMgrImpl$CUInitializer.run(CompositionUnitMgrImpl.java:949)
      at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:349)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1550)
        • 1. Re: unable to instantiate class
          J Miller Newbie

          I believe I've narrowed down the cause of this problem, I'm just not sure how to fix it.  When the web server starts up, it's trying to instantiate the class org.richfaces.taglib.HtmlToolTipTag, but the class that's in my richfaces build is actuall called HtmlToolTipTagHandler.  I'm new to development, anybody know what the easiest way to fix this would be?  I'm using RAD and WAS 7.0.

           

          Thanks.

          • 2. Re: unable to instantiate class
            J Miller Newbie

            I'm still having this problem.  Just hoping perhaps someone new sees this and can help. 

             

            Thanks.

            • 3. Re: unable to instantiate class
              Siva P Master

              try to check the jar files in your application is added properly and check for the conflict of you lib folder jars and server jar files .please list your application jars .thanks

              • 4. Re: unable to instantiate class
                J Miller Newbie

                Here are the Richfaces jar files that I have in my project:

                 

                richfaces-api-3.3.3.Final.jar
                richfaces-impl-3.3.3.Final.jar
                richfaces-ui-3.3.3.Final.jar

                 

                I believe they've been added properly because we are using Richfaces fairly heavily in our project and all of the other Richface components we use are working fine.  We are only having problems with the tooltips.  I'm using RAD 7.5, and if I look in my project under "Libraries > Web App Libraries", it lists the jars above (along with a bunch more).  If I look under "Libraries > WebSphere Application Server v7.0", there are no references to Richfaces.  But I don't necessarily think that's the problem, because every other Richface component we use works.

                • 5. Re: unable to instantiate class
                  Ilya Shaikovsky Master

                  do you trying to create tooltip dynamically from Java code? If so -  show the code please

                  • 6. Re: unable to instantiate class
                    J Miller Newbie

                    OK, so I finally figured out what was going wrong here.  It turns out, the entry for the tooltip in my rich.tld file was pointing to the wrong class.  I corrected it there, and I no longer receive this error.  However, my tooltips aren't working either, so I'll probably open another thread about that if I can't figure out the solution.