3 Replies Latest reply on Mar 2, 2006 11:29 AM by Malika Labane

    JBoss 4.0.3SP1 / Eclipse 3.1.2 / EJB 3.0

    Malika Labane Newbie

      I want to use JBoss and EJB 3 to make a big application and i have first to validate these choices with a little application with an entity bean, a stateless session bean and a swing client. The problems began with this swing client because i have no problem when i use a servlet as client.

      Here is my persistence.xml :

      <?xml version="1.0" encoding="UTF-8"?>
      <entity-manager>
       <name>auth</name>
       <jta-data-source>java:/AuthDS</jta-data-source>
       <properties>
       <property name="hibernate.hbm2ddl.auto"
       value="none" />
       </properties>
      </entity-manager>


      application.xml :

      <?xml version="1.0" encoding="UTF-8"?>
      <application version="1.4"
       xmlns="http://java.sun.com/xml/ns/j2ee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
       http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
       <display-name>ValidJBoss</display-name>
       <module>
       <ejb>entities.par</ejb>
       </module>
       <module>
       <ejb>business.ejb3</ejb>
       </module>
      </application>
      


      I have an entity bean put in a .par and a stateless session bean put in a .ejb3. I finally make a .ear which is deployed on jboss. The listing is here :
      10:01:40,491 INFO [EARDeployer] Init J2EE application: file:/C:/Program Files/jboss-4.0.3SP1/server/default/deploy/validjboss.ear
      10:01:41,102 INFO [JaccHelper] Initialising JACC Context for deployment: business.ejb3
      10:01:41,733 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=test.auth.business.UtilisateurManagerBean, class=test.auth.business.UtilisateurManagerBean, type=STATELESS
      10:01:43,085 INFO [JaccHelper] test.auth.business.UtilisateurManagerBean has no @SecurityDomain - skipping JACC configuration
      10:01:43,095 INFO [JaccHelper] JACC Policy Configuration for deployment has been put in service
      10:01:43,095 INFO [Ejb3Deployment] EJB3 deployment time took: 1993
      10:01:43,145 INFO [JaccHelper] Initialising JACC Context for deployment: entities.par
      10:01:43,415 INFO [Ejb3Deployment] Found persistence.xml file in EJB3 jar
      10:01:43,876 INFO [Environment] Hibernate 3.1
      10:01:43,936 INFO [Environment] hibernate.properties not found
      10:01:43,946 INFO [Environment] using CGLIB reflection optimizer
      10:01:43,946 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
      10:01:44,647 INFO [Ejb3Configuration] found EJB3 Entity bean: test.auth.entity.Utilisateur
      10:01:46,249 INFO [Configuration] processing extends queue
      10:01:46,249 INFO [Configuration] processing collection mappings
      10:01:46,249 INFO [Configuration] processing association property references
      10:01:46,249 INFO [Configuration] processing foreign key constraints
      10:01:46,470 INFO [Configuration] processing extends queue
      10:01:46,470 INFO [Configuration] processing collection mappings
      10:01:46,480 INFO [Configuration] processing association property references
      10:01:46,480 INFO [Configuration] processing foreign key constraints
      10:01:47,261 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.InjectedDataSourceConnectionProvider
      10:01:47,311 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
      10:01:48,593 INFO [SettingsFactory] RDBMS: PostgreSQL, version: 8.1.3
      10:01:48,603 INFO [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.1 JDBC3 with SSL (build 404)
      10:01:48,953 INFO [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
      10:01:49,083 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
      10:01:49,103 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
      10:01:49,164 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
      10:01:49,164 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
      10:01:49,164 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
      10:01:49,164 INFO [SettingsFactory] JDBC batch size: 15
      10:01:49,164 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
      10:01:49,174 INFO [SettingsFactory] Scrollable result sets: enabled
      10:01:49,174 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
      10:01:49,174 INFO [SettingsFactory] Connection release mode: after_statement
      10:01:49,184 INFO [SettingsFactory] Default batch fetch size: 1
      10:01:49,184 INFO [SettingsFactory] Generate SQL with comments: disabled
      10:01:49,184 INFO [SettingsFactory] Order SQL updates by primary key: disabled
      10:01:49,184 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
      10:01:49,244 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
      10:01:49,244 INFO [SettingsFactory] Query language substitutions: {}
      10:01:49,244 INFO [SettingsFactory] Second-level cache: enabled
      10:01:49,244 INFO [SettingsFactory] Query cache: disabled
      10:01:49,244 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
      10:01:49,284 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
      10:01:49,284 INFO [SettingsFactory] Structured second-level cache entries: disabled
      10:01:49,344 INFO [SettingsFactory] Statistics: disabled
      10:01:49,344 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: enabled
      10:01:49,364 INFO [SettingsFactory] Default entity-mode: POJO
      10:01:50,315 INFO [SessionFactoryImpl] building session factory
      10:01:52,639 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
      10:01:52,659 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
      10:01:52,679 INFO [SessionFactoryImpl] Checking 0 named queries
      10:01:52,679 INFO [Ejb3Deployment] Create EntityManager with JNDI name: auth
      10:01:52,719 INFO [JaccHelper] JACC Policy Configuration for deployment has been put in service
      10:01:52,719 INFO [Ejb3Deployment] EJB3 deployment time took: 9574
      10:01:53,320 INFO [ProxyDeployer] no declared remote bindings for : test.auth.business.UtilisateurManagerBean
      10:01:53,390 INFO [ProxyDeployer] there is remote interfaces for test.auth.business.UtilisateurManagerBean
      10:01:53,420 INFO [ProxyDeployer] default remote binding has jndiName of test.auth.business.UtilisateurManager
      10:01:55,082 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.0.3SP1/server/default/tmp/deploy/tmp32297validjboss.ear-contents/business.ejb3
      10:01:55,082 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.0.3SP1/server/default/tmp/deploy/tmp32297validjboss.ear-contents/entities.par
      10:01:55,152 INFO [EARDeployer] Started J2EE application: file:/C:/Program Files/jboss-4.0.3SP1/server/default/deploy/validjboss.ear
      


      I see no error or exception in this part of the code of the client (called in the init method):
      InitialContext ic;
      try {
       ic = new InitialContext();
       um = (UtilisateurManager)ic.lookup(UtilisateurManager.class.getName());
       } catch (NamingException e1) {
       System.out.println("Probleme a l'initialisation");
       e1.printStackTrace();
       }
      


      I obtain an error when i call a method on "um" in the jButtonOK_actionPerformed method :
      Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: antlr/RecognitionException
       at java.lang.Class.getDeclaredFields0(Native Method)
       at java.lang.Class.privateGetDeclaredFields(Class.java:2232)
       at java.lang.Class.getDeclaredField(Class.java:1852)
       at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1555)
       at java.io.ObjectStreamClass.access$600(ObjectStreamClass.java:47)
       at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:381)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:373)
       at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:268)
       at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:504)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
       at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:73)
       at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:242)
       at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:112)
       at org.jboss.remoting.Client.invoke(Client.java:226)
       at org.jboss.remoting.Client.invoke(Client.java:189)
       at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:46)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:40)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:41)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:88)
       at $Proxy0.isUtilisateur(Unknown Source)
       at test.auth.gui.GUIAuthentification.jButtonOK_actionPerformed(GUIAuthentification.java:112)
       at test.auth.gui.Authentification_jButtonOK_actionAdapter.actionPerformed(GUIAuthentification.java:134)
       at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
       at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
       at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
       at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
       at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
       at java.awt.Component.processMouseEvent(Component.java:5488)
       at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
       at java.awt.Component.processEvent(Component.java:5253)
       at java.awt.Container.processEvent(Container.java:1966)
       at java.awt.Component.dispatchEventImpl(Component.java:3955)
       at java.awt.Container.dispatchEventImpl(Container.java:2024)
       at java.awt.Component.dispatchEvent(Component.java:3803)
       at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
       at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
       at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
       at java.awt.Container.dispatchEventImpl(Container.java:2010)
       at java.awt.Window.dispatchEventImpl(Window.java:1774)
       at java.awt.Component.dispatchEvent(Component.java:3803)
       at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
       at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
       at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


      I hope it is clear but if you need more information to answer please tell me.

      If you could help me it would be really great ^_^


        • 1. Re: JBoss 4.0.3SP1 / Eclipse 3.1.2 / EJB 3.0
          Malika Labane Newbie

          I finally solved this problem by adding antlr.jar to the classpath. I changed also my persistence.xml (put the value of the property hibernate.hbm2ddl.auto to "update") and i have errors when i try to deploy my ear file (here are the two errors):

          13:29:06,297 ERROR [SchemaUpdate] could not get database metadata
          org.postgresql.util.PSQLException: ERROR: relation "information_schema.system_sequences" does not exist
           at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1512)
           at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1297)
           at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
           at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:430)
           at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:332)
           at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:231)
           at org.jboss.resource.adapter.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:145)
           at org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMetadata.java:119)
           at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.java:45)
           at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.java:38)
           at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:133)
           at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:298)
           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1145)
           at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:358)
           at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:484)
           at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:202)
           at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:78)
           at org.jboss.ejb3.Ejb3Deployment.initializeManagedEntityManagerFactory(Ejb3Deployment.java:512)
           at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:253)
           at org.jboss.ejb3.Ejb3JmxDeployment.create(Ejb3JmxDeployment.java:230)
           at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:34)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:228)
           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:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
           at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
           at $Proxy0.create(Unknown Source)
           at org.jboss.system.ServiceController.create(ServiceController.java:341)
           at org.jboss.system.ServiceController.create(ServiceController.java:284)
           at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
           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:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy10.create(Unknown Source)
           at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:208)
           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:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy11.create(Unknown Source)
           at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
           at org.jboss.deployment.MainDeployer.create(MainDeployer.java:925)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
           at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
           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:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy6.deploy(Unknown Source)
           at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
           at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
          13:29:06,307 ERROR [SchemaUpdate] could not complete schema update
          org.postgresql.util.PSQLException: ERROR: relation "information_schema.system_sequences" does not exist
           at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1512)
           at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1297)
           at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
           at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:430)
           at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:332)
           at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:231)
           at org.jboss.resource.adapter.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:145)
           at org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMetadata.java:119)
           at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.java:45)
           at org.hibernate.tool.hbm2ddl.DatabaseMetadata.<init>(DatabaseMetadata.java:38)
           at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:133)
           at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:298)
           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1145)
           at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:358)
           at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:484)
           at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:202)
           at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:78)
           at org.jboss.ejb3.Ejb3Deployment.initializeManagedEntityManagerFactory(Ejb3Deployment.java:512)
           at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:253)
           at org.jboss.ejb3.Ejb3JmxDeployment.create(Ejb3JmxDeployment.java:230)
           at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:34)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:245)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:228)
           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:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
           at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
           at $Proxy0.create(Unknown Source)
           at org.jboss.system.ServiceController.create(ServiceController.java:341)
           at org.jboss.system.ServiceController.create(ServiceController.java:284)
           at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
           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:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy10.create(Unknown Source)
           at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:208)
           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:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy11.create(Unknown Source)
           at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
           at org.jboss.deployment.MainDeployer.create(MainDeployer.java:925)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
           at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
           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:141)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
           at $Proxy6.deploy(Unknown Source)
           at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
           at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
          13:29:06,928 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}


          I hope i will also find out alone but some help would be great ^_^

          I forgot to say it before but i am using PostgreSQL 8.1 as database.

          • 2. Re: JBoss 4.0.3SP1 / Eclipse 3.1.2 / EJB 3.0
            Jan Philipp Giel Newbie

             

            relation "information_schema.system_sequences" does not exist


            Possibly something might be broken with your database?
            Did you specify "information_schema.system_sequences" somewhere in your jboss configuration or entities?

            • 3. Re: JBoss 4.0.3SP1 / Eclipse 3.1.2 / EJB 3.0
              Malika Labane Newbie

              The problem was solved when i had this line in my persistence.xml file :

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


              And now it works. I think that i will write a little tutorial on this subject because it was really what i needed and didn't find. It is a lot of little things and i am on this "test" from last week and i solve it just after exposing my problem here !