7 Replies Latest reply on Mar 1, 2010 7:00 AM by Jose M. M. M.

    Error on deploy persistence unit

    Jose M. M. M. Newbie

      When i try to deploy a ejb project it say:

       

      Failed to create Resource Practica_final-ejb.jar - cause: java.lang.RuntimeException:org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): DEPLOYMENTS MISSING DEPENDENCIES: Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **") Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3_endpoint" is missing the following dependencies: Dependency "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall") Deployment "persistence.unit:unitName=#ejbPU" is missing the following dependencies: Dependency "jboss.jca:name=comercioBD,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **") DEPLOYMENTS IN ERROR: Deployment "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' ** Deployment "jboss.jca:name=comercioBD,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' ** -> org.jboss.deployers.client.spi.IncompleteDeploymentException:Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): DEPLOYMENTS MISSING DEPENDENCIES: Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" is missing the following dependencies: Dependency "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **") Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3_endpoint" is missing the following dependencies: Dependency "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall") Deployment "persistence.unit:unitName=#ejbPU" is missing the following dependencies: Dependency "jboss.jca:name=comercioBD,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **") DEPLOYMENTS IN ERROR: Deployment "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' ** Deployment "jboss.jca:name=comercioBD,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **

       

       

      My files:

      -------------------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="ejbPU" transaction-type="JTA">
          <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
          <jta-data-source>java:/comercioBD</jta-data-source>
          <class>modelo.Seccion</class>
          <class>modelo.Producto</class>
          <class>modelo.Cliente</class>
          <class>modelo.Venta</class>
          <exclude-unlisted-classes>true</exclude-unlisted-classes>
          <properties>
          </properties>
        </persistence-unit>
      </persistence>

       

       

       

      ------------------ejbPU-ds.xml-------------------

      <?xml version="1.0" encoding="UTF-8"?>
      <datasources>
        <local-tx-datasource>
          <jndi-name>comercioBD</jndi-name>
          <connection-url>jdbc:mysql://localhost:3306/practica_final</connection-url>
          <driver-class>com.mysql.jdbc.Driver</driver-class>
          <user-name>root</user-name>
          <password>root</password>
          <min-pool-size>5</min-pool-size>
          <max-pool-size>20</max-pool-size>
          <idle-timeout-minutes>5</idle-timeout-minutes>
        </local-tx-datasource>
      </datasources>

       

       

       

       

       

      ----------------ejb-------------

      @Stateless
      public class TiendaBean implements TiendaRemote, TiendaLocal {
          public static final String RemoteJNDIName =  TiendaBean.class.getSimpleName() + "/remote";
          public static final String LocalJNDIName =  TiendaBean.class.getSimpleName() + "/local";
          @PersistenceContext
          private EntityManager em;

       

      ...

       

      }

        • 1. Re: Error on deploy persistence unit
          jaikiran pai Master
          Please format your logs and code using the options available in the forum editor. Without that, it's difficutl to figure out what the problem is.
          • 2. Re: Error on deploy persistence unit
            Jose M. M. M. Newbie
            09:48:18,446 INFO  [DeployHandler] Failed to complete command: [start] for deployment: names=[vfszip:/E:/jboss/server/default/deploy/Practica_final-ejb.jar/], copyContent=true
            org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
            DEPLOYMENTS MISSING DEPENDENCIES:
              Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" is missing the following dependencies:
                Dependency "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **")
              Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3_endpoint" is missing the following dependencies:
                Dependency "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
              Deployment "persistence.unit:unitName=#ejbPU" is missing the following dependencies:
                Dependency "jboss.jca:name=comercioBD,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **")
            DEPLOYMENTS IN ERROR:
              Deployment "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **
              Deployment "jboss.jca:name=comercioBD,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
                    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
                    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
                    at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.start(AbstractDeployHandler.java:265)
                    at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(AbstractDeployHandler.java:177)
                    at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
                    at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
                    at org.jboss.remoting.Client.invoke(Client.java:1724)
                    at org.jboss.remoting.Client.invoke(Client.java:629)
                    at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:305)
                    at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.start(StreamingDeploymentTarget.java:190)
                    at org.jboss.profileservice.management.upload.DeploymentProgressImpl.start(DeploymentProgressImpl.java:231)
                    at org.jboss.profileservice.management.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:88)
                    at org.rhq.plugins.jbossas5.util.DeploymentUtils.run(DeploymentUtils.java:120)
                    at org.rhq.plugins.jbossas5.util.DeploymentUtils.deployArchive(DeploymentUtils.java:103)
                    at org.rhq.plugins.jbossas5.ApplicationServerComponent.createContentBasedResource(ApplicationServerComponent.java:400)
                    at org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource(ApplicationServerComponent.java:211)
                    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.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:482)
                    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                    at java.lang.Thread.run(Thread.java:619)
            09:48:18,840 ERROR [DeploymentUtils] Failed to start deployment [vfszip:/E:/jboss/server/default/deploy/Practica_final-ejb.jar/] during initial deployment of 'Practica_final-ejb.jar'. Backing out the deployment...
            java.lang.RuntimeException: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
            DEPLOYMENTS MISSING DEPENDENCIES:
              Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" is missing the following dependencies:
                Dependency "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **")
              Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3_endpoint" is missing the following dependencies:
                Dependency "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
              Deployment "persistence.unit:unitName=#ejbPU" is missing the following dependencies:
                Dependency "jboss.jca:name=comercioBD,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **")
            DEPLOYMENTS IN ERROR:
              Deployment "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **
              Deployment "jboss.jca:name=comercioBD,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **
                    at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:313)
                    at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.start(StreamingDeploymentTarget.java:190)
                    at org.jboss.profileservice.management.upload.DeploymentProgressImpl.start(DeploymentProgressImpl.java:231)
                    at org.jboss.profileservice.management.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:88)
                    at org.rhq.plugins.jbossas5.util.DeploymentUtils.run(DeploymentUtils.java:120)
                    at org.rhq.plugins.jbossas5.util.DeploymentUtils.deployArchive(DeploymentUtils.java:103)
                    at org.rhq.plugins.jbossas5.ApplicationServerComponent.createContentBasedResource(ApplicationServerComponent.java:400)
                    at org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource(ApplicationServerComponent.java:211)
                    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.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:482)
                    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                    at java.lang.Thread.run(Thread.java:619)
            Caused by: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
            DEPLOYMENTS MISSING DEPENDENCIES:
              Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" is missing the following dependencies:
                Dependency "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **")
              Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3_endpoint" is missing the following dependencies:
                Dependency "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
              Deployment "persistence.unit:unitName=#ejbPU" is missing the following dependencies:
                Dependency "jboss.jca:name=comercioBD,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **")
            DEPLOYMENTS IN ERROR:
              Deployment "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **
              Deployment "jboss.jca:name=comercioBD,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
                    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
                    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
                    at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.start(AbstractDeployHandler.java:265)
                    at org.jboss.profileservice.management.upload.remoting.AbstractDeployHandler.invoke(AbstractDeployHandler.java:177)
                    at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
                    at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
                    at org.jboss.remoting.Client.invoke(Client.java:1724)
                    at org.jboss.remoting.Client.invoke(Client.java:629)
                    at org.jboss.profileservice.management.upload.remoting.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:305)
                    ... 17 more
            09:48:18,844 INFO  [DeployHandler] Remove, [vfszip:/E:/jboss/server/default/deploy/Practica_final-ejb.jar/]
            09:48:18,853 WARN  [CreateResourceRunner] Throwable was found in creation report for request [1]: java.lang.RuntimeException: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
            DEPLOYMENTS MISSING DEPENDENCIES:
              Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" is missing the following dependencies:
                Dependency "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **")
              Deployment "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3_endpoint" is missing the following dependencies:
                Dependency "jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
              Deployment "persistence.unit:unitName=#ejbPU" is missing the following dependencies:
                Dependency "jboss.jca:name=comercioBD,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **")
            DEPLOYMENTS IN ERROR:
              Deployment "<UNKNOWN jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#ejbPU' **
              Deployment "jboss.jca:name=comercioBD,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=comercioBD,service=DataSourceBinding' **
             - Enable DEBUG logging to see the stack trace.
            
            • 3. Re: Error on deploy persistence unit
              jaikiran pai Master

              Have you placed ejbPU-ds.xml in E:/jboss/server/default/deploy folder?

              • 4. Re: Error on deploy persistence unit
                Jose M. M. M. Newbie
                No, I thought that was including in jar file.
                I go to put it into deply folder and then I comment about it.
                • 5. Re: Error on deploy persistence unit
                  Jose M. M. M. Newbie

                  When I put ejbPU-ds.xml in deply folder, restart jboss and deploy the jar file, it run ok.

                   

                  I see one problem. Datasource comercioDB is down always and i don't see how to put in up.

                  When i try to use this, it say:

                  Exception in thread "AWT-EventQueue-0" javax.ejb.EJBException: javax.persistence.TransactionRequiredException: 
                  Exception Description: No transaction is currently active; nested exception is: javax.persistence.TransactionRequiredException: 
                  Exception Description: No transaction is currently active
                  javax.persistence.TransactionRequiredException: 
                  Exception Description: No transaction is currently active
                          at oracle.toplink.essentials.internal.ejb.cmp3.transaction.EntityTransactionWrapper.throwCheckTransactionFailedException(EntityTransactionWrapper.java:85)
                          at oracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionWrapper.checkForTransaction(EntityTransactionWrapper.java:77)
                          at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.checkForTransaction(EntityManagerImpl.java:633)
                          at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.joinTransaction(EntityManagerImpl.java:663)
                          at org.jboss.jpa.deployment.ManagedEntityManagerFactory.getTransactionScopedEntityManager(ManagedEntityManagerFactory.java:188)
                          at org.jboss.jpa.tx.TransactionScopedEntityManager.getEntityManager(TransactionScopedEntityManager.java:258)
                          at org.jboss.jpa.tx.TransactionScopedEntityManager.createNamedQuery(TransactionScopedEntityManager.java:144)
                          at EJB.TiendaBean.getSecciones(TiendaBean.java:50)
                          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.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:122)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
                          at org.jboss.ejb3.EJBContainerInvocationWrapper.invokeNext(EJBContainerInvocationWrapper.java:69)
                          at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.invoke(InterceptorSequencer.java:73)
                          at org.jboss.ejb3.interceptors.aop.InterceptorSequencer.aroundInvoke(InterceptorSequencer.java:59)
                          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.aop.advice.PerJoinpointAdvice.invoke(PerJoinpointAdvice.java:174)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.fillMethod(InvocationContextInterceptor.java:72)
                          at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_fillMethod_22545518.invoke(InvocationContextInterceptor_z_fillMethod_22545518.java)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:88)
                          at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_22545518.invoke(InvocationContextInterceptor_z_setup_22545518.java)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:62)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:68)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                          at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptorv2.invoke(RoleBasedAuthorizationInterceptorv2.java:201)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)
                          at org.jboss.ejb3.session.InvokableContextClassProxyHack._dynamicInvoke(InvokableContextClassProxyHack.java:53)
                          at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:91)
                          at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
                          at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)
                          at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:744)
                          at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:697)
                          at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:524)
                          at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
                          at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:211)
                          at org.jboss.remoting.Client.invoke(Client.java:1724)
                          at org.jboss.remoting.Client.invoke(Client.java:629)
                          at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
                          at $Proxy8.invoke(Unknown Source)
                          at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
                          at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
                          at $Proxy7.getSecciones(Unknown Source)
                          at demoejb.DemoejbView.jButton1ActionPerformed(DemoejbView.java:244)
                          at demoejb.DemoejbView.access$800(DemoejbView.java:27)
                          at demoejb.DemoejbView$4.actionPerformed(DemoejbView.java:130)
                          at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
                          at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
                          at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
                          at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
                          at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
                          at java.awt.Component.processMouseEvent(Component.java:6263)
                          at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
                          at java.awt.Component.processEvent(Component.java:6028)
                          at java.awt.Container.processEvent(Container.java:2041)
                          at java.awt.Component.dispatchEventImpl(Component.java:4630)
                          at java.awt.Container.dispatchEventImpl(Container.java:2099)
                          at java.awt.Component.dispatchEvent(Component.java:4460)
                          at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
                          at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
                          at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
                          at java.awt.Container.dispatchEventImpl(Container.java:2085)
                          at java.awt.Window.dispatchEventImpl(Window.java:2475)
                          at java.awt.Component.dispatchEvent(Component.java:4460)
                          at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
                          at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
                          at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
                          at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
                          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
                          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
                          at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
                          at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
                          at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
                          at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
                          at $Proxy8.invoke(Unknown Source)
                          at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:207)
                          at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
                          at $Proxy7.getSecciones(Unknown Source)
                          at demoejb.DemoejbView.jButton1ActionPerformed(DemoejbView.java:244)
                          at demoejb.DemoejbView.access$800(DemoejbView.java:27)
                          at demoejb.DemoejbView$4.actionPerformed(DemoejbView.java:130)
                          at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
                          at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
                          at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
                          at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
                          at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
                          at java.awt.Component.processMouseEvent(Component.java:6263)
                          at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)
                          at java.awt.Component.processEvent(Component.java:6028)
                          at java.awt.Container.processEvent(Container.java:2041)
                          at java.awt.Component.dispatchEventImpl(Component.java:4630)
                          at java.awt.Container.dispatchEventImpl(Container.java:2099)
                          at java.awt.Component.dispatchEvent(Component.java:4460)
                          at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
                          at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
                          at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
                          at java.awt.Container.dispatchEventImpl(Container.java:2085)
                          at java.awt.Window.dispatchEventImpl(Window.java:2475)
                          at java.awt.Component.dispatchEvent(Component.java:4460)
                          at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
                          at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
                          at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
                          at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
                          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
                          at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
                          at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
                  
                  • 6. Re: Error on deploy persistence unit
                    Jose M. M. M. Newbie

                    and I see this on log

                     

                    17:23:59,683 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=#ejbPU
                    17:23:59,928 INFO  [STDOUT] [TopLink Warning]: 2010.02.26 05:23:59.916--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class modelo.Venta. The class is ignored.
                    17:23:59,928 INFO  [STDOUT] [TopLink Warning]: 2010.02.26 05:23:59.928--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class modelo.Seccion. The class is ignored.
                    17:24:00,153 INFO  [STDOUT] [TopLink Warning]: 2010.02.26 05:24:00.153--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class modelo.Cliente. The class is ignored.
                    17:24:00,154 INFO  [STDOUT] [TopLink Warning]: 2010.02.26 05:24:00.154--java.lang.NullPointerException: null was thrown on attempt of PersistenceLoadProcessor to load class modelo.Producto. The class is ignored.
                    17:24:00,229 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=Practica_final-ejb.jar,name=TiendaBean,service=EJB3
                    17:24:00,663 INFO  [EJBContainer] STARTED EJB: EJB.TiendaBean ejbName: TiendaBean
                    17:24:00,685 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

                            TiendaBean/remote - EJB3.x Default Remote Business Interface
                            TiendaBean/remote-EJB.TiendaRemote - EJB3.x Remote Business Interface
                            TiendaBean/local - EJB3.x Default Local Business Interface
                            TiendaBean/local-EJB.TiendaLocal - EJB3.x Local Business Interface

                    17:24:00,754 INFO  [DeployHandler] End start, [vfszip:/E:/jboss/server/default/deploy/Practica_final-ejb.jar/]
                    17:24:01,971 WARN  [AbstractManagedObjectPopulator] Cannot create String name from non-Simple property: ManagedProperty{JNDIName,JNDIName,metaType=SimpleMetaType:java.lang.String}, value=null
                    17:24:01,988 WARN  [AbstractManagedObjectPopulator] Cannot create String name from non-Simple property: ManagedProperty{JNDIName,JNDIName,metaType=SimpleMetaType:java.lang.String}, value=null
                    17:24:27,768 WARN  [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
                    17:24:27,769 WARN  [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
                    17:24:27,795 INFO  [STDOUT] [TopLink Info]: 2010.02.26 05:24:27.794--ServerSession(462569)--TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
                    17:24:28,725 INFO  [STDOUT] [TopLink Info]: 2010.02.26 05:24:28.724--ServerSession(462569)--jar:file:/E:/jboss/server/default/deploy/Practica_final-ejb.jar!/-ejbPU login successful

                     

                    All modelo.* are @Entity

                    • 7. Re: Error on deploy persistence unit
                      Jose M. M. M. Newbie
                      is this a bug? i have read some people with same error and without solution with toplink.