11 Replies Latest reply on Apr 9, 2010 10:25 PM by mariusz bogucki

    Error reading 'managed' on type ...

    Stefan Hörmann Newbie

      Hello,


      To get familiar with the application framework of Seam, I extended the registration example by the code fragments of the application framework chapter of the Seam reference manual. Everything seems to be fine. Unfortunately I am getting the following error when I want to update or delete a data record:


        Error reading 'managed' on type org.jboss.seam.example.registration.PersonHome$$javassistseam2


      I changed the following in the registration example:
      - Entity manager registered in persitence.xml
      - Persistence context registered in components.xml
      - Person.java and PersonHome.java created
      - pages.xml added to WEB-INF
      - personEditor.xhtml added to war


      Searching the web for this error message links all the time to the old seam-gen issue. Doing it a second time didn't help eather.


      Any ideas or suggestions to solve this issue?


      Thank you in advance for your help.




      Please find below the files I changed or added:



      persistence.xml:


      <?xml version="1.0" encoding="UTF-8"?>
      <persistence xmlns="http://java.sun.com/xml/ns/persistence" 
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
      
      http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" 
                   version="1.0">
                   
         <persistence-unit name="userDatabase">
            <provider>org.hibernate.ejb.HibernatePersistence</provider>
            <jta-data-source>java:/DefaultDS</jta-data-source>
            <properties>
               <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
               <property name="jboss.entity.manager.factory.jndi.name" value="java:/EntityManagerFactories/personData"/>
            </properties>
         </persistence-unit>
         
      </persistence>




      components.xml:


      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
                  xmlns:core="http://jboss.com/products/seam/core"
                  xmlns:persistence="http://jboss.com/products/seam/persistence"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation=
                      "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.2.xsd 
                       http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.2.xsd 
                       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.2.xsd">
      
          <core:init jndi-pattern="jboss-seam-registration/#{ejbName}/local"/>
          
          <persistence:managed-persistence-context name="personDatabase" auto-create="true" persistence-unit-jndi-name="java:/EntityManagerFactories/personData"/>
      
      </components>




      Person.java:


      package org.jboss.seam.example.registration;
      
      import javax.persistence.Entity;
      import javax.persistence.GeneratedValue;
      import javax.persistence.Id;
      
      @Entity
      
      public class Person {
      
           @Id
           @GeneratedValue
           private Long id;
      
           private String firstName;
      
           private String lastName;
      
           public Long getId() {
                return id;
           }
      
           public void setId(Long id) {
                this.id = id;
           }
      
           public String getFirstName() {
                return firstName;
           }
      
           public void setFirstName(String firstName) {
                this.firstName = firstName;
           }
      
           public String getLastName() {
                return lastName;
           }
      
           public void setLastName(String lastName) {
                this.lastName = lastName;
           }
      
      }




      PersonHome.java:


      package org.jboss.seam.example.registration;
      
      import javax.persistence.EntityManager;
      
      import org.jboss.seam.annotations.Factory;
      import org.jboss.seam.annotations.In;
      import org.jboss.seam.annotations.Name;
      import org.jboss.seam.framework.EntityHome;
      
      @Name("personHome")
      
      public class PersonHome extends EntityHome<Person> {
      
           private static final long serialVersionUID = -5065906765292941496L;
      
           @In EntityManager personDatabase;
      
           public EntityManager getEntityManager() {
                return personDatabase; 
           }
      
           @Factory("person")
          public Person initPerson() {
                return getInstance();
           }
      
      }




      pages.xml:


      <?xml version="1.0" encoding="UTF-8"?>
      <pages xmlns="http://jboss.com/products/seam/pages"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.2.xsd"
      
             no-conversation-view-id="/editPerson.xhtml"
                       login-view-id="/home.xhtml">
      
           <page view-id="/editPerson.xhtml">
                <param name="personId" value="#{personHome.id}"/>
           </page>
          
          <page view-id="*">    
              <navigation from-action="#{identity.logout}">
                  <redirect view-id="/home.xhtml"/>
              </navigation>
      
              <navigation from-action="#{hotelBooking.cancel}">
                  <redirect view-id="/main.xhtml"/>
              </navigation>
              
          </page>
          
          <exception class="org.jboss.seam.security.NotLoggedInException">
              <redirect view-id="/home.xhtml">
                  <message severity="warn">You must be logged in to use this feature</message>
              </redirect>
          </exception>
          
          <exception class="javax.faces.application.ViewExpiredException">
              <redirect view-id="/home.xhtml">
                  <message severity="warn">Session expired, please log in again</message>
              </redirect>
          </exception>
      
      </pages>




      editPerson.xhtml:


      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:s="http://jboss.com/products/seam/taglib"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core">
      
         <head>
            <title>Register New User</title>
         </head>
         <body>
            <f:view>
      
                <h1>
                     <h:outputText rendered="#{!personHome.managed}" value="Create Person"/>
                     <h:outputText rendered="#{personHome.managed}" value="Edit Person"/>
                </h1>
                <h:form>
                     <div>First name: <h:inputText value="#{person.firstName}"/></div>
                     <div>Last name: <h:inputText value="#{person.lastName}"/></div>
                     <div>
                          <h:commandButton value="Create Person" action="#{personHome.persist}" rendered="#{!personHome.managed}"/>
                          <h:commandButton value="Update Person" action="#{personHome.update}" rendered="#{personHome.managed}"/>
                          <h:commandButton value="Delete Person" action="#{personHome.remove}" rendered="#{personHome.managed}"/>
                     </div>
                </h:form>
      
            </f:view>
         </body>
      
      </html>



        • 1. Re: Error reading 'managed' on type ...
          ilhami visne Newbie

          Hello,


          I looked at Seam first when it was in version 1.2. I'm starting a new project and evaluating the new features of Seam 2 (Seam 2.2.0.GA). I use Eclipse 3.4.2, JBoss Tools 3.0.2.GA, JBoss AS 5.1.0.GA, Java 5 Update 21.


          I created successfully a new seam project and deployed on the server. I opened the /home.seam, everything works fine. Then i created an entity (AutoMarke) using JBoss Tools. I didn't touch anything till now, everything generated for me. I opened my browser and navigated to the generated entity page /autoMarke.seam


          I got the same error above: Error reading 'managed' on type com.proj.session.AutoMarkeHome$$javassistseam2


          I'm a little frustrated, lost many times looking for reasons,solutions. Why am i getting error without writing a single line? What is missing here?

          • 3. Re: Error reading 'managed' on type ...
            ilhami visne Newbie

            Bernard Labno wrote on Oct 05, 2009 13:20:


            Full stacktrace, please.



            javax.faces.FacesException: javax.el.ELException: /autoMarke.xhtml @32,62 rendered="#{!autoMarkeHome.managed}": Error reading 'managed' on type com.lee.smsbazar.session.AutoMarkeHome_$$_javassist_seam_2
                 at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:393)
                 at javax.faces.component.UIComponent.encodeAll(UIComponent.java:924)
                 at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
                 at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
                 at javax.faces.component.UIComponent.encodeAll(UIComponent.java:930)
                 at javax.faces.component.UIComponent.encodeAll(UIComponent.java:933)
                 at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
                 at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
                 at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
                 at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
                 at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
                 at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                 at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
                 at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
                 at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
                 at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                 at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                 at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
                 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
                 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                 at java.lang.Thread.run(Thread.java:595)
            Caused by: javax.el.ELException: /autoMarke.xhtml @32,62 rendered="#{!autoMarkeHome.managed}": Error reading 'managed' on type com.lee.smsbazar.session.AutoMarkeHome_$$_javassist_seam_2
                 at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
                 at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:390)
                 ... 55 more
            Caused by: java.lang.IllegalArgumentException: Not an entity:class com.lee.smsbazar.entity.AutoMarke
                 at org.hibernate.ejb.AbstractEntityManagerImpl.contains(AbstractEntityManagerImpl.java:285)
                 at org.jboss.seam.persistence.EntityManagerProxy.contains(EntityManagerProxy.java:41)
                 at org.jboss.seam.framework.EntityHome.isManaged(EntityHome.java:43)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:592)
                 at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
                 at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                 at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:65)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:97)
                 at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
                 at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:91)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                 at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
                 at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
                 at com.lee.smsbazar.session.AutoMarkeHome_$$_javassist_seam_2.isManaged(AutoMarkeHome_$$_javassist_seam_2.java)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:592)
                 at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                 at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:54)
                 at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
                 at org.jboss.el.parser.AstPropertySuffix.getValue(AstPropertySuffix.java:53)
                 at org.jboss.el.parser.AstValue.getValue(AstValue.java:67)
                 at org.jboss.el.parser.AstNot.getValue(AstNot.java:26)
                 at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                 at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                 ... 56 more



            • 4. Re: Error reading 'managed' on type ...
              Bernard Labno Master

              AutoMarke is not an entity. Show it's code. I guess you have forgotten to annotate it with @Entity.

              • 5. Re: Error reading 'managed' on type ...
                ilhami visne Newbie

                Bernard Labno wrote on Oct 05, 2009 17:13:


                AutoMarke is not an entity. Show it's code. I guess you have forgotten to annotate it with @Entity.


                @Entity anotation is there. Actually AutoMarke is generated by JBoss Tools. I didn't write a single line or changed anything. Exactly this frustrates me.


                Here the AutoMarke entity:


                @Entity
                public class AutoMarke implements Serializable
                {
                    // seam-gen attributes (you should probably edit these)
                    private Long id;
                    private Integer version;
                    private String name;
                
                    // add additional entity attributes
                
                    // seam-gen attribute getters/setters with annotations (you probably should edit)
                
                    @Id @GeneratedValue
                    public Long getId() {
                        return id;
                    }
                
                    public void setId(Long id) {
                        this.id = id;
                    }
                
                    @Version
                    public Integer getVersion() {
                        return version;
                    }
                
                    private void setVersion(Integer version) {
                        this.version = version;
                    }
                
                    @Length(max = 20)
                    public String getName() {
                        return name;
                    }
                
                    public void setName(String name) {
                        this.name = name;
                    }
                
                }



                • 6. Re: Error reading 'managed' on type ...
                  Bernard Labno Master

                  Have you configured this in components.xml ?


                      <component name="entityConverter" scope="CONVERSATION" precedence="20"
                                 class="org.jboss.seam.ui.converter.EntityConverter">
                          <property name="entityManager">#{entityManager}</property>
                      </component>

                  • 7. Re: Error reading 'managed' on type ...
                    ilhami visne Newbie

                    Bernard Labno wrote on Oct 05, 2009 17:46:


                    Have you configured this in components.xml ?


                    I added this to component.xml and got immediately an ClassNotFoundException for org.jboss.seam.ui.converter.EntityConverter. EntityConverter class is located in org.jboss.seam.ui.EntityConverter and changed it so. Now this time i'm getting a different exception:




                    java.lang.RuntimeException: Could not create Component: entityConverter
                         at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1202)
                         at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1118)
                         at org.jboss.seam.init.Initialization.init(Initialization.java:733)
                         at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
                         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
                         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
                         at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
                         at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
                         at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                         at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
                         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:592)
                         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                         at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
                         at $Proxy38.start(Unknown Source)
                         at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
                         at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
                         at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                         at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                         at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                         at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                         at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                         at org.jboss.system.ServiceController.start(ServiceController.java:460)
                         at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
                         at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                         at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                         at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                         at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                         at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                         at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                         at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                         at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                         at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                         at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                         at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                         at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                         at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                         at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                         at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
                         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
                         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
                         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:146)
                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:170)
                         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
                         at java.lang.Thread.run(Thread.java:595)
                    Caused by: java.lang.IllegalArgumentException: no such field: org.jboss.seam.ui.EntityConverter.entityManager
                         at org.jboss.seam.util.Reflections.getField(Reflections.java:316)
                         at org.jboss.seam.Component.initInitializers(Component.java:493)
                         at org.jboss.seam.Component.<init>(Component.java:254)
                         at org.jboss.seam.Component.<init>(Component.java:205)
                         at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1186)
                         ... 67 more



                    If it were related to this, i believe JBoss Tools would configure it automatically too. Why generating classes, if they can't be used immediately. What do you think?

                    • 9. Re: Error reading 'managed' on type ...
                      Ran Bittmann Newbie

                      Hi,


                      Did anyone figured it out yet? I too have the same problem, being new to Seam trying creating an entity for a test project using JBoss Tools 3.5, Seam 2.2.0.GA, JBoss SA 5.1.0.GA, and not adding a single line of code. I will appreciate your feedback.


                      Thanks,
                      Rani.

                      • 10. Re: Error reading 'managed' on type ...
                        mariusz bogucki Newbie

                        to those using seam 2.2.X
                        it is no more



                          <component  name="org.jboss.seam.ui.converter.EntityConverter">
                                <property name="entityManager">#{entityManager}</property>
                            </component>
                        




                        from now on it is:



                        add


                        <components xmlns:ui="http://jboss.com/products/seam/ui">
                         



                        and then instead of above


                           <ui:jpa-entity-loader entity-manager="#{em}" />
                        





                        • 11. Re: Error reading 'managed' on type ...
                          mariusz bogucki Newbie

                          I meant



                          <ui:jpa-entity-loader entity-manager="#{entityManager}" />




                          depending how you called it