9 Replies Latest reply on Dec 1, 2008 7:12 AM by Shane Bryzak

    Problems injecting EntityManger

    Code Warrior Newbie

      Hello! In a basic program that persist an user in a database and retrive later to make the login using the Authenticator class, how can i do it? When i try to inject the EntityManger with @In private EntityManager entityManager they out it in the Log:


      EntityManagerFactory not found in JNDI : java:/sistemaWebKitEntityManager/


      If i use @PersistenceContext they say that just Stateless Session Beans and MDB can use this annotation. The other files (faces, persistece, components) is OK.

        • 1. Re: Problems injecting EntityManger
          Pedro Sena Newbie

          Post your components.xml and persistence.xml files.


          What AS are you using?


          Regards,


          Pedro Sena

          • 2. Re: Problems injecting EntityManger
            Code Warrior Newbie

            Hello Pedro Sena, you speak portuguese? And if yes, do you have an e-mail or real-time chat? Because i really need help: Follow all my files that you need. I create a new Seam Project called ASD and change nothing in the class Authenticator already created by the Seam-Gen Wizard of Eclipse (3.4) with JBoss Tools. I use JBoss Server 5.0 CR2. JSF 1.2 Seam 2.0 and tried 2.1 too.


            The Auth class:



            package org.domain.asd.session;
            
            import org.jboss.seam.annotations.In;
            import org.jboss.seam.annotations.Logger;
            import org.jboss.seam.annotations.Name;
            import org.jboss.seam.log.Log;
            import org.jboss.seam.security.Credentials;
            import org.jboss.seam.security.Identity;
            
            @Name("authenticator")
            public class Authenticator
            {
                @Logger Log log;
            
                @In Identity identity;
                @In Credentials credentials;
            
                public boolean authenticate()
                {
                    log.info("authenticating {0}", credentials.getUsername());
                    //write your authentication logic here,
                    //return true if the authentication was
                    //successful, false otherwise
                    if ("admin".equals(credentials.getUsername()))
                    {
                        identity.addRole("admin");
                        return true;
                    }
                    return false;
                }
            }




            My 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:drools="http://jboss.com/products/seam/drools"
             xmlns:mail="http://jboss.com/products/seam/mail"
             xmlns:persistence="http://jboss.com/products/seam/persistence"
             xmlns:security="http://jboss.com/products/seam/security"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.1.xsd                   http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.1.xsd                   http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd                  http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd                  http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd                  http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.1.xsd                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd">
             <core:init debug="true" jndi-pattern="@jndiPattern@"/>
             <core:manager concurrent-request-timeout="500"
              conversation-id-parameter="cid" conversation-timeout="120000" parent-conversation-id-parameter="pid"/>
             <persistence:managed-persistence-context auto-create="true"
              name="entityManager" persistence-unit-jndi-name="java:/asdEntityManagerFactory"/>
             <drools:rule-base auto-create="true"
              class="org.jboss.metamodel.descriptor.SecurityRole"
              name="securityRules" scope="application">
              <drools:rule-files>
               <value>/security.drl</value>
              </drools:rule-files>
             </drools:rule-base>
             <security:rule-based-permission-resolver
              class="org.jboss.seam.security.permission.RuleBasedPermissionResolver"
              scope="application" security-rules="#{securityRules}" startup="true"/>
             <security:identity authenticate-method="#{authenticator.authenticate}"/>
             <event type="org.jboss.seam.security.notLoggedIn">
              <action execute="#{redirect.captureCurrentView}"/>
             </event>
             <event type="org.jboss.seam.security.loginSuccessful">
              <action execute="#{redirect.returnToCapturedView}"/>
             </event>
             <mail:mail-session host="localhost" password="test" port="2525" username="test"/>
             <!-- For use with jBPM pageflow or process management 
              
               <bpm:jbpm>
                  <bpm:process-definitions></bpm:process-definitions>
                  <bpm:pageflow-definitions></bpm:pageflow-definitions>
               </bpm:jbpm>
               -->
            </components>




            My persistence.xml (not used in this moment because i create nothing that using DB, its just the basic of basic.


            My Web.xml



            <?xml version="1.0" encoding="UTF-8"?>
            <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
              <display-name>asd</display-name>
              <welcome-file-list>
                <welcome-file>index.html</welcome-file>
                <welcome-file>index.htm</welcome-file>
                <welcome-file>index.jsp</welcome-file>
                <welcome-file>default.html</welcome-file>
                <welcome-file>default.htm</welcome-file>
                <welcome-file>default.jsp</welcome-file>
              </welcome-file-list>
              <servlet>
                <servlet-name>Faces Servlet</servlet-name>
                <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                <load-on-startup>1</load-on-startup>
              </servlet>
              <servlet-mapping>
                <servlet-name>Faces Servlet</servlet-name>
                <url-pattern>*.seam</url-pattern>
              </servlet-mapping>
              <context-param>
                <param-name>org.richfaces.SKIN</param-name>
                <param-value>blueSky</param-value>
              </context-param>
              <listener>
                <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
              </listener>
              <filter>
                <filter-name>Seam Filter</filter-name>
                <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
              </filter>
              <filter-mapping>
                <filter-name>Seam Filter</filter-name>
                <url-pattern>/*</url-pattern>
              </filter-mapping>
              <servlet>
                <servlet-name>Seam Resource Servlet</servlet-name>
                <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
              </servlet>
              <servlet-mapping>
                <servlet-name>Seam Resource Servlet</servlet-name>
                <url-pattern>/seam/resource/*</url-pattern>
              </servlet-mapping>
              <context-param>
                <param-name>facelets.DEVELOPMENT</param-name>
                <param-value>true</param-value>
              </context-param>
              <context-param>
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                <param-value>.xhtml</param-value>
              </context-param>
              <security-constraint>
                <display-name>Restrict raw XHTML Documents</display-name>
                <web-resource-collection>
                  <web-resource-name>XHTML</web-resource-name>
                  <url-pattern>*.xhtml</url-pattern>
                </web-resource-collection>
                <auth-constraint/>
              </security-constraint>
            </web-app>




            My Faces-config.xml



            <?xml version="1.0" encoding="UTF-8"?>
            
            <faces-config
                xmlns="http://java.sun.com/xml/ns/javaee"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
                version="1.2">
                    <application>
                            <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
                            <locale-config>
                                    <default-locale>en</default-locale>
                                    <supported-locale>bg</supported-locale>
                                    <supported-locale>de</supported-locale>
                                    <supported-locale>en</supported-locale>
                                    <supported-locale>fr</supported-locale>
                                    <supported-locale>tr</supported-locale>
                            </locale-config>
                    </application>
            
            </faces-config>




            My jboss-web.xml




            <!DOCTYPE jboss-web PUBLIC
                "-//JBoss//DTD Web Application 4.2//EN"
                "http://www.jboss.org/j2ee/dtd/jboss-web_4_2.dtd">
            
            <jboss-web>  
                <class-loading java2ClassLoadingCompliance="false">
                    <loader-repository>
                        seam.jboss.org:loader=asd
                        <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
                    </loader-repository>
                </class-loading>
            </jboss-web>




            My 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.1.xsd"
            
                   no-conversation-view-id="/home.xhtml"
                   login-view-id="/login.xhtml">
            
                <page view-id="*">
                    <navigation>
                        <rule if-outcome="home">
                            <redirect view-id="/home.xhtml"/>
                        </rule>
                    </navigation>
                </page>
            
                <exception class="org.jboss.seam.framework.EntityNotFoundException">
                    <redirect view-id="/error.xhtml">
                        <message severity="warn">Record not found</message>
                    </redirect>
                </exception>
                
                <exception class="javax.persistence.EntityNotFoundException">
                    <redirect view-id="/error.xhtml">
                        <message severity="warn">Record not found</message>
                    </redirect>
                </exception>
                
                <exception class="javax.persistence.EntityExistsException">
                    <redirect view-id="/error.xhtml">
                        <message severity="warn">Duplicate record</message>
                    </redirect>
                </exception>
                
                <exception class="javax.persistence.OptimisticLockException">
                    <end-conversation/>
                    <redirect view-id="/error.xhtml">
                        <message severity="warn">Another user changed the same data, please try again</message>
                    </redirect>
                </exception>
                
                <exception class="org.jboss.seam.security.AuthorizationException">
                    <redirect view-id="/error.xhtml">
                        <message severity="error">You don't have permission to access this resource</message>
                    </redirect>
                </exception>
                
                <exception class="org.jboss.seam.security.NotLoggedInException">
                    <redirect view-id="/login.xhtml">
                        <message severity="warn">#{messages['org.jboss.seam.NotLoggedIn']}</message>
                    </redirect>
                </exception>
                
                <exception class="javax.faces.application.ViewExpiredException">
                    <redirect view-id="/error.xhtml">
                        <message severity="warn">Your session has timed out, please try again</message>
                    </redirect>
                </exception>
                
                <exception class="org.jboss.seam.ConcurrentRequestTimeoutException" logLevel="trace">
                  <http-error error-code="503" />
                </exception>
                 
                <exception>
                    <redirect view-id="/error.xhtml">
                        <message severity="error">Unexpected error, please try again</message>
                    </redirect>
                </exception>
                
            </pages>



            • 3. Re: Problems injecting EntityManger
              Code Warrior Newbie

              AND THE FUCK DAMMIT ERROR! Sorry about the word, but i have no more patience with Seam Identity and Authorization! I follow step by step the Guide in the SEAM Documentation but i can't do the basic program generated by the proper Seam-Gen to works!


              THE ERROR!



              22:55:45,146 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
              22:55:45,147 INFO  [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.CR2 (build: SVNTag=JBoss_5_0_0_CR2 date=200809171046)
              22:55:45,152 INFO  [ServerImpl] Home Dir: /Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2
              22:55:45,153 INFO  [ServerImpl] Home URL: file:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/
              22:55:45,153 INFO  [ServerImpl] Library URL: file:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/lib/
              22:55:45,153 INFO  [ServerImpl] Patch URL: null
              22:55:45,153 INFO  [ServerImpl] Server Name: default
              22:55:45,153 INFO  [ServerImpl] Server Home Dir: /Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default
              22:55:45,154 INFO  [ServerImpl] Server Home URL: file:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/
              22:55:45,154 INFO  [ServerImpl] Server Data Dir: /Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/data
              22:55:45,154 INFO  [ServerImpl] Server Temp Dir: /Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/tmp
              22:55:45,154 INFO  [ServerImpl] Server Config URL: file:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/conf/
              22:55:45,154 INFO  [ServerImpl] Server Library URL: file:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/lib/
              22:55:45,154 INFO  [ServerImpl] Root Deployment Filename: jboss-service.xml
              22:55:45,594 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/conf/bootstrap.xml
              22:55:46,305 INFO  [CopyMechanism] VFS temp dir: /Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/tmp
              22:55:46,306 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
              22:55:47,309 INFO  [ServerInfo] Java version: 1.5.0_16,Apple Inc.
              22:55:47,309 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_16-133,Apple Inc.
              22:55:47,309 INFO  [ServerInfo] OS-System: Mac OS X 10.5.5,i386
              22:55:47,347 INFO  [JMXKernel] Legacy JMX core initialized
              22:55:48,326 INFO  [MetaDataAwareProfile] Using profile root:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default
              22:55:49,250 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
              22:55:56,879 WARN  [CollectionPropertyHandler] ClassInfo.getDeclaredConstructor(null) didn't work for org.jboss.metadata.ejb.spec.InterceptorClassesMetaData, found the default ctor in ClassInfo.getDeclaredConstructors()
              22:55:57,138 WARN  [HackClassloaderMetaDataDeployer] FIXME Using loader repository config: jboss.console:sar=console-mgr.sar for  vfsfile:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/deploy/management/console-mgr.sar/ use classloading metadata not loader repository config
              22:55:57,147 WARN  [HackClassloaderMetaDataDeployer] FIXME Using loader repository config: seam.jboss.org:loader=asd-ear.ear for  vfszip:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/deploy/asd-ear.ear use classloading metadata not loader repository config
              22:55:57,424 INFO  [AspectDeployer] Deploying xml into org.jboss.aop.AspectManager@4c760b for BaseClassLoader@7272ca{vfsfile:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/deploy/ejb3-interceptors-aop.xml}
              22:56:05,416 WARN  [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean EjbSynchronizations
              22:56:05,419 WARN  [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean TimerServiceDispatcher
              22:56:07,351 INFO  [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
              22:56:07,406 INFO  [MailService] Mail Service bound to java:/Mail
              22:56:07,743 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core
              22:56:07,743 INFO  [NativeServerConfig] 3.0.3.GA
              22:56:08,520 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
              22:56:08,702 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
              22:56:08,702 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
              22:56:08,881 INFO  [TransactionManagerService] Initializing recovery manager
              22:56:09,345 INFO  [TransactionManagerService] Recovery manager configured
              22:56:09,345 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
              22:56:09,367 INFO  [TransactionManagerService] Starting transaction recovery manager
              22:56:09,671 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
              22:56:09,723 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
              22:56:09,724 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
              22:56:09,724 INFO  [Catalina] Initialization processed in 186 ms
              22:56:09,724 INFO  [StandardService] Starting service jboss.web
              22:56:09,726 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.CR7
              22:56:09,772 INFO  [Catalina] Server startup in 48 ms
              22:56:09,810 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war
              22:56:10,232 INFO  [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
              22:56:10,281 INFO  [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
              22:56:10,509 INFO  [RARDeployment] Required license terms exist, view vfszip:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
              22:56:10,519 INFO  [RARDeployment] Required license terms exist, view vfszip:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
              22:56:10,554 INFO  [RARDeployment] Required license terms exist, view vfszip:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/deploy/jms-ra.rar/META-INF/ra.xml
              22:56:10,566 INFO  [RARDeployment] Required license terms exist, view vfszip:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/deploy/mail-ra.rar/META-INF/ra.xml
              22:56:10,583 INFO  [RARDeployment] Required license terms exist, view vfszip:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
              22:56:10,659 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
              22:56:10,684 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
              22:56:10,687 INFO  [RAMJobStore] RAMJobStore initialized.
              22:56:10,687 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
              22:56:10,687 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
              22:56:10,687 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
              22:56:11,179 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=asdDatasource' to JNDI name 'java:asdDatasource'
              22:56:11,557 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
              22:56:11,786 WARN  [QuartzTimerServiceFactory] sql failed: CREATE TABLE QRTZ_JOB_DETAILS(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP))
              22:56:11,825 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
              22:56:11,827 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
              22:56:11,827 INFO  [JobStoreCMT] Using db table-based data access locking (synchronization).
              22:56:11,849 INFO  [JobStoreCMT] Removed 0 Volatile Trigger(s).
              22:56:11,849 INFO  [JobStoreCMT] Removed 0 Volatile Job(s).
              22:56:11,850 INFO  [JobStoreCMT] JobStoreCMT initialized.
              22:56:11,850 INFO  [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzScheduler' initialized from an externally provided properties instance.
              22:56:11,850 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
              22:56:11,852 INFO  [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' state.
              22:56:11,853 INFO  [JobStoreCMT] Recovering 0 jobs that were in-progress at the time of the last shut-down.
              22:56:11,853 INFO  [JobStoreCMT] Recovery complete.
              22:56:11,853 INFO  [JobStoreCMT] Removed 0 'complete' triggers.
              22:56:11,853 INFO  [JobStoreCMT] Removed 0 stale fired job entries.
              22:56:11,857 INFO  [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED started.
              22:56:12,023 INFO  [ServerPeer] JBoss Messaging 1.4.1.CR1 server [0] started
              22:56:12,113 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
              22:56:12,171 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
              22:56:12,171 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@fdc8ce started
              22:56:12,178 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
              22:56:12,178 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@312a49 started
              22:56:12,180 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
              22:56:12,180 WARN  [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
              22:56:12,180 WARN  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
              22:56:12,181 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
              22:56:12,181 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@cfa3b3 started
              22:56:12,266 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
              22:56:12,294 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=sistemaWebKitDatasource' to JNDI name 'java:sistemaWebKitDatasource'
              22:56:12,300 INFO  [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
              22:56:12,330 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
              22:56:13,990 WARN  [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@5d43c7
              22:56:13,997 WARN  [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@5d43c7
              22:56:14,054 WARN  [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@5d43c7
              22:56:14,055 WARN  [InjectInterceptorsFactory] WEIRDNESS IN AOP: advisor org.jboss.ejb3.aop.ExtendedManagedObjectAdvisor@5d43c7
              22:56:14,407 INFO  [JBossASKernel] Created KernelDeployment for: jboss-seam.jar
              22:56:14,411 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=asd-ear.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3
              22:56:14,411 INFO  [JBossASKernel]   with dependencies:
              22:56:14,411 INFO  [JBossASKernel]   and demands:
              22:56:14,411 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
              22:56:14,411 INFO  [JBossASKernel]   and supplies:
              22:56:14,411 INFO  [JBossASKernel]      jndi:asd-ear/TimerServiceDispatcher/local
              22:56:14,411 INFO  [JBossASKernel]      jndi:asd-ear/TimerServiceDispatcher/local-org.jboss.seam.async.LocalTimerServiceDispatcher
              22:56:14,411 INFO  [JBossASKernel]      jndi:asd-ear/TimerServiceDispatcher/remote
              22:56:14,411 INFO  [JBossASKernel]      Class:org.jboss.seam.async.LocalTimerServiceDispatcher
              22:56:14,411 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=asd-ear.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3) to KernelDeployment of: jboss-seam.jar
              22:56:14,412 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=asd-ear.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3
              22:56:14,412 INFO  [JBossASKernel]   with dependencies:
              22:56:14,412 INFO  [JBossASKernel]   and demands:
              22:56:14,412 INFO  [JBossASKernel]      jboss.ejb:service=EJBTimerService
              22:56:14,412 INFO  [JBossASKernel]   and supplies:
              22:56:14,412 INFO  [JBossASKernel]      jndi:asd-ear/EjbSynchronizations/local-org.jboss.seam.transaction.LocalEjbSynchronizations
              22:56:14,413 INFO  [JBossASKernel]      Class:org.jboss.seam.transaction.LocalEjbSynchronizations
              22:56:14,413 INFO  [JBossASKernel]      jndi:asd-ear/EjbSynchronizations/local
              22:56:14,413 INFO  [JBossASKernel]      jndi:asd-ear/EjbSynchronizations/remote
              22:56:14,413 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=asd-ear.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3) to KernelDeployment of: jboss-seam.jar
              22:56:14,456 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=asd-ear.ear/asd-ejb.jar#asd
              22:56:14,515 INFO  [Version] Hibernate Annotations 3.4.0.GA
              22:56:14,531 INFO  [Environment] Hibernate 3.3.1.GA
              22:56:14,537 INFO  [Environment] hibernate.properties not found
              22:56:14,542 INFO  [Environment] Bytecode provider name : javassist
              22:56:14,547 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling
              22:56:14,644 INFO  [Version] Hibernate Commons Annotations 3.1.0.GA
              22:56:14,649 INFO  [Version] Hibernate EntityManager 3.4.0.GA
              22:56:14,699 WARN  [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
              22:56:14,805 INFO  [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
              22:56:14,810 INFO  [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
              22:56:14,814 INFO  [InjectedDataSourceConnectionProvider] Using provided datasource
              22:56:15,091 INFO  [SettingsFactory] RDBMS: MySQL, version: 5.1.26-rc
              22:56:15,091 INFO  [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.7 ( Revision: ${svn.Revision} )
              22:56:15,113 INFO  [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
              22:56:15,168 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
              22:56:15,171 INFO  [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
              22:56:15,173 INFO  [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
              22:56:15,174 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
              22:56:15,174 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled
              22:56:15,174 INFO  [SettingsFactory] JDBC batch size: 15
              22:56:15,174 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled
              22:56:15,175 INFO  [SettingsFactory] Scrollable result sets: enabled
              22:56:15,175 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
              22:56:15,175 INFO  [SettingsFactory] Connection release mode: auto
              22:56:15,176 INFO  [SettingsFactory] Maximum outer join fetch depth: 2
              22:56:15,176 INFO  [SettingsFactory] Default batch fetch size: 1
              22:56:15,177 INFO  [SettingsFactory] Generate SQL with comments: disabled
              22:56:15,177 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
              22:56:15,177 INFO  [SettingsFactory] Order SQL inserts for batching: disabled
              22:56:15,177 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
              22:56:15,180 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
              22:56:15,180 INFO  [SettingsFactory] Query language substitutions: {}
              22:56:15,180 INFO  [SettingsFactory] JPA-QL strict compliance: enabled
              22:56:15,180 INFO  [SettingsFactory] Second-level cache: enabled
              22:56:15,180 INFO  [SettingsFactory] Query cache: disabled
              22:56:15,180 INFO  [SettingsFactory] Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
              22:56:15,181 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
              22:56:15,181 INFO  [SettingsFactory] Structured second-level cache entries: disabled
              22:56:15,188 INFO  [SettingsFactory] Echoing all SQL to stdout
              22:56:15,189 INFO  [SettingsFactory] Statistics: disabled
              22:56:15,189 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
              22:56:15,190 INFO  [SettingsFactory] Default entity-mode: pojo
              22:56:15,190 INFO  [SettingsFactory] Named query checking : enabled
              22:56:15,265 INFO  [SessionFactoryImpl] building session factory
              22:56:15,272 INFO  [SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=asd-ear.ear/asd-ejb.jar#asd
              22:56:15,274 INFO  [NamingHelper] JNDI InitialContext properties:{}
              22:56:15,277 INFO  [NamingHelper] Creating subcontext: persistence.unit:unitName=asd-ear.ear
              22:56:15,280 INFO  [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=asd-ear.ear/asd-ejb.jar#asd
              22:56:15,280 WARN  [SessionFactoryObjectFactory] InitialContext did not implement EventContext
              22:56:15,291 INFO  [SchemaUpdate] Running hbm2ddl schema update
              22:56:15,291 INFO  [SchemaUpdate] fetching database metadata
              22:56:15,292 INFO  [SchemaUpdate] updating schema
              22:56:15,295 INFO  [SchemaUpdate] schema update complete
              22:56:15,297 INFO  [NamingHelper] JNDI InitialContext properties:{}
              22:56:15,470 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=asd-ear.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3
              22:56:15,477 INFO  [EJBContainer] STARTED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
              22:56:15,479 WARN  [SessionSpecContainer] Populating JBoss-specific annotation metadata manually until done by deployers: jboss.j2ee:ear=asd-ear.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3
              22:56:15,695 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=asd-ear.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3
              22:56:15,696 INFO  [EJBContainer] STARTED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
              22:56:15,696 WARN  [SessionSpecContainer] Populating JBoss-specific annotation metadata manually until done by deployers: jboss.j2ee:ear=asd-ear.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3
              22:56:15,900 INFO  [TomcatDeployment] deploy, ctxPath=/asd, vfsUrl=asd-ear.ear/asd.war
              22:56:24,442 INFO  [ServletContextListener] Welcome to Seam 5.0.0.CR2
              22:56:30,421 INFO  [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security, prefix: org.jboss.seam.security
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/international, package: org.jboss.seam.international, prefix: org.jboss.seam.international
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/document, package: org.jboss.seam.document, prefix: org.jboss.seam.document
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/persistence, package: org.jboss.seam.persistence, prefix: org.jboss.seam.persistence
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/cache, package: org.jboss.seam.cache, prefix: org.jboss.seam.cache
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/ui, package: org.jboss.seam.ui, prefix: org.jboss.seam.ui
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/remoting, package: org.jboss.seam.remoting, prefix: org.jboss.seam.remoting
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security.permission, prefix: org.jboss.seam.security
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/core, package: org.jboss.seam.core, prefix: org.jboss.seam.core
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/captcha, package: org.jboss.seam.captcha, prefix: org.jboss.seam.captcha
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/async, package: org.jboss.seam.async, prefix: org.jboss.seam.async
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/drools, package: org.jboss.seam.drools, prefix: org.jboss.seam.drools
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/spring, package: org.jboss.seam.ioc.spring, prefix: org.jboss.seam.ioc.spring
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/pdf, package: org.jboss.seam.pdf, prefix: 
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/mail, package: org.jboss.seam.mail, prefix: org.jboss.seam.mail
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/transaction, package: org.jboss.seam.transaction, prefix: org.jboss.seam.transaction
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/web, package: org.jboss.seam.web, prefix: org.jboss.seam.web
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/security, package: org.jboss.seam.security.management, prefix: org.jboss.seam.security
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/theme, package: org.jboss.seam.theme, prefix: org.jboss.seam.theme
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/navigation, package: org.jboss.seam.navigation, prefix: org.jboss.seam.navigation
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/bpm, package: org.jboss.seam.bpm, prefix: org.jboss.seam.bpm
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/framework, package: org.jboss.seam.framework, prefix: org.jboss.seam.core.framework
              22:56:30,423 INFO  [Initialization] Namespace: http://jboss.com/products/seam/jms, package: org.jboss.seam.jms, prefix: org.jboss.seam.jms
              22:56:30,425 INFO  [Initialization] reading /WEB-INF/components.xml
              22:56:30,458 INFO  [Initialization] reading properties from: /seam.properties
              22:56:30,459 INFO  [Initialization] reading properties from: /jndi.properties
              22:56:30,461 INFO  [Initialization] initializing Seam
              22:56:30,499 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
              22:56:30,504 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.userPrincipal
              22:56:30,506 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.persistence.persistenceProvider
              22:56:30,507 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.manager
              22:56:30,508 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.locale
              22:56:30,509 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.parameters
              22:56:30,509 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.expressions
              22:56:30,510 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.transaction.synchronizations
              22:56:30,512 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.core.resourceLoader
              22:56:30,512 INFO  [Initialization] two components with same name, higher precedence wins: org.jboss.seam.web.isUserInRole
              22:56:30,527 INFO  [Component] Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init



              • 4. Re: Problems injecting EntityManger
                Code Warrior Newbie

                Part 2:



                22:56:30,559 INFO  [Initialization] Installing components...
                22:56:30,598 INFO  [Component] Component: authenticator, scope: EVENT, type: JAVA_BEAN, class: org.domain.asd.session.Authenticator
                22:56:30,618 INFO  [Component] Component: entityManager, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.ManagedPersistenceContext
                22:56:30,619 INFO  [Component] Component: org.jboss.seam.async.asynchronousExceptionHandler, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.async.AsynchronousExceptionHandler
                22:56:30,620 INFO  [Component] Component: org.jboss.seam.async.dispatcher, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.async.ThreadPoolDispatcher
                22:56:30,626 INFO  [Component] Component: org.jboss.seam.captcha.captcha, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.captcha.Captcha
                22:56:30,627 INFO  [Component] Component: org.jboss.seam.captcha.captchaImage, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.captcha.CaptchaImage
                22:56:30,627 INFO  [Component] Component: org.jboss.seam.core.ConversationIdGenerator, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationIdGenerator
                22:56:30,631 INFO  [Component] Component: org.jboss.seam.core.contexts, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Contexts
                22:56:30,632 INFO  [Component] Component: org.jboss.seam.core.conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
                22:56:30,634 INFO  [Component] Component: org.jboss.seam.core.conversationEntries, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationEntries
                22:56:30,635 INFO  [Component] Component: org.jboss.seam.core.conversationListFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
                22:56:30,636 INFO  [Component] Component: org.jboss.seam.core.conversationPropagation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationPropagation
                22:56:30,636 INFO  [Component] Component: org.jboss.seam.core.conversationStackFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
                22:56:30,637 INFO  [Component] Component: org.jboss.seam.core.events, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Events
                22:56:30,638 INFO  [Component] Component: org.jboss.seam.core.expressions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesExpressions
                22:56:30,638 INFO  [Component] Component: org.jboss.seam.core.interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
                22:56:30,639 INFO  [Component] Component: org.jboss.seam.core.locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Locale
                22:56:30,642 INFO  [Component] Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesManager
                22:56:30,644 INFO  [Component] Component: org.jboss.seam.core.resourceBundle, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
                22:56:30,644 INFO  [Component] Component: org.jboss.seam.core.resourceLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.ResourceLoader
                22:56:30,646 INFO  [Component] Component: org.jboss.seam.core.validators, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Validators
                22:56:30,653 INFO  [Component] Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
                22:56:30,658 INFO  [Component] Component: org.jboss.seam.debug.hotDeployFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.hot.HotDeployFilter
                22:56:30,659 INFO  [Component] Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
                22:56:30,663 INFO  [Component] Component: org.jboss.seam.debug.jsf.debugRedirect, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.jsf.DebugRedirect
                22:56:30,664 INFO  [Component] Component: org.jboss.seam.document.documentStore, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.document.DocumentStore
                22:56:30,670 INFO  [Component] Component: org.jboss.seam.exception.exceptions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.exception.Exceptions
                22:56:30,676 INFO  [Component] Component: org.jboss.seam.faces.dataModels, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.DataModels
                22:56:30,677 INFO  [Component] Component: org.jboss.seam.faces.facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesContext
                22:56:30,677 INFO  [Component] Component: org.jboss.seam.faces.facesPage, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesPage
                22:56:30,678 INFO  [Component] Component: org.jboss.seam.faces.httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.HttpError
                22:56:30,678 INFO  [Component] Component: org.jboss.seam.faces.redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.Redirect
                22:56:30,680 INFO  [Component] Component: org.jboss.seam.faces.renderer, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletsRenderer
                22:56:30,680 INFO  [Component] Component: org.jboss.seam.faces.switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.faces.Switcher
                22:56:30,681 INFO  [Component] Component: org.jboss.seam.faces.uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.UiComponent
                22:56:30,681 INFO  [Component] Component: org.jboss.seam.faces.validation, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.faces.Validation
                22:56:30,682 INFO  [Component] Component: org.jboss.seam.framework.currentDate, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDate
                22:56:30,686 INFO  [Component] Component: org.jboss.seam.framework.currentDatetime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentDatetime
                22:56:30,692 INFO  [Component] Component: org.jboss.seam.framework.currentTime, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.framework.CurrentTime
                22:56:30,695 INFO  [Component] Component: org.jboss.seam.graphicImage.image, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.Image
                22:56:30,697 INFO  [Component] Component: org.jboss.seam.international.localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.LocaleSelector
                22:56:30,698 INFO  [Component] Component: org.jboss.seam.international.messagesFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.Messages
                22:56:30,702 INFO  [Component] Component: org.jboss.seam.international.statusMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.faces.FacesMessages
                22:56:30,706 INFO  [Component] Component: org.jboss.seam.international.timeZone, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZone
                22:56:30,707 INFO  [Component] Component: org.jboss.seam.international.timeZoneSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.international.TimeZoneSelector
                22:56:30,709 INFO  [Component] Component: org.jboss.seam.mail.mailSession, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.mail.MailSession
                22:56:30,715 INFO  [Component] Component: org.jboss.seam.navigation.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.Pages
                22:56:30,720 INFO  [Component] Component: org.jboss.seam.navigation.safeActions, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.navigation.SafeActions
                22:56:30,721 INFO  [Component] Component: org.jboss.seam.persistence.persistenceContexts, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.persistence.PersistenceContexts
                22:56:30,726 INFO  [Component] Component: org.jboss.seam.persistence.persistenceProvider, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.persistence.HibernatePersistenceProvider
                22:56:30,730 INFO  [Component] Component: org.jboss.seam.remoting.gwt.gwtToSeamAdapter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.gwt.GWTToSeamAdapter
                22:56:30,731 INFO  [Component] Component: org.jboss.seam.remoting.remoting, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.Remoting
                22:56:30,732 INFO  [Component] Component: org.jboss.seam.security.configurationFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.security.Configuration
                22:56:30,733 INFO  [Component] Component: org.jboss.seam.security.credentials, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Credentials
                22:56:30,735 INFO  [Component] Component: org.jboss.seam.security.entityPermissionChecker, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.EntityPermissionChecker
                22:56:30,742 INFO  [Component] Component: org.jboss.seam.security.facesSecurityEvents, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.FacesSecurityEvents
                22:56:30,744 INFO  [Component] Component: org.jboss.seam.security.identifierPolicy, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.permission.IdentifierPolicy
                22:56:30,747 INFO  [Component] Component: org.jboss.seam.security.identity, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.Identity
                22:56:30,755 INFO  [Component] Component: org.jboss.seam.security.identityManager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.security.management.IdentityManager
                22:56:30,758 INFO  [Component] Component: org.jboss.seam.security.management.roleAction, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.security.management.action.RoleAction
                22:56:30,762 INFO  [Component] Component: org.jboss.seam.security.management.roleSearch, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.management.action.RoleSearch
                22:56:30,768 INFO  [Component] Component: org.jboss.seam.security.management.userAction, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.security.management.action.UserAction
                22:56:30,771 INFO  [Component] Component: org.jboss.seam.security.management.userSearch, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.management.action.UserSearch
                22:56:30,773 INFO  [Component] Component: org.jboss.seam.security.passwordHash, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.security.management.PasswordHash
                22:56:30,774 INFO  [Component] Component: org.jboss.seam.security.permission.permissionSearch, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.security.permission.action.PermissionSearch
                22:56:30,778 INFO  [Component] Component: org.jboss.seam.security.permissionManager, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.permission.PermissionManager
                22:56:30,782 INFO  [Component] Component: org.jboss.seam.security.permissionMapper, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.permission.PermissionMapper
                22:56:30,782 INFO  [Component] Component: org.jboss.seam.security.persistentPermissionResolver, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.security.permission.PersistentPermissionResolver
                22:56:30,785 INFO  [Component] Component: org.jboss.seam.security.rememberMe, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.RememberMe
                22:56:30,789 INFO  [Component] Component: org.jboss.seam.security.ruleBasedPermissionResolver, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.security.permission.RuleBasedPermissionResolver
                22:56:30,790 INFO  [Component] Component: org.jboss.seam.theme.themeFactory, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.theme.Theme
                22:56:30,791 INFO  [Component] Component: org.jboss.seam.theme.themeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.theme.ThemeSelector
                22:56:30,792 INFO  [Component] Component: org.jboss.seam.transaction.synchronizations, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.transaction.SeSynchronizations
                22:56:30,793 INFO  [Component] Component: org.jboss.seam.transaction.transaction, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.transaction.Transaction
                22:56:30,794 INFO  [Component] Component: org.jboss.seam.ui.EntityConverter, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityConverter
                22:56:30,797 INFO  [Component] Component: org.jboss.seam.ui.entityIdentifierStore, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.ui.EntityIdentifierStore
                22:56:30,809 INFO  [Component] Component: org.jboss.seam.ui.entityLoader, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.JpaEntityLoader
                22:56:30,812 INFO  [Component] Component: org.jboss.seam.ui.facelet.faceletCompiler, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.FaceletCompiler
                22:56:30,817 INFO  [Component] Component: org.jboss.seam.ui.facelet.facesContextFactory, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.RendererFacesContextFactory
                22:56:30,824 WARN  [Component] Component class should be serializable: org.jboss.seam.ui.facelet.mockHttpSession
                22:56:30,824 INFO  [Component] Component: org.jboss.seam.ui.facelet.mockHttpSession, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.HttpSessionManager
                22:56:30,825 INFO  [Component] Component: org.jboss.seam.ui.facelet.mockServletContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.facelet.ServletContextManager
                22:56:30,825 INFO  [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageResource
                22:56:30,827 INFO  [Component] Component: org.jboss.seam.ui.graphicImage.graphicImageStore, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.ui.graphicImage.GraphicImageStore
                22:56:30,828 INFO  [Component] Component: org.jboss.seam.ui.resource.webResource, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.ui.resource.WebResource
                22:56:30,829 INFO  [Component] Component: org.jboss.seam.web.ajax4jsfFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.Ajax4jsfFilter
                22:56:30,830 INFO  [Component] Component: org.jboss.seam.web.ajax4jsfFilterInstantiator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.ui.filter.Ajax4jsfFilterInstantiator
                22:56:30,834 INFO  [Component] Component: org.jboss.seam.web.exceptionFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.ExceptionFilter
                22:56:30,835 INFO  [Component] Component: org.jboss.seam.web.identityFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.IdentityFilter
                22:56:30,836 INFO  [Component] Component: org.jboss.seam.web.isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.IsUserInRole
                22:56:30,836 INFO  [Component] Component: org.jboss.seam.web.loggingFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.LoggingFilter
                22:56:30,837 INFO  [Component] Component: org.jboss.seam.web.multipartFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.MultipartFilter
                22:56:30,838 INFO  [Component] Component: org.jboss.seam.web.parameters, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.faces.Parameters
                22:56:30,838 INFO  [Component] Component: org.jboss.seam.web.redirectFilter, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.web.RedirectFilter
                22:56:30,839 INFO  [Component] Component: org.jboss.seam.web.servletContexts, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.web.ServletContexts
                22:56:30,839 INFO  [Component] Component: org.jboss.seam.web.session, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.web.Session
                22:56:30,840 INFO  [Component] Component: org.jboss.seam.web.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.UserPrincipal
                22:56:30,843 INFO  [Component] Component: securityRules, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.metamodel.descriptor.SecurityRole

                • 5. Re: Problems injecting EntityManger
                  Code Warrior Newbie

                  Finally Part 3:



                  22:56:30,847 ERROR [[/asd]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                  java.lang.RuntimeException: Could not create Component: securityRules
                          at org.jboss.seam.init.Initialization.addComponent(Initialization.java:1155)
                          at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1071)
                          at org.jboss.seam.init.Initialization.init(Initialization.java:720)
                          at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
                          at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3887)
                          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4370)
                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:352)
                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:140)
                          at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:459)
                          at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                          at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                          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:585)
                          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 $Proxy35.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:1598)
                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                          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:672)
                          at org.jboss.system.ServiceController.start(ServiceController.java:444)
                          at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
                          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
                          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
                          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:169)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1024)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1056)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                          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:627)
                          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
                          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)
                          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)
                          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
                          at org.jboss.Main.boot(Main.java:209)
                          at org.jboss.Main$1.run(Main.java:544)
                          at java.lang.Thread.run(Thread.java:613)
                  Caused by: java.lang.IllegalArgumentException: no such field: org.jboss.metamodel.descriptor.SecurityRole.ruleFiles
                          at org.jboss.seam.util.Reflections.getField(Reflections.java:310)
                          at org.jboss.seam.Component.initInitializers(Component.java:481)
                          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:1139)
                          ... 62 more
                  22:56:30,848 ERROR [StandardContext] Error listenerStart
                  22:56:30,848 ERROR [StandardContext] Context [/asd] startup failed due to previous errors
                  22:56:30,855 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/asd state=Create mode=Manual requiredState=Installed
                  org.jboss.deployers.spi.DeploymentException: URL file:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/tmp/deploy/asd53128-exp.war/ deployment failed
                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:373)
                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:140)
                          at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:459)
                          at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                          at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                          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:585)
                          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 $Proxy35.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:1598)
                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                          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:672)
                          at org.jboss.system.ServiceController.start(ServiceController.java:444)
                          at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
                          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
                          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
                          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:169)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1024)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1056)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                          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:627)
                          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
                          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)
                          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)
                          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
                          at org.jboss.Main.boot(Main.java:209)
                          at org.jboss.Main$1.run(Main.java:544)
                          at java.lang.Thread.run(Thread.java:613)
                  22:56:30,871 INFO  [SessionSpecContainer] Stopping jboss.j2ee:ear=asd-ear.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3
                  22:56:30,872 INFO  [EJBContainer] STOPPED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
                  22:56:31,022 INFO  [SessionSpecContainer] Stopping jboss.j2ee:ear=asd-ear.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3
                  22:56:31,022 INFO  [EJBContainer] STOPPED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
                  22:56:31,139 INFO  [PersistenceUnitDeployment] Stopping persistence unit persistence.unit:unitName=asd-ear.ear/asd-ejb.jar#asd
                  22:56:31,139 INFO  [SessionFactoryImpl] closing
                  22:56:31,140 INFO  [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.unit:unitName=asd-ear.ear/asd-ejb.jar#asd
                  22:56:31,140 INFO  [NamingHelper] JNDI InitialContext properties:{}
                  22:56:31,140 INFO  [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.unit:unitName=asd-ear.ear/asd-ejb.jar#asd
                  22:56:31,151 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/deploy/asd-ear.ear state=PreReal mode=Manual requiredState=Real
                  org.jboss.deployers.spi.DeploymentException: URL file:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/tmp/deploy/asd53128-exp.war/ deployment failed
                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:373)
                          at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:140)
                          at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:459)
                          at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
                          at org.jboss.web.deployers.WebModule.start(WebModule.java:96)
                          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:585)
                          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 $Proxy35.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:1598)
                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                          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:672)
                          at org.jboss.system.ServiceController.start(ServiceController.java:444)
                          at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:146)
                          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:104)
                          at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
                          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:169)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1024)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1056)
                          at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                          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:627)
                          at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
                          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)
                          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)
                          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
                          at org.jboss.Main.boot(Main.java:209)
                          at org.jboss.Main$1.run(Main.java:544)
                          at java.lang.Thread.run(Thread.java:613)
                  22:56:31,188 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                  
                  *** CONTEXTS IN ERROR: Name -> Error
                  
                  vfszip:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/deploy/asd-ear.ear -> org.jboss.deployers.spi.DeploymentException: URL file:/Applications/Desenvolvimento/webapp/jboss-5.0.0.CR2/server/default/tmp/deploy/asd53128-exp.war/ deployment failed
                  
                  
                  22:56:31,203 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
                  22:56:31,226 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
                  22:56:31,232 INFO  [ServerImpl] JBoss (Microcontainer) [5.0.0.CR2 (build: SVNTag=JBoss_5_0_0_CR2 date=200809171046)] Started in 46s:76ms



                  • 6. Re: Problems injecting EntityManger
                    John Ament Master

                    I'm a bit confused - are you saying you don't have a persistence.xml ?  If not, that's the problem.  In persistence you need to configure the jndi name as well.  The error's likely complaining about something like that.


                    You'll need a property like this:


                    <property name="jboss.entity.manager.factory.jndi.name" value="java:/asdEntityManagerFactory"/>

                    • 7. Re: Problems injecting EntityManger
                      Code Warrior Newbie

                      I have the persistence.xml file, but this is a so basic program that don't access databases. They stay like thay was created by the Seam-Gen. The problem is with the security, drools, something like this.


                      1) 22:56:30,847 ERROR [[/asd]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
                      java.lang.RuntimeException: Could not create Component: securityRules
                      
                      2) Caused by: java.lang.IllegalArgumentException: no such field: org.jboss.metamodel.descriptor.SecurityRole.ruleFiles

                      • 8. Re: Problems injecting EntityManger
                        Code Warrior Newbie

                        Sorry, i don't describe that i created a totally new program and don't say that the problems with EntityManager was passed way, was OK. After the EntityManager problem OK, the next problem is it, with the securit, this error.

                        • 9. Re: Problems injecting EntityManger
                          Shane Bryzak Master

                          Caused by: java.lang.IllegalArgumentException: no such field: org.jboss.metamodel.descriptor.SecurityRole.ruleFiles


                          This isn't even a Seam class - where does it come from?