Erro conectar Hibernate

Dai galera blz ? Estou tendo problemas em utilizar o Hibernate3

Quando executo este codigo para teste:

public  static void main(String[] args){
        
        SessionFactory factory = new Configuration().buildSessionFactory();
      
    }

Exibe esta mensagem:

2007-05-31 15:33:46,234 INFO  hibernate.cfg.Environment  -&gt Hibernate 3.2.4.sp1
  2007-05-31 15:33:46,250 INFO  hibernate.cfg.Environment  -&gt hibernate.properties not found
  2007-05-31 15:33:46,250 INFO  hibernate.cfg.Environment  -&gt Bytecode provider name : cglib
  2007-05-31 15:33:46,265 INFO  hibernate.cfg.Environment  -&gt using JDK 1.4 java.sql.Timestamp handling
  2007-05-31 15:33:46,500 DEBUG hibernate.cfg.Configuration  -&gt Preparing to build session factory with filters : {}
  2007-05-31 15:33:46,500 DEBUG hibernate.cfg.Configuration  -&gt processing extends queue
  2007-05-31 15:33:46,500 DEBUG hibernate.cfg.Configuration  -&gt processing collection mappings
  2007-05-31 15:33:46,515 DEBUG hibernate.cfg.Configuration  -&gt processing native query and ResultSetMapping mappings
  2007-05-31 15:33:46,515 DEBUG hibernate.cfg.Configuration  -&gt processing association property references
  2007-05-31 15:33:46,515 DEBUG hibernate.cfg.Configuration  -&gt processing foreign key constraints
  2007-05-31 15:33:46,515 WARN  hibernate.connection.UserSuppliedConnectionProvider  -&gt No connection properties specified - the user must supply JDBC connections
Exception in thread "main" org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
        at org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:57)
        at org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)
        at org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:426)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:128)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
        at Teste.main(Teste.java:11)

O arquivo hibernate.cfg.xml:


<hibernate-configuration>
    <session-factory >
        
        <!-- local connection properties -->
        <property name="hibernate.dialect">org.hibernate.dialect.FirebirdDialect</property>
        <property name="hibernate.connection.driver_class">org.firebirdsql.jdbc.FBDriver</property>
        <property name="hibernate.connection.url">jdbc:firebirdsql:localhost/3050:/base/javaweb.fdb</property>
        <property name="hibernate.connection.username">sysdba</property>
        <property name="hibernate.connection.password">masterkey</property>        
        
        <property name="show_sql">true</property>       
        
    </session-factory>  
    
</hibernate-configuration>

Se alguem souber e me dizer o q ta rolando eu agradeço…

Veja o exemplo

package com.hibernate.util;

import org.hibernate.PersistentObjectException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;

public class HibernateUtil {
	private static SessionFactory fabrica = null;
	private static ThreadLocal sessao = new ThreadLocal();
	private static ThreadLocal transacao = new ThreadLocal();
	
	public static Session getSession(){
		try{
			if(fabrica == null)
				fabrica = new Configuration().configure().buildSessionFactory();
			if(sessao.get() == null)
				iniciaTransacao();
		}catch(Throwable e){
			e.printStackTrace();
		}
		return (Session)sessao.get();
	}
	
	private static Transaction getTransacao(){
		return(Transaction)transacao.get();
	}
	
	public static void iniciaTransacao(){
		if(sessao.get() != null)
			throw new PersistentObjectException("Nao sei como aninhar transacoes");
		sessao.set(fabrica.openSession());
		transacao.set(getSession().beginTransaction());
	}
	
	public static void fechaSessao(){
		try{
			if(getSession()!= null)
				getSession().close();
		}
		finally
		{
			sessao.set(null);
			transacao.set(null);
		}
	}
	
	public static void confirma(){
		try{
			if(getTransacao() != null)
				getTransacao().commit();
		}
		finally{
			fechaSessao();
		}
	}
	
	public static void aborta(){
		try{
			if(getTransacao() != null)
				getTransacao().rollback();
		}
		finally{
			fechaSessao();
		}
	}
}

Verifique a sua versão do hibernate, e se o jar esta no projeto.

Ou passe a usar o hibernate.properties invés do .cfg.xml
olhá só

hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost/sistema
hibernate.connection.username=root
hibernate.connection.password=myPass