2 Replies Latest reply on Feb 24, 2006 2:55 AM by rengar

    Cannot get value for expression

    rengar

      It deploy fine.

      Some errors in log :

      FATAL [org.hibernate.ejb.packaging.PersistenceXmlLoader] entityManager JTA



      But show this error in all jsf files :
      javax.servlet.ServletException: Cannot get value for expression '#{usuarioEditor.new}'


      And jboss log :

      17:14:48,757 ERROR [STDERR] java.lang.ClassCastException: org.jboss.ejb3.entity.InjectedEntityManagerFactory



      In other page :

      javax.faces.FacesException: Cannot get value for expression '#{usuarioFinder.example.usuario}'


      At jboss log :

      17:16:16,994 WARN [SeamVariableResolver] Seam component hides managed bean with
       same name
      17:16:17,064 WARN [SeamVariableResolver] Seam component hides managed bean with
       same name
      17:16:17,305 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces
      .PRETTY_HTML' found, using default value true
      17:16:17,305 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces
      .ALLOW_JAVASCRIPT' found, using default value true
      17:16:17,305 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces
      .DETECT_JAVASCRIPT' found, using default value false
      17:16:17,305 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces
      .AUTO_SCROLL' found, using default value false
      17:16:17,325 WARN [HtmlLabelRenderer] Unable to find component 'usuario' (calli
      ng findComponent on component '_id2:_id13')
      17:16:17,385 ERROR [STDERR] java.lang.ClassCastException: org.jboss.ejb3.entity.
      InjectedEntityManagerFactory



      I deploy seam examples and work fine.

      I use source code generated by JBossIDE.

      Why don't work, anyone idea?




        • 1. Re: Cannot get value for expression
          theute

          I don't remember seeing that error:
          17:14:48,757 ERROR [STDERR] java.lang.ClassCastException: org.jboss.ejb3.entity.InjectedEntityManagerFactory
          and wonder where it comes from.

          But all other errors are known and are ok to ignore. MyFaces is a bit to verbose on things it cannot find.


          I deploy seam examples and work fine. ...
          Why don't work, anyone idea?


          Does it work or not ?

          • 2. Re: Cannot get value for expression
            rengar

            Examples works fine, my application generated with JBoss IDE don't.

            I fix it changed :

            @In(create=true)
             private EntityManager entityManager;



            @PersistenceContext
             private EntityManager entityManager;



            Now, WORKS FINE!!!!!!