3 Replies Latest reply on Jan 9, 2008 12:12 PM by Jianming Yu

    EJB3, Sybase database, MappingException: Dialect does not su

    Jianming Yu Newbie

      We are using Jboss4.2.1GA. I am adding a new Sybase data source. But when I start Jboss, the error message is as following. The .ear is not even deployed. May I know how to solve this problem?

      Thank you very much!

      James
      **************************************Error Message***********************

      Caused by: org.hibernate.MappingException: could not instantiate id generator
      at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:98)
      at org.hibernate.mapping.SimpleValue.createIdentifierGenerator(SimpleValue.java:152)
      at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:192)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
      at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:730)
      ... 145 more
      Caused by: org.hibernate.MappingException: Dialect does not support sequences
      at org.hibernate.dialect.Dialect.getSequenceNextValString(Dialect.java:596)
      at org.hibernate.id.SequenceGenerator.configure(SequenceGenerator.java:65)
      at org.hibernate.id.SequenceHiLoGenerator.configure(SequenceHiLoGenerator.java:43)
      at org.hibernate.id.IdentifierGeneratorFactory.create(IdentifierGeneratorFactory.java:94)