3 Replies Latest reply on Mar 16, 2006 5:34 AM by Jamie Cruise

    Problem using ADF menu model

    nusa Novice

      Hi,

      Anyone has tried to use ADF menu model ?
      I just tried by taking the sample codes ( TreeModelAdapter, MenuModelAdapter, and DemoMenuItem ) and using af:page component.
      But it gave me the following error :

      ...
      01:04:29,413 DEBUG [org.jboss.seam.Component] seam component not found: menuModel
      01:04:29,415 ERROR [org.apache.myfaces.util.ClassUtils] Class : example.menu.MenuModelAdapter not found.
      java.lang.NoClassDefFoundError: oracle/adf/view/faces/model/MenuModel
       at java.lang.Class.getDeclaredConstructors0(Native Method)
       at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
       at java.lang.Class.getConstructor0(Class.java:2640)
       at java.lang.Class.newInstance0(Class.java:321)
       at java.lang.Class.newInstance(Class.java:303)
       at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:274)
       at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:265)
      ...
      01:04:29,429 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/Planner].[jsp]] Servlet.service() for servlet jsp threw exception javax.faces.el.EvaluationException: Cannot get value for expression '#{menuModel.model}'
       at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:397)
       at oracle.adf.view.faces.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:55)
       at oracle.adf.view.faces.component.UIXComponentBase.getProperty(UIXComponentBase.java:1066)
      ...
      Caused by: javax.faces.FacesException: java.lang.NoClassDefFoundError: oracle/adf/view/faces/model/MenuModel
       at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:279)
       at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:265)
       at org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:49)
       at org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:311)
       at oracle.adfinternal.view.faces.el.AdfFacesVariableResolver.resolveVariable(AdfFacesVariableResolver.java:40)
       at oracle.adfinternal.view.faces.el.AdfFacesVariableResolver.resolveVariable(AdfFacesVariableResolver.java:40)
       at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
      ...
      Caused by: java.lang.NoClassDefFoundError: oracle/adf/view/faces/model/MenuModel
       at java.lang.Class.getDeclaredConstructors0(Native Method)
       at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
       at java.lang.Class.getConstructor0(Class.java:2640)
       at java.lang.Class.newInstance0(Class.java:321)
       at java.lang.Class.newInstance(Class.java:303)
       at org.apache.myfaces.util.ClassUtils.newInstance(ClassUtils.java:274)
      ...
      


      Any suggestions would be helpful.