2 Replies Latest reply on Oct 16, 2010 10:19 AM by Sebastian Altmann

    JBoss 5.1.0 with Oracle XE -> Hibernate Exception

    Sebastian Altmann Newbie

      Hello,

       

      hope this is the right place for my question?!?

       

      I am trying to deploy some EJB on JBoss 5.1.0 that persist Data into a OracleXE database (10.2.0.1.0) using ojdbc14.jar as driver

      and getting the following Hibernate Exception:

       

       

      Caused by: org.hibernate.HibernateException: unknown Oracle major version [0]
      at org.hibernate.dialect.DialectFactory$1.getDialectClass(DialectFactory.java:173)
      Caused by: org.hibernate.HibernateException: unknown Oracle major version [0]
           at org.hibernate.dialect.DialectFactory$1.getDialectClass(DialectFactory.java:173)
           at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:88)
           at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:62)
           at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:460)
           at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:155)
           at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
           at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
           ... 61 more
      at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:88)
      
      
      

       

      Is there a line that i have to add in my XXX-ds.xml?

      At the moment i'm using some sample that i found on the net:

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      <datasources>
          <local-tx-datasource>
              <jndi-name>EJBTestDS</jndi-name>
              <connection-url>jdbc:oracle:thin:@localhost:1521:xe</connection-url>
              <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
              <user-name>user</user-name>
              <password>password</password>
              <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
              <metadata>
                  <type-mapping>Oracle10g</type-mapping>
              </metadata>
          </local-tx-datasource>
      </datasources>
      

       

      And i'm using the ojdbc14.jar as driver.

       

       

      Thanks in advance for any help.