1 Reply Latest reply on Aug 4, 2011 7:24 PM by Ales Justin

    Error Deploy Jar file

    Amine Abdou Newbie

      Hi :

      When I deploy my jar I have this error (JBoss 5.1, Eclipse, Postgres)

       

      23:40:16,867 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@17530067{vfszip:/E:/ProgramFiles/jboss-5.1.0.GA/server/default/deploy/NewEJB.jar/}
      23:40:16,868 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@17530067{vfszip:/E:/ProgramFiles/jboss-5.1.0.GA/server/default/deploy/NewEJB.jar/}
      23:40:16,878 INFO  [JBossASKernel] Created KernelDeployment for: NewEJB.jar
      23:40:16,879 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=NewEJB.jar,name=dossierexportBean,service=EJB3
      23:40:16,879 INFO  [JBossASKernel]   with dependencies:
      23:40:16,879 INFO  [JBossASKernel]   and demands:
      23:40:16,879 INFO  [JBossASKernel]           jboss.ejb:service=EJBTimerService
      23:40:16,879 INFO  [JBossASKernel]           persistence.unit:unitName=#export
      23:40:16,879 INFO  [JBossASKernel]   and supplies:
      23:40:16,879 INFO  [JBossASKernel]           jndi:dossierexportBean/remote-com.dossierexportRemote
      23:40:16,879 INFO  [JBossASKernel]           Class:com.dossierexportRemote
      23:40:16,879 INFO  [JBossASKernel]           jndi:dossierexportBean/remote
      23:40:16,879 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=NewEJB.jar,name=dossierexportBean,service=EJB3) to KernelDeployment of: NewEJB.jar
      23:40:16,880 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@f65283{name=jboss.j2ee:jar=NewEJB.jar,name=dossierexportBean,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
      23:40:16,883 WARN  [AbstractDeploymentContext] Unable to register deployment mbean org.jboss.metadata.jpa.spec.PersistenceUnitMetaData.export
      javax.management.InstanceAlreadyExistsException: jboss.deployment:id="org.jboss.metadata.jpa.spec.PersistenceUnitMetaData.export",type=Component already registered.
                at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:756)
                at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:233)
                at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                at java.lang.reflect.Method.invoke(Unknown Source)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)
                at java.security.AccessController.doPrivileged(Native Method)
                at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)
                at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)
                at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.registerMBeans(AbstractDeploymentContext.java:1030)
                at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext.addComponent(AbstractDeploymentContext.java:722)
                at org.jboss.deployers.structure.spi.helpers.AbstractDeploymentUnit.addComponent(AbstractDeploymentUnit.java:251)
                at org.jboss.deployers.spi.deployer.helpers.ComponentAdapter.addComponent(ComponentAdapter.java:59)
                at org.jboss.deployers.spi.deployer.helpers.AbstractDeploymentVisitor.deploy(AbstractDeploymentVisitor.java:73)
                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.java:125)
                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.internalDeploy(AbstractRealDeployerWithInput.java:102)
                at org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer.internalDeploy(AbstractComponentDeployer.java:78)
                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.install(DeployersImpl.java:1098)
                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
                at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
                at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                at java.lang.Thread.run(Unknown Source)
      23:40:16,905 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=#export
      23:40:16,907 INFO  [Ejb3Configuration] Processing PersistenceUnitInfo [
                name: export
                ...]
      23:40:16,913 WARN  [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
      23:40:16,914 INFO  [AnnotationBinder] Binding entity from annotated class: com.dossierexport
      23:40:16,915 INFO  [EntityBinder] Bind entity com.dossierexport on table dossierexport
      23:40:16,927 INFO  [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
      23:40:16,928 INFO  [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
      23:40:16,929 INFO  [InjectedDataSourceConnectionProvider] Using provided datasource
      23:40:16,932 INFO  [SettingsFactory] RDBMS: PostgreSQL, version: 8.4.2
      23:40:16,932 INFO  [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.4 JDBC4 (build 702)
      23:40:16,933 INFO  [Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect
      23:40:16,933 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
      23:40:16,934 INFO  [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      23:40:16,934 INFO  [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      23:40:16,934 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      23:40:16,934 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled
      23:40:16,934 INFO  [SettingsFactory] JDBC batch size: 15
      23:40:16,934 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled
      23:40:16,935 INFO  [SettingsFactory] Scrollable result sets: enabled
      23:40:16,935 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
      23:40:16,935 INFO  [SettingsFactory] Connection release mode: auto
      23:40:16,935 INFO  [SettingsFactory] Default batch fetch size: 1
      23:40:16,935 INFO  [SettingsFactory] Generate SQL with comments: disabled
      23:40:16,935 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
      23:40:16,935 INFO  [SettingsFactory] Order SQL inserts for batching: disabled
      23:40:16,935 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      23:40:16,935 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      23:40:16,935 INFO  [SettingsFactory] Query language substitutions: {}
      23:40:16,935 INFO  [SettingsFactory] JPA-QL strict compliance: enabled
      23:40:16,935 INFO  [SettingsFactory] Second-level cache: enabled
      23:40:16,936 INFO  [SettingsFactory] Query cache: disabled
      23:40:16,936 INFO  [SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
      23:40:16,936 INFO  [RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider
      23:40:16,936 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
      23:40:16,936 INFO  [SettingsFactory] Cache region prefix: persistence.unit:unitName=#export
      23:40:16,936 INFO  [SettingsFactory] Structured second-level cache entries: disabled
      23:40:16,937 INFO  [SettingsFactory] Statistics: disabled
      23:40:16,937 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
      23:40:16,937 INFO  [SettingsFactory] Default entity-mode: pojo
      23:40:16,937 INFO  [SettingsFactory] Named query checking : enabled
      23:40:16,944 INFO  [SessionFactoryImpl] building session factory
      23:40:16,945 INFO  [SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=#export
      23:40:16,946 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      23:40:16,962 INFO  [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=#export
      23:40:16,963 WARN  [SessionFactoryObjectFactory] InitialContext did not implement EventContext
      23:40:16,963 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      23:40:17,003 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=NewEJB.jar,name=dossierexportBean,service=EJB3
      23:40:17,004 INFO  [EJBContainer] STARTED EJB: com.dossierexportBean ejbName: dossierexportBean
      23:40:17,018 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
      
      
                dossierexportBean/remote - EJB3.x Default Remote Business Interface
                dossierexportBean/remote-com.dossierexportRemote - EJB3.x Remote Business Interface