13 Replies Latest reply on Oct 22, 2010 9:32 AM by swapna sangal

    Persistence unit not found after migrating to 5.0.1

    Olivier Thierry Apprentice

      Hi,

      I have an application that used to work with JBoss 4.2.3 but it fails starting with JBoss 5.0.1 with the following exception :

      11:27:14,275 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/t4-dev/jboss/jboss-5.0.1.GA/server/default/deploy/t4-ihm-self-ear-1.0-SNAPSHOT.ear/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying t4-ihm-self-ejb-1.0-SNAPSHOT.jar: Container jboss.j2ee:ear=t4-ihm-self-ear-1.0-SNAPSHOT.ear,jar=t4-ihm-self-ejb-1.0-SNAPSHOT.jar,name=EmployeeFacadeServiceBean,service=EJB3 failed to resolve persistence unit t4Seam
       at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:201)
       at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:103)
       at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
       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:1210)
       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: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:781)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
       at org.jboss.Main.boot(Main.java:209)
       at org.jboss.Main$1.run(Main.java:547)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IllegalArgumentException: Container jboss.j2ee:ear=t4-ihm-self-ear-1.0-SNAPSHOT.ear,jar=t4-ihm-self-ejb-1.0-SNAPSHOT.jar,name=EmployeeFacadeServiceBean,service=EJB3 failed to resolve persistence unit t4Seam
       at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:135)
       at org.jboss.injection.PersistenceContextHandler.handleFieldAnnotations(PersistenceContextHandler.java:183)
       at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUtil.java:160)
       at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUtil.java:166)
       at org.jboss.injection.InjectionUtil.processAnnotations(InjectionUtil.java:197)
       at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:590)
       at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:415)
       at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:523)
       at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:194)
       ... 23 more
      Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 't4Seam' in AbstractVFSDeploymentContext@2438883{vfszip:/C:/t4-dev/jboss/jboss-5.0.1.GA/server/default/deploy/t4-ihm-self-ear-1.0-SNAPSHOT.ear/t4-ihm-self-ejb-1.0-SNAPSHOT.jar/}
       at org.jboss.jpa.resolvers.BasePersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(BasePersistenceUnitDependencyResolver.java:107)
       at org.jboss.ejb3.Ejb3Deployment.resolvePersistenceUnitSupplier(Ejb3Deployment.java:720)
       at org.jboss.ejb3.EJBContainer.resolvePersistenceUnitSupplier(EJBContainer.java:1428)
       at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:130)
       ... 31 more
      



      The datasource is defined in this t4-ds.xml file in deploy directory :

      <?xml version="1.0" encoding="UTF-8"?>
      <datasources>
       <local-tx-datasource>
       <jndi-name>jdbc/t4Seam</jndi-name>
       <connection-url>jdbc:hsqldb:hsql://localhost/t4</connection-url>
       <driver-class>org.hsqldb.jdbcDriver</driver-class>
       <user-name>sa</user-name>
       <password></password>
       <metadata>
       <type-mapping>Hypersonic SQL</type-mapping>
       </metadata>
       </local-tx-datasource>
      </datasources>


      My persistence.xml file is in a JAR file bundled in the EAR I try to deploy :
      <?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="t4Seam">
       <provider>org.hibernate.ejb.HibernatePersistence</provider>
       <jta-data-source>java:/jdbc/t4Seam</jta-data-source>
       <mapping-file>META-INF/orm-utils.xml</mapping-file>
       <mapping-file>META-INF/orm-commons.xml</mapping-file>
       <mapping-file>META-INF/orm-gt.xml</mapping-file>
       </persistence-unit>
      </persistence>


      Hibernate dialect is set via a -D option in JBoss startup (my application must run with any database and I found no other way to do this).

      Is there something special to do with JBoss AS 5.0.1 to make it work ?

      Regards,

      Olivier

        • 1. Re: Persistence unit not found after migrating to 5.0.1
          jaikiran pai Master

           

          My persistence.xml file is in a JAR file bundled in the EAR I try to deploy


          Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 't4Seam' in Abstr
          actVFSDeploymentContext@2438883{vfszip:/C:/t4-dev/jboss/jboss-5.0.1.GA/server/default/deploy/t4-ihm-
          self-ear-1.0-SNAPSHOT.ear/t4-ihm-self-ejb-1.0-SNAPSHOT.jar/}


          So isn't the persistence.xml placed in META-INF folder of t4-ihm-self-ejb-1.0-SNAPSHOT.jar?

          • 2. Re: Persistence unit not found after migrating to 5.0.1
            Olivier Thierry Apprentice

            No, there is no persistence.xml file in this jar because I don't need it at this place (no EJB3 entities). The persistence.xml file is in an other jar that contains EJB3 entities.

            • 3. Re: Persistence unit not found after migrating to 5.0.1
              jaikiran pai Master

              So you are trying to inject the EntityManager in a jar which doesn't have a persistence.xml defined. In that case try this in the injection:

              @PersistenceContext(unitName="myotherjar.jar#t4Seam")
              EntityManager em;


              where myotherjar.jar is the jar file (within the EAR) containing the persistence.xml in its META-INF folder.

              One other user recently has reported a similar issue - so if this suggested approach doesn't work then do let us know.


              • 4. Re: Persistence unit not found after migrating to 5.0.1
                Olivier Thierry Apprentice

                Is it something specific to JBoss 5.0.1 ? I absolutely need my EARs to run on any Java EE application server ...

                • 5. Re: Persistence unit not found after migrating to 5.0.1
                  Carlo de Wolf Master

                   

                  "EJB 3.0 FR Persistence 6.2.2" wrote:
                  When referencing a persistence unit using the unitName annotation element or persis-
                  tence-unit-name deployment descriptor element, the visibility scope of the persistence unit is
                  determined by its point of definition. A persistence unit that is defined at the level of an EJB-JAR, WAR,
                  or application client jar is scoped to that EJB-JAR, WAR, or application jar respectively and is visible to
                  the components defined in that jar or war. A persistence unit that is defined at the level of the EAR is
                  generally visible to all components in the application.


                  So packaging your persistence unit with EJBs makes it scoped to only that jar. You can reference it via a relative path or you can extract it to a separate jar.

                  • 6. Re: Persistence unit not found after migrating to 5.0.1
                    Olivier Thierry Apprentice

                    I finally removed persistence.xml from my EJB JAR and put it in EAR META-INF directory. Now it looks OK with JBoss 5 (I have problems later with JBPM but nothing to see with JPA I think).

                    But now it doesn't start with JBoss 4.2.3 !!! I have many messages like this one :

                    --- MBeans waiting for other MBeans ---
                    ObjectName: jboss.j2ee:ear=t4-ihm-self-ear-1.0-SNAPSHOT.ear,jar=t4-core-all-1.0-SNAPSHOT.jar,name=DictionaryFacadeServiceBean,service=EJB3
                     State: NOTYETINSTALLED
                     I Depend On:
                     persistence.units:unitName=t4Seam


                    So it looks like JBoss 4.2.3 and JBoss 5.0.1 don't look for persistence.xml file the same way. And the worst is they do it a not compatible way ! What should I do so that my EAR can work on both JBoss 4.2.3 and 5.0.1, and on any other application servers ?

                    • 7. Re: Persistence unit not found after migrating to 5.0.1
                      Carlo de Wolf Master

                      Don't use JBoss AS 4.2.3, the EJB 3 / JPA implementation in there is a preview and thus not spec compliant. So use JBoss 5.0.1.

                      If you really want to use JBoss 4.2.3 then file a support case on Enterprise Application Platform 4.3 requesting a backport.

                      http://www.jboss.com/services/

                      • 8. Re: Persistence unit not found after migrating to 5.0.1
                        Peter Johnson Master

                        Any reason why you cannot package the persistence.xml file in both locations?

                        • 10. Re: Persistence unit not found after migrating to 5.0.1
                          Ravil Zakirov Newbie

                          I have similar problem using entities, session beans and persistence.xml in the same jar.

                          Here is persistence.xml:

                          <?xml version="1.0" encoding="UTF-8"?>
                          <persistence version="1.0" 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">
                           <persistence-unit name="AuctionApp_ejb" transaction-type="JTA">
                           <provider>org.hibernate.ejb.HibernatePersistence</provider>
                           <jta-data-source>java:/auction-ds</jta-data-source>
                           <properties>
                           <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
                           <property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
                           <property name="hibernate.connection.url" value="jdbc:oracle:thin:@server:1521:orcl"/>
                           <property name="hibernate.connection.driver_class" value="oracle.jdbc.OracleDriver"/>
                           <property name="hibernate.connection.password" value="password"/>
                           <property name="hibernate.connection.username" value="user"/>
                           <property name="hibernate.hbm2ddl.auto" value="update"/>
                           <property name="hibernate.show_sql" value="true" />
                          
                           <property name="jboss.entity.manager.jndi.name" value="java:/AuctionAppEjb"/>
                           </properties>
                           </persistence-unit>
                          </persistence>
                          


                          Here is session bean:
                          @Stateless
                          public class BidFacade implements BidFacadeLocal, BidFacadeRemote {
                           @PersistenceContext(unitName="AuctionApp_ejb")
                           private EntityManager em;
                          ...
                          }
                          


                          I get exception during EAR application loading:
                          2009-03-18 14:10:44,669 ERROR [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) ENC setup failed
                          java.lang.NullPointerException
                           at org.jboss.injection.PersistenceUnitHandler.getManagedEntityManagerFactory(PersistenceUnitHandler.java:149)
                           at org.jboss.injection.PcEncInjector.inject(PcEncInjector.java:76)
                           at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:496)
                           at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:470)
                           at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
                           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:312)
                           at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:144)
                           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: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 $Proxy36.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: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.doInstallParentFirst(DeployersImpl.java:1210)
                           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: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:781)
                           at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
                           at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                           at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                           at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                           at org.jboss.Main.boot(Main.java:209)
                           at org.jboss.Main$1.run(Main.java:547)
                           at java.lang.Thread.run(Thread.java:595)
                          


                          Could you help me to solve the problem?

                          • 11. Re: Persistence unit not found after migrating to 5.0.1
                            swapna sangal Newbie

                            Migrating from Jboss 4.2.3 to jboss 5.1.0 getting the same kind of error, Any help appreciated,

                             

                            persistance.xml

                             

                            <?xml version="1.0" encoding="UTF-8"?>

                            <persistence version="1.0" 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">

                             

                            <persistence-unit name="c2-security" transaction-type="JTA">

                             

                                  <provider>org.hibernate.ejb.HibernatePersistence</provider>

                                  <jta-data-source>java:/security</jta-data-source>

                                  <class>org.cityofchicago.dor.securityservices.domain.principal.Principal</class>

                                  <class>org.cityofchicago.dor.securityservices.domain.principal.Role</class>

                                  <class>org.cityofchicago.dor.securityservices.domain.principal.Permission</class>

                             

                                  <properties>

                                  <!--

                                  <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/>

                                  <property name="hibernate.hbm2ddl.auto" value="create" />

                                  <property name="hibernate.hbm2ddl.auto" value="create-drop" />

                                  <property name="hibernate.hbm2ddl.auto" value="update"/>

                                    -->

                                 

                                  <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>

                                  <property name="hibernate.query.substitutions" value="true 1, false 0" />

                                     <!--property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/-->

                                      <!-- disable Hibernate second level cache - not currently used -->

                                  <property name="hibernate.cache.provider_class"

                                            value="org.hibernate.cache.NoCacheProperty"/>

                                  <property name="hibernate.cache.use_second_level_cache"

                                            value="false"/>

                                  </properties>

                               </persistence-unit>

                             

                            </persistence>

                             

                            and spring configuration file "data-access-config.xml"

                             

                            <?xml version="1.0" encoding="UTF-8"?>

                            <beans xmlns="http://www.springframework.org/schema/beans"

                                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                                   xmlns:tx="http://www.springframework.org/schema/tx"

                                   xmlns:jee="http://www.springframework.org/schema/jee"

                                   xsi:schemaLocation="

                                       http://www.springframework.org/schema/beans

                                       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd

                                       http://www.springframework.org/schema/tx

                                       http://www.springframework.org/schema/tx/spring-tx-2.5.xsd

                                       http://www.springframework.org/schema/jee

                                       http://www.springframework.org/schema/jee/spring-jee-2.5.xsd">

                             

                            <!-- Instructs Spring to perfrom declarative transaction managemenet on annotated classes -->

                            <tx:annotation-driven />

                             

                                <jee:jndi-lookup id="dataSource" jndi-name="java:/security" />

                             

                            <!-- Drives transactions using local JPA APIs -->

                            <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">

                            <property name="entityManagerFactory" ref="entityManagerFactory" />

                            </bean>

                             

                            <!-- Creates a EntityManagerFactory for use with the Hibernate JPA provider -->

                            <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">

                            <property name="dataSource" ref="dataSource" />

                            <property name="jpaVendorAdapter">

                            <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter" />

                            </property>

                                    <property name="jpaProperties">

                                        <props>

                                            <prop key="hibernate.show_sql" >$[isDevelopmentConfiguration]</prop>

                                            <prop key="hibernate.format_sql" >$[isDevelopmentConfiguration]</prop>

                                            <prop key="hibernate.use_sql_comments" >$[isDevelopmentConfiguration]</prop>

                                        </props>

                                    </property>

                            </bean>

                             

                                <!-- for programmatic transaction management -->

                            <bean id="transactionTemplateRequiresNew" class="org.springframework.transaction.support.TransactionTemplate">

                            <property name="transactionManager" ref="transactionManager"/>

                            <property name="propagationBehavior" value="3"/>

                            </bean>

                             

                            <bean id="transactionTemplate" class="org.springframework.transaction.support.TransactionTemplate">

                            <property name="transactionManager" ref="transactionManager"/>

                            </bean>

                            </beans>

                             

                            The Stack Trace here it goes :

                             

                            2010-10-21 10:39:20,254 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/security-services-web
                            2010-10-21 10:39:20,316 ERROR [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) ENC setup failed
                            java.lang.NullPointerException
                            at org.jboss.injection.PersistenceUnitHandler.getManagedEntityManagerFactory(PersistenceUnitHandler.java:149)
                            at org.jboss.injection.PcEncInjector.inject(PcEncInjector.java:76)
                            at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)
                            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
                            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:597)
                            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.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                            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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                            at org.jboss.Main.boot(Main.java:221)
                            at org.jboss.Main$1.run(Main.java:556)
                            at java.lang.Thread.run(Thread.java:619)
                            2010-10-21 10:39:20,316 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.web.deployment:war=/security-services-web state=Create mode=Manual requiredState=Installed
                            org.jboss.deployers.spi.DeploymentException: URL file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-v96ta5-gfjsqhw2-1-gfjss4pp-9t/security-services-web.war/ deployment failed
                            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:316)
                            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:597)
                            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.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                            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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                            at org.jboss.Main.boot(Main.java:221)
                            at org.jboss.Main$1.run(Main.java:556)
                            at java.lang.Thread.run(Thread.java:619)
                            Caused by: java.lang.RuntimeException: java.lang.NullPointerException
                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:483)
                            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
                            ... 66 more
                            Caused by: java.lang.NullPointerException
                            at org.jboss.injection.PersistenceUnitHandler.getManagedEntityManagerFactory(PersistenceUnitHandler.java:149)
                            at org.jboss.injection.PcEncInjector.inject(PcEncInjector.java:76)
                            at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)
                            ... 69 more
                            2010-10-21 10:39:20,848 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfszip:/C:/work/jboss-5.1.0.GA/server/default/deploy/security-services-web.war/ state=PreReal mode=Manual requiredState=Real
                            org.jboss.deployers.spi.DeploymentException: URL file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-v96ta5-gfjsqhw2-1-gfjss4pp-9t/security-services-web.war/ deployment failed
                            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:316)
                            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:597)
                            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.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                            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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                            at org.jboss.Main.boot(Main.java:221)
                            at org.jboss.Main$1.run(Main.java:556)
                            at java.lang.Thread.run(Thread.java:619)
                            Caused by: java.lang.RuntimeException: java.lang.NullPointerException
                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:483)
                            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
                            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)
                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
                            ... 66 more
                            Caused by: java.lang.NullPointerException
                            at org.jboss.injection.PersistenceUnitHandler.getManagedEntityManagerFactory(PersistenceUnitHandler.java:149)
                            at org.jboss.injection.PcEncInjector.inject(PcEncInjector.java:76)
                            at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)
                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)
                            ... 69 more
                            2010-10-21 10:39:20,895 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                            DEPLOYMENTS IN ERROR:
                              Deployment "vfszip:/C:/work/jboss-5.1.0.GA/server/default/deploy/security-services-web.war/" is in error due to the following reason(s): java.lang.NullPointerException

                            2010-10-21 10:39:20,254 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) deploy, ctxPath=/security-services-web

                            2010-10-21 10:39:20,316 ERROR [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (main) ENC setup failed

                            java.lang.NullPointerException

                            at org.jboss.injection.PersistenceUnitHandler.getManagedEntityManagerFactory(PersistenceUnitHandler.java:149)

                            at org.jboss.injection.PcEncInjector.inject(PcEncInjector.java:76)

                            at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)

                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)

                            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)

                            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:597)

                            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.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

                            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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

                            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

                            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

                            at org.jboss.Main.boot(Main.java:221)

                            at org.jboss.Main$1.run(Main.java:556)

                            at java.lang.Thread.run(Thread.java:619)

                            2010-10-21 10:39:20,316 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.web.deployment:war=/security-services-web state=Create mode=Manual requiredState=Installed

                            org.jboss.deployers.spi.DeploymentException: URL file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-v96ta5-gfjsqhw2-1-gfjss4pp-9t/security-services-web.war/ deployment failed

                            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:316)

                            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:597)

                            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.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

                            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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

                            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

                            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

                            at org.jboss.Main.boot(Main.java:221)

                            at org.jboss.Main$1.run(Main.java:556)

                            at java.lang.Thread.run(Thread.java:619)

                            Caused by: java.lang.RuntimeException: java.lang.NullPointerException

                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:483)

                            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)

                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)

                            ... 66 more

                            Caused by: java.lang.NullPointerException

                            at org.jboss.injection.PersistenceUnitHandler.getManagedEntityManagerFactory(PersistenceUnitHandler.java:149)

                            at org.jboss.injection.PcEncInjector.inject(PcEncInjector.java:76)

                            at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)

                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)

                            ... 69 more

                            2010-10-21 10:39:20,848 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfszip:/C:/work/jboss-5.1.0.GA/server/default/deploy/security-services-web.war/ state=PreReal mode=Manual requiredState=Real

                            org.jboss.deployers.spi.DeploymentException: URL file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-v96ta5-gfjsqhw2-1-gfjss4pp-9t/security-services-web.war/ deployment failed

                            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:316)

                            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:597)

                            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.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

                            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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

                            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

                            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

                            at org.jboss.Main.boot(Main.java:221)

                            at org.jboss.Main$1.run(Main.java:556)

                            at java.lang.Thread.run(Thread.java:619)

                            Caused by: java.lang.RuntimeException: java.lang.NullPointerException

                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:483)

                            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4388)

                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)

                            ... 66 more

                            Caused by: java.lang.NullPointerException

                            at org.jboss.injection.PersistenceUnitHandler.getManagedEntityManagerFactory(PersistenceUnitHandler.java:149)

                            at org.jboss.injection.PcEncInjector.inject(PcEncInjector.java:76)

                            at org.jboss.web.tomcat.service.TomcatInjectionContainer.populateEnc(TomcatInjectionContainer.java:482)

                            at org.jboss.web.tomcat.service.deployers.TomcatDeployment$EncListener.lifecycleEvent(TomcatDeployment.java:471)

                            ... 69 more

                            2010-10-21 10:39:20,895 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                             

                            DEPLOYMENTS IN ERROR:

                              Deployment "vfszip:/C:/work/jboss-5.1.0.GA/server/default/deploy/security-services-web.war/" is in error due to the following reason(s): java.lang.NullPointerException

                             

                             

                            • 12. Re: Persistence unit not found after migrating to 5.0.1
                              jaikiran pai Master

                              Have you deployed your datasource (*-ds.xml) which makes available the datasource at java:/security JNDI name?

                              • 13. Re: Persistence unit not found after migrating to 5.0.1
                                swapna sangal Newbie

                                Yes, i have deployed the datasource file hsqldb-ds.xml

                                 

                                and the file contents are :

                                 

                                 

                                <?xml version="1.0" encoding="UTF-8"?>

                                 

                                <!-- The Hypersonic embedded database JCA connection factory config -->

                                 

                                <!-- $Id: hsqldb-ds.xml 39791 2006-01-10 18:14:42Z dimitris $ -->

                                 

                                <datasources>

                                   <local-tx-datasource>

                                 

                                      <!-- The jndi name of the DataSource, it is prefixed with java:/ -->

                                      <!-- Datasources are not available outside the virtual machine -->

                                      <jndi-name>DefaultDS</jndi-name>

                                 

                                      <!-- For server mode db, allowing other processes to use hsqldb over tcp.

                                      This requires the org.jboss.jdbc.HypersonicDatabase mbean.

                                      <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url>

                                      -->

                                      <!-- For totally in-memory db, not saved when jboss stops.

                                      The org.jboss.jdbc.HypersonicDatabase mbean is required for proper db shutdown

                                      <connection-url>jdbc:hsqldb:.</connection-url>

                                      -->

                                      <!-- For in-process persistent db, saved when jboss stops.

                                      The org.jboss.jdbc.HypersonicDatabase mbean is required for proper db shutdown

                                      -->

                                      <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>

                                 

                                      <!-- The driver class -->

                                      <driver-class>org.hsqldb.jdbcDriver</driver-class>

                                 

                                      <!-- The login and password -->

                                      <user-name>sa</user-name>

                                      <password></password>

                                 

                                      <!--example of how to specify class that determines if exception means connection should be destroyed-->

                                      <!--exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter</exception-sorter-class-name-->

                                 

                                      <!-- this will be run before a managed connection is removed from the pool for use by a client-->

                                      <!--<check-valid-connection-sql>select * from something</check-valid-connection-sql> -->

                                 

                                      <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->

                                      <min-pool-size>5</min-pool-size>

                                 

                                      <!-- The maximum connections in a pool/sub-pool -->

                                      <max-pool-size>20</max-pool-size>

                                 

                                      <!-- The time before an unused connection is destroyed -->

                                      <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->

                                      <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->

                                      <idle-timeout-minutes>0</idle-timeout-minutes>

                                 

                                      <!-- sql to call when connection is created

                                        <new-connection-sql>some arbitrary sql</new-connection-sql>

                                      -->

                                 

                                      <!-- sql to call on an existing pooled connection when it is obtained from pool

                                         <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>

                                      -->

                                 

                                      <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool

                                         <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyValidConnectionChecker</valid-connection-checker-class-name>

                                      -->

                                 

                                      <!-- Whether to check all statements are closed when the connection is returned to the pool,

                                           this is a debugging feature that should be turned off in production -->

                                      <track-statements/>

                                 

                                      <!-- Use the getConnection(user, pw) for logins

                                        <application-managed-security/>

                                      -->

                                 

                                      <!-- Use the security domain defined in conf/login-config.xml -->

                                      <security-domain>HsqlDbRealm</security-domain>

                                 

                                      <!-- Use the security domain defined in conf/login-config.xml or the

                                           getConnection(user, pw) for logins. The security domain takes precedence.

                                        <security-domain-and-application>HsqlDbRealm</security-domain-and-application>

                                      -->

                                 

                                      <!-- HSQL DB benefits from prepared statement caching -->

                                      <prepared-statement-cache-size>32</prepared-statement-cache-size>

                                 

                                      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->

                                      <metadata>

                                         <type-mapping>Hypersonic SQL</type-mapping>

                                      </metadata>

                                 

                                      <!-- When using in-process (standalone) mode -->

                                      <depends>jboss:service=Hypersonic,database=localDB</depends>

                                      <!-- Uncomment when using hsqldb in server mode

                                      <depends>jboss:service=Hypersonic</depends>

                                      -->

                                   </local-tx-datasource>

                                 

                                 

                                   <local-tx-datasource>

                                  <jndi-name>jdbc/security</jndi-name>     

                                  <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>   

                                  <driver-class>oracle.jdbc.OracleDriver</driver-class>

                                  <user-name>security_user</user-name>

                                  <password>security_user</password>

                                  <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>

                                </local-tx-datasource>

                                 

                                <local-tx-datasource>

                                  <jndi-name>jdbc/revenue-analysis-reports</jndi-name>     

                                  <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>   

                                  <driver-class>oracle.jdbc.OracleDriver</driver-class>

                                  <user-name>report_user</user-name>

                                  <password>report_user</password>

                                  <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>

                                </local-tx-datasource>

                                  <local-tx-datasource>

                                    <jndi-name>jdbc/revenue-analysis</jndi-name>

                                    <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>

                                    <driver-class>oracle.jdbc.OracleDriver</driver-class>

                                    <user-name>history_user</user-name>

                                    <password>history_user</password>

                                    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>

                                  </local-tx-datasource>

                                  <local-tx-datasource>

                                    <jndi-name>jdbc/quartz</jndi-name>

                                    <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>

                                    <driver-class>oracle.jdbc.OracleDriver</driver-class>

                                    <user-name>quartz_user</user-name>

                                    <password>quartz_user</password>

                                    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>

                                  </local-tx-datasource>

                                 

                                  <local-tx-datasource>

                                    <jndi-name>jdbc/revenue-accounting</jndi-name>

                                    <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>

                                    <driver-class>oracle.jdbc.OracleDriver</driver-class>

                                    <user-name>acct_user</user-name>

                                    <password>acct_user</password>

                                    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>

                                  </local-tx-datasource>

                                  <local-tx-datasource>

                                    <jndi-name>jdbc/lockbox</jndi-name>

                                    <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>

                                    <driver-class>oracle.jdbc.OracleDriver</driver-class>

                                    <user-name>lockbox_post</user-name>

                                    <password>lockbox_post</password>

                                    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>

                                  </local-tx-datasource>

                                 

                                   <!-- Uncomment if you want hsqldb accessed over tcp (server mode)

                                   <mbean code="org.jboss.jdbc.HypersonicDatabase"

                                     name="jboss:service=Hypersonic">

                                     <attribute name="Port">1701</attribute>

                                     <attribute name="BindAddress">${jboss.bind.address}</attribute>    

                                     <attribute name="Silent">true</attribute>

                                     <attribute name="Database">default</attribute>

                                     <attribute name="Trace">false</attribute>

                                     <attribute name="No_system_exit">true</attribute>

                                   </mbean>

                                   -->

                                 

                                   <!-- For hsqldb accessed from jboss only, in-process (standalone) mode -->

                                   <mbean code="org.jboss.jdbc.HypersonicDatabase"

                                     name="jboss:service=Hypersonic,database=localDB">

                                     <attribute name="Database">localDB</attribute>

                                     <attribute name="InProcessMode">true</attribute>

                                   </mbean>

                                 

                                </datasources>

                                 

                                but the above error is resolved as i have commented the code initially in jpa-deployers-jboss-beans.xml

                                 

                                PersistenceParsingDeployer, PersistenceDeployer, PersistenceUnitDeployer which were commented and it was not able get persistent unit handler,

                                 

                                after uncommenting it it was able to get persistent unit handler but now entityManagerFactory is not injected, error in init method while creating the entityManagerFactory

                                 

                                and the stack trace what i get is :

                                 

                                17:00:25,216 INFO  [SchemaExport] Running hbm2ddl schema export

                                17:00:25,216 INFO  [SchemaExport] exporting generated schema to database

                                17:00:25,419 ERROR [SchemaExport] Unsuccessful: create table SEC_AGENT (AGENT_ID bigint not null auto_increment, key varchar(255), name varchar(255), primary key (AGENT_ID)) type=InnoDB

                                17:00:25,419 ERROR [SchemaExport] ORA-00907: missing right parenthesis

                                 

                                17:00:25,419 ERROR [SchemaExport] Unsuccessful: create table SEC_PERMISSION (PERMISSION_CDE varchar(255) not null, ACTIVE_FLG bit, DESCRIPTION varchar(255) not null, MODIFIED_BY bigint, primary key (PERMISSION_CDE)) type=InnoDB

                                17:00:25,419 ERROR [SchemaExport] ORA-00922: missing or invalid option

                                 

                                17:00:25,419 ERROR [SchemaExport] Unsuccessful: create table SEC_PRINCIPAL (PRINCIPAL_ID bigint not null, ACTIVE_FLG bit not null, CREATED_DT datetime not null, EMAIL_ADDRESS varchar(255) not null unique, FIRST_NAME varchar(255) not null, MODIFIED_DT datetime, LAST_NAME varchar(255) not null, PASSWORD varchar(255), PASSWORD_RESET_FLG bit not null, PRINCIPAL_NAME varchar(255) not null unique, TICKET_NUMBER varchar(255) not null, VERSION bigint, CREATED_BY bigint not null, MODIFIED_BY bigint not null, primary key (PRINCIPAL_ID)) type=InnoDB

                                17:00:25,419 ERROR [SchemaExport] ORA-00922: missing or invalid option

                                 

                                17:00:25,434 ERROR [SchemaExport] Unsuccessful: create table SEC_PRINCIPAL_ROLE (PRINCIPAL_ID bigint not null, ROLE_ID bigint not null) type=InnoDB

                                17:00:25,434 ERROR [SchemaExport] ORA-00922: missing or invalid option

                                 

                                17:00:25,434 ERROR [SchemaExport] Unsuccessful: create table SEC_ROLE (ROLE_ID bigint not null, ACTIVE_FLG bit, CUSTOMIZED_FLG bit, DESCRIPTION varchar(255), VERSION bigint, CREATED_BY bigint not null, MODIFIED_BY bigint, primary key (ROLE_ID)) type=InnoDB

                                17:00:25,434 ERROR [SchemaExport] ORA-00922: missing or invalid option

                                 

                                17:00:25,434 ERROR [SchemaExport] Unsuccessful: create table SEC_ROLE_PERMISSION (ROLE_ID bigint not null, PERMISSION_CDE varchar(255) not null, primary key (ROLE_ID, PERMISSION_CDE)) type=InnoDB

                                17:00:25,434 ERROR [SchemaExport] ORA-00922: missing or invalid option

                                 

                                17:00:25,434 ERROR [SchemaExport] Unsuccessful: alter table SEC_PERMISSION add index FKC6A56E9DF3C1240A (MODIFIED_BY), add constraint FKC6A56E9DF3C1240A foreign key (MODIFIED_BY) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:25,434 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:25,434 ERROR [SchemaExport] Unsuccessful: alter table SEC_PRINCIPAL add index FK408EF180A16F3F8B (CREATED_BY), add constraint FK408EF180A16F3F8B foreign key (CREATED_BY) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:25,434 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:25,434 ERROR [SchemaExport] Unsuccessful: alter table SEC_PRINCIPAL add index FK408EF180F3C1240A (MODIFIED_BY), add constraint FK408EF180F3C1240A foreign key (MODIFIED_BY) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:25,434 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:25,434 ERROR [SchemaExport] Unsuccessful: alter table SEC_PRINCIPAL_ROLE add index FK7ED2FD5860D8149 (PRINCIPAL_ID), add constraint FK7ED2FD5860D8149 foreign key (PRINCIPAL_ID) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:25,434 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:25,434 ERROR [SchemaExport] Unsuccessful: alter table SEC_PRINCIPAL_ROLE add index FK7ED2FD52540FA4B (ROLE_ID), add constraint FK7ED2FD52540FA4B foreign key (ROLE_ID) references SEC_ROLE (ROLE_ID)

                                17:00:25,434 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:25,434 ERROR [SchemaExport] Unsuccessful: alter table SEC_ROLE add index FK67C567C4A16F3F8B (CREATED_BY), add constraint FK67C567C4A16F3F8B foreign key (CREATED_BY) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:25,434 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:25,450 ERROR [SchemaExport] Unsuccessful: alter table SEC_ROLE add index FK67C567C4F3C1240A (MODIFIED_BY), add constraint FK67C567C4F3C1240A foreign key (MODIFIED_BY) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:25,450 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:25,450 ERROR [SchemaExport] Unsuccessful: alter table SEC_ROLE_PERMISSION add index FK1794DD2A494A5F14 (PERMISSION_CDE), add constraint FK1794DD2A494A5F14 foreign key (PERMISSION_CDE) references SEC_PERMISSION (PERMISSION_CDE)

                                17:00:25,450 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:25,450 ERROR [SchemaExport] Unsuccessful: alter table SEC_ROLE_PERMISSION add index FK1794DD2A2540FA4B (ROLE_ID), add constraint FK1794DD2A2540FA4B foreign key (ROLE_ID) references SEC_ROLE (ROLE_ID)

                                17:00:25,450 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:25,450 INFO  [SchemaExport] schema export complete

                                17:00:25,450 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}

                                17:00:25,856 INFO  [TomcatDeployment] deploy, ctxPath=/security-services-web

                                17:00:25,919 INFO  [[/security-services-web]] Initializing Spring root WebApplicationContext

                                17:00:25,919 INFO  [ContextLoader] Root WebApplicationContext: initialization started

                                17:00:25,919 INFO  [VFSXmlWebApplicationContext] Refreshing org.jboss.spring.vfs.context.VFSXmlWebApplicationContext@13b1696: display name [Root WebApplicationContext]; startup date [Thu Oct 21 17:00:25 CDT 2010]; root of context hierarchy

                                17:00:25,919 INFO  [XmlBeanDefinitionReader] Loading XML bean definitions from ServletContext resource [/WEB-INF/config/web-application-config.xml]

                                17:00:26,044 INFO  [XmlBeanDefinitionReader] Loading XML bean definitions from ServletContext resource [/WEB-INF/config/data-access-config.xml]

                                17:00:26,138 INFO  [VFSXmlWebApplicationContext] Bean factory for application context [org.jboss.spring.vfs.context.VFSXmlWebApplicationContext@13b1696]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1894fd4

                                17:00:26,184 INFO  [PropertyPlaceholderConfigurer] Loading properties file from FileHandler@14216435[path=WEB-INF/classes/application-config.properties context=file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-d0cmx1-gfk6cjyo-1-gfk6e83t-9t/security-services-web.war/ real=file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-d0cmx1-gfk6cjyo-1-gfk6e83t-9t/security-services-web.war/WEB-INF/classes/application-config.properties]

                                17:00:26,184 INFO  [PropertyPlaceholderConfigurer] Loading properties file from FileHandler@6789596[path=WEB-INF/classes/dev.properties context=file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-d0cmx1-gfk6cjyo-1-gfk6e83t-9t/security-services-web.war/ real=file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-d0cmx1-gfk6cjyo-1-gfk6e83t-9t/security-services-web.war/WEB-INF/classes/dev.properties]

                                17:00:26,200 INFO  [PropertyPlaceholderConfigurer] Loading properties file from FileHandler@20796893[path=WEB-INF/classes/email.properties context=file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-d0cmx1-gfk6cjyo-1-gfk6e83t-9t/security-services-web.war/ real=file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-d0cmx1-gfk6cjyo-1-gfk6e83t-9t/security-services-web.war/WEB-INF/classes/email.properties]

                                17:00:26,247 INFO  [DefaultListableBeanFactory] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1894fd4: defining beans [mailSender,principalRegistrationMailMessage,principalPasswordResetMailMessage,isDevelopmentConfiguration,propConfigurer,JPAPermissionRepository,JPAPrincipalRepository,JPAAgentRepository,JPARoleRepository,emailServiceFactory,principalResource,requestAuthenticationResource,permissionResource,roleResource,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.config.internalTransactionAdvisor,dataSource,transactionManager,entityManagerFactory]; root of factory hierarchy

                                17:00:27,466 INFO  [DefaultTicketRegistryCleaner] Starting cleaning of expired tickets from ticket registry at [Thu Oct 21 17:00:27 CDT 2010]

                                17:00:27,466 INFO  [DefaultTicketRegistryCleaner] 0 found to be removed.  Removing now.

                                17:00:27,466 INFO  [DefaultTicketRegistryCleaner] Finished cleaning of expired tickets from ticket registry at [Thu Oct 21 17:00:27 CDT 2010]

                                17:00:27,481 INFO  [LocalContainerEntityManagerFactoryBean] Building JPA container EntityManagerFactory for persistence unit 'c2-security'

                                17:00:27,481 INFO  [Ejb3Configuration] Processing PersistenceUnitInfo [

                                name: c2-security

                                ...]

                                17:00:27,481 INFO  [AnnotationBinder] Binding entity from annotated class: org.cityofchicago.dor.securityservices.domain.principal.Principal

                                17:00:27,481 INFO  [EntityBinder] Bind entity org.cityofchicago.dor.securityservices.domain.principal.Principal on table SEC_PRINCIPAL

                                17:00:27,497 INFO  [AnnotationBinder] Binding entity from annotated class: org.cityofchicago.dor.securityservices.domain.principal.Role

                                17:00:27,497 INFO  [EntityBinder] Bind entity org.cityofchicago.dor.securityservices.domain.principal.Role on table SEC_ROLE

                                17:00:27,497 INFO  [AnnotationBinder] Binding entity from annotated class: org.cityofchicago.dor.securityservices.domain.principal.Permission

                                17:00:27,497 INFO  [EntityBinder] Bind entity org.cityofchicago.dor.securityservices.domain.principal.Permission on table SEC_PERMISSION

                                17:00:27,497 INFO  [AnnotationBinder] Binding entity from annotated class: org.cityofchicago.dor.securityservices.domain.agent.Agent

                                17:00:27,497 INFO  [EntityBinder] Bind entity org.cityofchicago.dor.securityservices.domain.agent.Agent on table SEC_AGENT

                                17:00:27,528 INFO  [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.

                                17:00:27,528 INFO  [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

                                17:00:27,528 INFO  [InjectedDataSourceConnectionProvider] Using provided datasource

                                17:00:27,544 INFO  [SettingsFactory] RDBMS: Oracle, version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

                                With the Partitioning, OLAP, Data Mining and Real Application Testing options

                                17:00:27,544 INFO  [SettingsFactory] JDBC driver: Oracle JDBC driver, version: 10.2.0.3.0

                                17:00:27,544 INFO  [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect

                                17:00:27,544 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory

                                17:00:27,544 INFO  [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)

                                17:00:27,544 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled

                                17:00:27,544 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled

                                17:00:27,544 INFO  [SettingsFactory] JDBC batch size: 15

                                17:00:27,544 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled

                                17:00:27,544 INFO  [SettingsFactory] Scrollable result sets: enabled

                                17:00:27,544 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled

                                17:00:27,544 INFO  [SettingsFactory] Connection release mode: auto

                                17:00:27,544 INFO  [SettingsFactory] Maximum outer join fetch depth: 2

                                17:00:27,544 INFO  [SettingsFactory] Default batch fetch size: 1

                                17:00:27,544 INFO  [SettingsFactory] Generate SQL with comments: disabled

                                17:00:27,544 INFO  [SettingsFactory] Order SQL updates by primary key: disabled

                                17:00:27,544 INFO  [SettingsFactory] Order SQL inserts for batching: disabled

                                17:00:27,544 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory

                                17:00:27,544 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory

                                17:00:27,544 INFO  [SettingsFactory] Query language substitutions: {}

                                17:00:27,544 INFO  [SettingsFactory] JPA-QL strict compliance: enabled

                                17:00:27,544 INFO  [SettingsFactory] Second-level cache: enabled

                                17:00:27,544 INFO  [SettingsFactory] Query cache: disabled

                                17:00:27,544 INFO  [SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge

                                17:00:27,544 INFO  [RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider

                                17:00:27,544 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled

                                17:00:27,544 INFO  [SettingsFactory] Structured second-level cache entries: disabled

                                17:00:27,544 INFO  [SettingsFactory] Echoing all SQL to stdout

                                17:00:27,544 INFO  [SettingsFactory] Statistics: disabled

                                17:00:27,544 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled

                                17:00:27,544 INFO  [SettingsFactory] Default entity-mode: pojo

                                17:00:27,544 INFO  [SettingsFactory] Named query checking : enabled

                                17:00:27,544 INFO  [SessionFactoryImpl] building session factory

                                17:00:27,575 INFO  [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured

                                17:00:27,575 INFO  [SchemaExport] Running hbm2ddl schema export

                                17:00:27,606 INFO  [SchemaExport] exporting generated schema to database

                                17:00:27,622 ERROR [SchemaExport] Unsuccessful: create table SEC_AGENT (AGENT_ID bigint not null auto_increment, key varchar(255), name varchar(255), primary key (AGENT_ID)) type=InnoDB

                                17:00:27,637 ERROR [SchemaExport] ORA-00907: missing right parenthesis

                                 

                                17:00:27,637 ERROR [SchemaExport] Unsuccessful: create table SEC_PERMISSION (PERMISSION_CDE varchar(255) not null, ACTIVE_FLG bit, DESCRIPTION varchar(255) not null, MODIFIED_BY bigint, primary key (PERMISSION_CDE)) type=InnoDB

                                17:00:27,637 ERROR [SchemaExport] ORA-00922: missing or invalid option

                                 

                                17:00:27,637 ERROR [SchemaExport] Unsuccessful: create table SEC_PRINCIPAL (PRINCIPAL_ID bigint not null, ACTIVE_FLG bit not null, CREATED_DT datetime not null, EMAIL_ADDRESS varchar(255) not null unique, FIRST_NAME varchar(255) not null, MODIFIED_DT datetime, LAST_NAME varchar(255) not null, PASSWORD varchar(255), PASSWORD_RESET_FLG bit not null, PRINCIPAL_NAME varchar(255) not null unique, TICKET_NUMBER varchar(255) not null, VERSION bigint, CREATED_BY bigint not null, MODIFIED_BY bigint not null, primary key (PRINCIPAL_ID)) type=InnoDB

                                17:00:27,637 ERROR [SchemaExport] ORA-00922: missing or invalid option

                                 

                                17:00:27,637 ERROR [SchemaExport] Unsuccessful: create table SEC_PRINCIPAL_ROLE (PRINCIPAL_ID bigint not null, ROLE_ID bigint not null) type=InnoDB

                                17:00:27,637 ERROR [SchemaExport] ORA-00922: missing or invalid option

                                 

                                17:00:27,637 ERROR [SchemaExport] Unsuccessful: create table SEC_ROLE (ROLE_ID bigint not null, ACTIVE_FLG bit, CUSTOMIZED_FLG bit, DESCRIPTION varchar(255), VERSION bigint, CREATED_BY bigint not null, MODIFIED_BY bigint, primary key (ROLE_ID)) type=InnoDB

                                17:00:27,637 ERROR [SchemaExport] ORA-00922: missing or invalid option

                                 

                                17:00:27,637 ERROR [SchemaExport] Unsuccessful: create table SEC_ROLE_PERMISSION (ROLE_ID bigint not null, PERMISSION_CDE varchar(255) not null, primary key (ROLE_ID, PERMISSION_CDE)) type=InnoDB

                                17:00:27,637 ERROR [SchemaExport] ORA-00922: missing or invalid option

                                 

                                17:00:27,637 ERROR [SchemaExport] Unsuccessful: alter table SEC_PERMISSION add index FKC6A56E9DF3C1240A (MODIFIED_BY), add constraint FKC6A56E9DF3C1240A foreign key (MODIFIED_BY) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:27,637 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:27,637 ERROR [SchemaExport] Unsuccessful: alter table SEC_PRINCIPAL add index FK408EF180A16F3F8B (CREATED_BY), add constraint FK408EF180A16F3F8B foreign key (CREATED_BY) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:27,637 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:27,637 ERROR [SchemaExport] Unsuccessful: alter table SEC_PRINCIPAL add index FK408EF180F3C1240A (MODIFIED_BY), add constraint FK408EF180F3C1240A foreign key (MODIFIED_BY) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:27,637 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:27,637 ERROR [SchemaExport] Unsuccessful: alter table SEC_PRINCIPAL_ROLE add index FK7ED2FD5860D8149 (PRINCIPAL_ID), add constraint FK7ED2FD5860D8149 foreign key (PRINCIPAL_ID) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:27,637 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:27,669 ERROR [SchemaExport] Unsuccessful: alter table SEC_PRINCIPAL_ROLE add index FK7ED2FD52540FA4B (ROLE_ID), add constraint FK7ED2FD52540FA4B foreign key (ROLE_ID) references SEC_ROLE (ROLE_ID)

                                17:00:27,669 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:27,669 ERROR [SchemaExport] Unsuccessful: alter table SEC_ROLE add index FK67C567C4A16F3F8B (CREATED_BY), add constraint FK67C567C4A16F3F8B foreign key (CREATED_BY) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:27,669 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:27,669 ERROR [SchemaExport] Unsuccessful: alter table SEC_ROLE add index FK67C567C4F3C1240A (MODIFIED_BY), add constraint FK67C567C4F3C1240A foreign key (MODIFIED_BY) references SEC_PRINCIPAL (PRINCIPAL_ID)

                                17:00:27,669 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:27,669 ERROR [SchemaExport] Unsuccessful: alter table SEC_ROLE_PERMISSION add index FK1794DD2A494A5F14 (PERMISSION_CDE), add constraint FK1794DD2A494A5F14 foreign key (PERMISSION_CDE) references SEC_PERMISSION (PERMISSION_CDE)

                                17:00:27,669 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:27,669 ERROR [SchemaExport] Unsuccessful: alter table SEC_ROLE_PERMISSION add index FK1794DD2A2540FA4B (ROLE_ID), add constraint FK1794DD2A2540FA4B foreign key (ROLE_ID) references SEC_ROLE (ROLE_ID)

                                17:00:27,669 ERROR [SchemaExport] ORA-00904: : invalid identifier

                                 

                                17:00:27,669 INFO  [SchemaExport] schema export complete

                                17:00:27,684 INFO  [DefaultListableBeanFactory] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1894fd4: defining beans [mailSender,principalRegistrationMailMessage,principalPasswordResetMailMessage,isDevelopmentConfiguration,propConfigurer,JPAPermissionRepository,JPAPrincipalRepository,JPAAgentRepository,JPARoleRepository,emailServiceFactory,principalResource,requestAuthenticationResource,permissionResource,roleResource,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor#0,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.config.internalTransactionAdvisor,dataSource,transactionManager,entityManagerFactory]; root of factory hierarchy

                                17:00:27,684 ERROR [ContextLoader] Context initialization failed

                                org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailSender' defined in ServletContext resource [/WEB-INF/config/web-application-config.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:445)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

                                at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)

                                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

                                at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:400)

                                at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:736)

                                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)

                                at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)

                                at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)

                                at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

                                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:597)

                                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.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                                at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                                at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

                                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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

                                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

                                at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

                                at org.jboss.Main.boot(Main.java:221)

                                at org.jboss.Main$1.run(Main.java:556)

                                at java.lang.Thread.run(Thread.java:619)

                                Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

                                at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)

                                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

                                at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87)

                                at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:98)

                                at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:84)

                                at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)

                                at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:331)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1266)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:438)

                                ... 82 more

                                Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)

                                ... 101 more

                                Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

                                at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)

                                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)

                                ... 109 more

                                Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1260)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:438)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

                                at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)

                                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)

                                ... 121 more

                                Caused by: javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)

                                at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)

                                at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:221)

                                at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:251)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1288)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1257)

                                ... 130 more

                                Caused by: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA TransactionManager

                                at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:361)

                                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)

                                at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)

                                at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)

                                ... 135 more

                                17:00:27,684 ERROR [[/security-services-web]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

                                org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mailSender' defined in ServletContext resource [/WEB-INF/config/web-application-config.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:445)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

                                at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)

                                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

                                at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:400)

                                at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:736)

                                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)

                                at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)

                                at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)

                                at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

                                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:597)

                                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.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                                at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                                at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

                                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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

                                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

                                at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

                                at org.jboss.Main.boot(Main.java:221)

                                at org.jboss.Main$1.run(Main.java:556)

                                at java.lang.Thread.run(Thread.java:619)

                                Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

                                at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)

                                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

                                at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87)

                                at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:98)

                                at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:84)

                                at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)

                                at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:331)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1266)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:438)

                                ... 82 more

                                Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)

                                ... 101 more

                                Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Cannot resolve reference to bean 'entityManagerFactory' while setting bean property 'entityManagerFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

                                at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)

                                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)

                                ... 109 more

                                Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in ServletContext resource [/WEB-INF/config/data-access-config.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1260)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:438)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)

                                at java.security.AccessController.doPrivileged(Native Method)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

                                at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)

                                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)

                                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

                                at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)

                                ... 121 more

                                Caused by: javax.persistence.PersistenceException: [PersistenceUnit: c2-security] Unable to build EntityManagerFactory

                                at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)

                                at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)

                                at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:221)

                                at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:251)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1288)

                                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1257)

                                ... 130 more

                                Caused by: org.hibernate.HibernateException: The chosen transaction strategy requires access to the JTA TransactionManager

                                at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:361)

                                at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)

                                at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)

                                at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)

                                ... 135 more

                                17:00:27,716 ERROR [StandardContext] Error listenerStart

                                17:00:27,716 ERROR [StandardContext] Context [/security-services-web] startup failed due to previous errors

                                17:00:27,716 INFO  [[/security-services-web]] Closing Spring root WebApplicationContext

                                17:00:27,731 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/security-services-web state=Create mode=Manual requiredState=Installed

                                org.jboss.deployers.spi.DeploymentException: URL file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-d0cmx1-gfk6cjyo-1-gfk6e83t-9t/security-services-web.war/ deployment failed

                                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)

                                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:597)

                                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.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                                at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                                at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

                                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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

                                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

                                at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

                                at org.jboss.Main.boot(Main.java:221)

                                at org.jboss.Main$1.run(Main.java:556)

                                at java.lang.Thread.run(Thread.java:619)

                                17:00:28,731 INFO  [PersistenceUnitDeployment] Stopping persistence unit persistence.unit:unitName=#c2-security

                                17:00:28,731 INFO  [SessionFactoryImpl] closing

                                17:00:28,731 INFO  [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.unit:unitName=#c2-security

                                17:00:28,731 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}

                                17:00:28,731 INFO  [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.unit:unitName=#c2-security

                                17:00:28,747 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/work/jboss-5.1.0.GA/server/default/deploy/security-services-web.war/ state=PreReal mode=Manual requiredState=Real

                                org.jboss.deployers.spi.DeploymentException: URL file:/C:/work/jboss-5.1.0.GA/server/default/tmp/a642b1h-d0cmx1-gfk6cjyo-1-gfk6e83t-9t/security-services-web.war/ deployment failed

                                at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:331)

                                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:597)

                                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.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

                                at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

                                at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

                                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.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

                                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

                                at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

                                at org.jboss.Main.boot(Main.java:221)

                                at org.jboss.Main$1.run(Main.java:556)

                                at java.lang.Thread.run(Thread.java:619)

                                17:00:29,825 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                                 

                                 

                                <?xml version="1.0" encoding="UTF-8"?>
                                <!-- The Hypersonic embedded database JCA connection factory config -->
                                <!-- $Id: hsqldb-ds.xml 39791 2006-01-10 18:14:42Z dimitris $ -->
                                <datasources>
                                   <local-tx-datasource>
                                      <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
                                      <!-- Datasources are not available outside the virtual machine -->
                                      <jndi-name>DefaultDS</jndi-name>
                                      <!-- For server mode db, allowing other processes to use hsqldb over tcp.
                                      This requires the org.jboss.jdbc.HypersonicDatabase mbean.
                                      <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url>
                                      -->
                                      <!-- For totally in-memory db, not saved when jboss stops.
                                      The org.jboss.jdbc.HypersonicDatabase mbean is required for proper db shutdown
                                      <connection-url>jdbc:hsqldb:.</connection-url>
                                      -->
                                      <!-- For in-process persistent db, saved when jboss stops.
                                      The org.jboss.jdbc.HypersonicDatabase mbean is required for proper db shutdown
                                      -->
                                      <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
                                      <!-- The driver class -->
                                      <driver-class>org.hsqldb.jdbcDriver</driver-class>
                                      <!-- The login and password -->
                                      <user-name>sa</user-name>
                                      <password></password>
                                      <!--example of how to specify class that determines if exception means connection should be destroyed-->
                                      <!--exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyExceptionSorter</exception-sorter-class-name-->
                                      <!-- this will be run before a managed connection is removed from the pool for use by a client-->
                                      <!--<check-valid-connection-sql>select * from something</check-valid-connection-sql> -->
                                      <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
                                      <min-pool-size>5</min-pool-size>
                                      <!-- The maximum connections in a pool/sub-pool -->
                                      <max-pool-size>20</max-pool-size>
                                      <!-- The time before an unused connection is destroyed -->
                                      <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
                                      <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
                                      <idle-timeout-minutes>0</idle-timeout-minutes>
                                      <!-- sql to call when connection is created
                                        <new-connection-sql>some arbitrary sql</new-connection-sql>
                                      -->
                                      <!-- sql to call on an existing pooled connection when it is obtained from pool
                                         <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
                                      -->
                                      <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool
                                         <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.DummyValidConnectionChecker</valid-connection-checker-class-name>
                                      -->
                                      <!-- Whether to check all statements are closed when the connection is returned to the pool,
                                           this is a debugging feature that should be turned off in production -->
                                      <track-statements/>
                                      <!-- Use the getConnection(user, pw) for logins
                                        <application-managed-security/>
                                      -->
                                      <!-- Use the security domain defined in conf/login-config.xml -->
                                      <security-domain>HsqlDbRealm</security-domain>
                                      <!-- Use the security domain defined in conf/login-config.xml or the
                                           getConnection(user, pw) for logins. The security domain takes precedence.
                                        <security-domain-and-application>HsqlDbRealm</security-domain-and-application>
                                      -->
                                      <!-- HSQL DB benefits from prepared statement caching -->
                                      <prepared-statement-cache-size>32</prepared-statement-cache-size>
                                      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
                                      <metadata>
                                         <type-mapping>Hypersonic SQL</type-mapping>
                                      </metadata>
                                      <!-- When using in-process (standalone) mode -->
                                      <depends>jboss:service=Hypersonic,database=localDB</depends>
                                      <!-- Uncomment when using hsqldb in server mode
                                      <depends>jboss:service=Hypersonic</depends>
                                      -->
                                   </local-tx-datasource>
                                  
                                  
                                   <local-tx-datasource>
                                  <jndi-name>jdbc/security</jndi-name>     
                                  <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>   
                                  <driver-class>oracle.jdbc.OracleDriver</driver-class>
                                  <user-name>security_user</user-name>
                                  <password>security_user</password>
                                  <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
                                </local-tx-datasource>
                                <local-tx-datasource>
                                  <jndi-name>jdbc/revenue-analysis-reports</jndi-name>     
                                  <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>   
                                  <driver-class>oracle.jdbc.OracleDriver</driver-class>
                                  <user-name>report_user</user-name>
                                  <password>report_user</password>
                                  <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
                                </local-tx-datasource>
                                  <local-tx-datasource>
                                    <jndi-name>jdbc/revenue-analysis</jndi-name>
                                    <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>
                                    <driver-class>oracle.jdbc.OracleDriver</driver-class>
                                    <user-name>history_user</user-name>
                                    <password>history_user</password>
                                    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
                                  </local-tx-datasource>
                                  <local-tx-datasource>
                                    <jndi-name>jdbc/quartz</jndi-name>
                                    <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>
                                    <driver-class>oracle.jdbc.OracleDriver</driver-class>
                                    <user-name>quartz_user</user-name>
                                    <password>quartz_user</password>
                                    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
                                  </local-tx-datasource>
                                  <local-tx-datasource>
                                    <jndi-name>jdbc/revenue-accounting</jndi-name>
                                    <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>
                                    <driver-class>oracle.jdbc.OracleDriver</driver-class>
                                    <user-name>acct_user</user-name>
                                    <password>acct_user</password>
                                    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
                                  </local-tx-datasource>
                                  <local-tx-datasource>
                                    <jndi-name>jdbc/lockbox</jndi-name>
                                    <connection-url>jdbc:oracle:thin:@dc07oru55:1526:webdev</connection-url>
                                    <driver-class>oracle.jdbc.OracleDriver</driver-class>
                                    <user-name>lockbox_post</user-name>
                                    <password>lockbox_post</password>
                                    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
                                  </local-tx-datasource>
                                  
                                   <!-- Uncomment if you want hsqldb accessed over tcp (server mode)
                                   <mbean code="org.jboss.jdbc.HypersonicDatabase"
                                     name="jboss:service=Hypersonic">
                                     <attribute name="Port">1701</attribute>
                                     <attribute name="BindAddress">${jboss.bind.address}</attribute>    
                                     <attribute name="Silent">true</attribute>
                                     <attribute name="Database">default</attribute>
                                     <attribute name="Trace">false</attribute>
                                     <attribute name="No_system_exit">true</attribute>
                                   </mbean>
                                   -->
                                   <!-- For hsqldb accessed from jboss only, in-process (standalone) mode -->
                                   <mbean code="org.jboss.jdbc.HypersonicDatabase"
                                     name="jboss:service=Hypersonic,database=localDB">
                                     <attribute name="Database">localDB</attribute>
                                     <attribute name="InProcessMode">true</attribute>
                                   </mbean>
                                  
                                </datasources>