1 Reply Latest reply on Sep 24, 2009 10:05 PM by Val Sw

    Error running rich suggestionbox example - Cant instantiate class: org.richfaces.demo.capitals.CapitalsBean, pls suggest

    Val Sw Expert
      Hi,

      I am trying to run 1st. example of rich suggestionBox from "http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf".

      I created a project using seam-gen and followed the instructions for set-up as mentioned in "http://relation.to/11633.lace" but facing some configuration issue.

      I have entry in faces-config.xml, have capitals.xml, capitals-rules.xml and digester-rules.dtd under deployed project
      "jboss-4.2.3\server\default\deploy\TestNewEntity.ear\TestNewEntity.war\WEB-INF\classes" and commons-digester is under "WEB-INF\lib" as well as jboss lib....

      Error when loading xhtml: Cant instantiate class: org.richfaces.demo.capitals.CapitalsBean.
      ....
      com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: org.richfaces.demo.capitals.CapitalsBean.
           at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:191)
           at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:106)
      .....
      Caused by: org.apache.commons.digester.xmlrules.XmlLoadException
           at org.apache.commons.digester.xmlrules.FromXmlRuleSet$URLXMLRulesLoader.loadRules(FromXmlRuleSet.java:199)
      .....

      Caused by: java.lang.NullPointerException
           at org.apache.commons.digester.xmlrules.FromXmlRuleSet$URLXMLRulesLoader.loadRules(FromXmlRuleSet.java:197)

      Thanks in advance..