3 Replies Latest reply on Nov 3, 2005 9:29 AM by kcturner

    seam component not found

    kcturner

      I have taken a very simple MyFaces/Tiles app that was working fine and updated to work with Seam. I converted the single managed bean to an entity bean and moved the business method to a new session bean. I followed the register example app source and docs to reconfigure the app. I am using MyFaces 1.1.1, the struts.jar file from 1.2.7, JBoss 4.0.3SP1 EJB3.0 install and Seam 1.0beta1. I have installed the example seam application wars and they work fine. I am using Oracle 10G as my database and a datasource configuration that is working for several other apps.

      I am getting error messages for each of the two inputs: "Error during model data update." I am also getting two other error messages: "Conversion Error." I searched through the JBoss log and the only indication of a problem I can find is: "DEBUG [org.jboss.seam.Component] seam component not found: user." Followed by: "DEBUG [org.jboss.seam.jsf.SeamVariableResolver] could not resolve name." Evidently Seam cannot resolve the variable user which is the name of the entity bean as designated by the @Name annotation.

      I have rechecked my configuration and code several times and can't find anything wrong. I would greatly appreciate assistance in debugging this problem.

        • 1. Re: seam component not found
          gavin.king

          Do you have a seam.properties in the package where you depoyed the component named user?

          • 2. Re: seam component not found
            kcturner

            Thanks, that is the answer. I don't recall seeing it mentioned in the reference, but placing an empty seam.properties file in the jar with the EJBs did the trick. Of course I now have a problem with the user member of session bean being null when the login method is called, but at least it gives me an exception with a stack trace.

            • 3. Re: seam component not found
              kcturner

              The FacesContext and user attribute of my session bean are both null when the login method is called; however, the EntityManager is properly assigned. I can not find any indication in the JBoss log of problem until the null exception thrown because the user attribute is null.