Erro usando hibernate para criar tabela ...Exception in thread "main" org.hibernate.HibernateExcepti

Olá,

estou tenatndo gerar o banco atrvés do objeto mas está me dando erro ???


01/09/2009 04:59:29 org.hibernate.cfg.annotations.Version <clinit>
INFO : Hibernate Annotations 3.2.1.GA 
01/09/2009 04:59:29 org.hibernate.cfg.Environment <clinit>
INFO : Hibernate 3.2.2 
01/09/2009 04:59:29 org.hibernate.cfg.Environment <clinit>
INFO : hibernate.properties not found 
01/09/2009 04:59:29 org.hibernate.cfg.Environment buildBytecodeProvider
INFO : Bytecode provider name : cglib 
01/09/2009 04:59:29 org.hibernate.cfg.Environment <clinit>
INFO : using JDK 1.4 java.sql.Timestamp handling 
01/09/2009 04:59:29 org.hibernate.cfg.Configuration configure
INFO : configuring from resource: /hibernate.cfg.xml 
01/09/2009 04:59:29 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO : Configuration resource: /hibernate.cfg.xml 
01/09/2009 04:59:29 org.hibernate.cfg.Configuration doConfigure
INFO : Configured SessionFactory: null 
Exception in thread "main" org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.Oracle9iDialect
	at org.hibernate.dialect.Dialect.instantiateDialect(Dialect.java:238)
	at org.hibernate.dialect.Dialect.getDialect(Dialect.java:227)
	at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:86)
	at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:61)
	at br.gov.demoiselle.escola.persistence.dao.implementation.GeraBanco.main(GeraBanco.java:16)


----

import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import br.gov.framework.demoiselle.core.bean.IPojo;
@Entity
@Table(name="aluno")


public class Aluno implements IPojo {
	private static final long serialVersionUID = 1L;
	@Id @GeneratedValue(strategy=GenerationType.SEQUENCE)
	@Column(name="id_aluno")
	private Long id;
	@Column(name="nome", length=100)
	private String nome;
	@Column(name="pai", length=100)
	private String pai;
	@Column(name="mae", length=100)
	private String mae;
	@Column(name="nascimento")
	@Temporal(value=TemporalType.DATE)
	private Date nascimento;
	@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY)
	private Set<Endereco> enderecos;
	public Aluno() {
		enderecos = new HashSet<Endereco>();
	}
	public Aluno(long id) {
		this();
		this.id = id;
	}
---


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import br.gov.component.demoiselle.common.pojo.extension.Description;
import br.gov.component.demoiselle.common.pojo.extension.EqualsField;
import br.gov.component.demoiselle.common.pojo.extension.PojoExtension;
import br.gov.framework.demoiselle.core.bean.IPojo;
@Entity
@Table(name="endereco")
public class Endereco extends PojoExtension implements IPojo {
	private static final long serialVersionUID = 1L;
	@EqualsField
	@Id @GeneratedValue(strategy=GenerationType.SEQUENCE)
	@Column(name="id_endereco")
	private Long id;
	@EqualsField
	@Description
	@Column(name="logradouro", length=100)
	private String logradouro;
	@Description
	@Column(name="numero", length=100)
	private String numero;

	@Description
	@Column(name="complemento", length=100)
	private String complemento;
	@Description
	@Column(name="bairro", length=100)
	private String bairro;
	@Description
	@Column(name="cep", length=100)
	private String cep;
	@Column(name="municipio", length=100)
	private String municipio;
	@Description
	@Column(name="tipo")
	private Integer tipo;
	@Description
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="aluno")
	private Aluno aluno;
	public Endereco() {
	}
------------

public class GeraBanco {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Configuration configuration = new AnnotationConfiguration();
		   
		configuration.configure(); 
		SchemaExport se = new SchemaExport(configuration);
		se.create(true, true);
	}

}

---

erro

O driver do banco tá no classpath? O java não tá achando…

Nota: no teu Hibernate.properties, dá uma olhada se tem espaço em branco no final das linhas. Costuma causar esse tipo de encrenca…