Java e Hibernate3

15 respostas
P

Estou com esse erro agora…

Exception in thread main java.lang.NoClassDefFoundError: org/apache/commons/collections/ReferenceMap at org.hibernate.util.SoftLimitMRUCache.<init>(SoftLimitMRUCache.java:44) at org.hibernate.engine.query.QueryPlanCache.<init>(QueryPlanCache.java:32) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:144) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213) at HibernateUtility.<clinit>(HibernateUtility.java:14) at ProfessorDAO.insereProfessor(ProfessorDAO.java:11) at Main.main(Main.java:6) Process exited with exit code 1.
E o commons-collections esta associado no CLASSPATH, o que poderia ser??? Alguém me ajude… por favor!!!

15 Respostas

Calvin

Só vendo a exception assim não tem como eu te ajudar!
E eu nem to acompanhando o seu histórico para saber quais foram seus problemas passados ("Estou com esse erro agora… ").

Coloca o código que você esta executando para gerar essa exception ou explica de fato o que você esta tentando fazer!

Aguardando algum um retorno!
:roll:

P

Ok Paulo!!Estou estudando Java/Hibernate e o Jdeveloper 10g, sou iniciante, estou tentando rodar essa pequena aplicação:
arquivo hibernate.cgf.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

    <session-factory>

        <property name="connection.driver_class">org.postgresql.Driver</property>
        <property name="connection.url">jdbc:postgresql://localhost:5432/facu</property>
        <property name="connection.username">paulo</property>
        <property name="connection.password">paulo</property>

        <property name="connection.pool_size">15</property>
        <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
        <property name="current_session_context_class">thread</property>
        <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
        <property name="show_sql">true</property>
        <property name="hbm2ddl.auto">update</property>    
      
        <mapping resource="Titulacao.hbm.xml"/>
        <mapping resource="Professor.hbm.xml"/>
        <mapping resource="Disciplina.hbm.xml"/>
        <mapping resource="Leciona.hbm.xml"/>
        
       </session-factory>

</hibernate-configuration>

arquivo hibernateUtility.java

import org.hibernate.*;
import javax.security.auth.login.*;
import org.hibernate.cfg.Configuration;

public class HibernateUtility 
{
    public HibernateUtility() 
    {
    }
    private static SessionFactory factory;
    static {
        //Bloco estático que inicializa o Hibernate
        try {
            factory = new Configuration().configure().buildSessionFactory();
        } catch (Exception e) {

            e.printStackTrace();
            factory = null;
        }
    }
    public static Session getSession() {
        //Retorna a sessão aberta
        return factory.openSession();
    }
    public SessionFactory getFactory() {
        return factory;
    }
    public void setFactory(SessionFactory val) {
        this.factory = val;
    }
}

arquivo Professor.hbm.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping 
        PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>

 <class name="Professor">
  
  <!-- Identificador da classe -->

  <id name="id">
    <generator class="native"></generator>
  </id>
  
  <!-- Propriedades da classe -->

  <property name="nome"/>
  <property name="sexo"/>
 
  <!-- Relacionamento da classe -->
  
  <many-to-one name="titulacao" column="id_titulacao"
            class="Titulacao" cascade="save-update"/>

 </class>
 
  <query name="consultaProfessorSexo">
    <![CDATA[from Professor p where p.sexo = :sexo]]>
 </query>

</hibernate-mapping>

classe ProfessorDao

import java.util.*;
import org.hibernate.*;


public class ProfessorDAO {
    public ProfessorDAO() {
    }

    public void insereProfessor(String nome, String sexo, Integer titulacao) 
    {     
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Professor professor = new Professor();
        professor.setNome(nome);
        professor.setSexo(sexo);

        TitulacaoDAO titulacaodao = new TitulacaoDAO();

        professor.setTitulacao(titulacaodao.consultaTitulacao(titulacao));
        s.save(professor);
        t.commit();
        s.close();
        /* script para testar erro de conexão/informa o erro.

        Session s;
        Transaction tx = null;
        try {
          Session s = HibernateUtility.getSession();
          Transaction t = s.beginTransaction();
          Professor professor = new Professor();
          professor.setNome(nome);
          s.save(professor);
          t.commit();
          s.close();
        } catch (Exception e) {
                tx.rollback();
                throw new HibernateException(e);
        } */
    }

    public Professor consultaProfessor(Integer pk) {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Professor professor = (Professor)s.get(Professor.class, pk);
        t.commit();
        s.close();
        return professor;
    }

    public void excluiProfessor(Integer id) {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Professor professor = new Professor();
        professor.setId(id);
        s.delete(professor);
        t.commit();
        s.close();
    }

    public void alteraProfessor(Integer id, String nome) {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Professor professor = (Professor)s.get(Professor.class, id);
        professor.setNome(nome);
        s.saveOrUpdate(professor);
        t.commit();
        s.close();
    }

    public void listaProfessor() {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Query select = s.createQuery("from Professor where id = :id");
        select.setInteger("id", 4);
        List list = select.list();
        Iterator iterator = list.iterator();
        System.out.println("******* VALOR(ES) LOCALIZADO(S) *******");
        while (iterator.hasNext()) {
            Professor professor = (Professor)iterator.next();
            System.out.println("\n");
            System.out.println("Codigo: " + professor.getId());
            System.out.println("Nome: " + professor.getNome());
            System.out.println("Sexo: " + professor.getSexo());
            //   TitulacaoDAO titulacao = new TitulacaoDAO();
            // titulacao.consultaTitulacao(professor.getTitulacao());
            System.out.println("Titulacao: " + professor.getTitulacao());
            System.out.println("**********************************");
        }
        t.commit();
        s.close();
    }

    public void consultaProfessor(String nome) {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Query sql = 
            s.createQuery("from Professor as professor where professor.nome=:nome");
        sql.setString("nome", nome);
        List list = sql.list();
        Iterator iterator = list.iterator();
        System.out.println("******* VALOR(ES) LOCALIZADO(S) *******");
        while (iterator.hasNext()) {
            Professor professor = (Professor)iterator.next();
            TitulacaoDAO titulacaodao = new TitulacaoDAO();
            System.out.println("\n");
            System.out.println("Codigo: " + professor.getId());
            System.out.println("Nome: " + professor.getNome());
            System.out.println("Sexo: " + professor.getSexo());
            System.out.println("**********************************");
        }
        t.commit();
        s.close();
    }

    public void consultaProfessorSexo(String sexo) {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Query sql = s.getNamedQuery("consultaProfessorSexo");
        sql.setString("sexo", sexo);
        List list = sql.list();
        Iterator iterator = list.iterator();
        System.out.println("******* VALOR(ES) LOCALIZADO(S) *******");
        while (iterator.hasNext()) {
            Professor professor = (Professor)iterator.next();
            TitulacaoDAO titulacaodao = new TitulacaoDAO();
            System.out.println("\n");
            System.out.println("Codigo: " + professor.getId());
            System.out.println("Nome: " + professor.getNome());
            System.out.println("Sexo: " + professor.getSexo());
            System.out.println("**********************************");
        }
        t.commit();
        s.close();
    }
}

classe Professor.java

public class Professor {

    private int id;
    private String nome;
    private String Sexo;
    private Titulacao titulacao;

    public Professor() {
    }

    public int getId() {
        return id;
    }

    public void setId(int val) {
        this.id = val;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String val) {
        this.nome = val;
    }

    public String getSexo() {
        return Sexo;
    }

    public void setSexo(String val) {
        this.Sexo = val;
    }

    public Titulacao getTitulacao() {
        return titulacao;
    }

    public void setTitulacao(Titulacao val) {
        this.titulacao = val;
    }
}
estou inicialmente tentando inserir no Banco de Dados
professordao.insereProfessor("Maria", "F", 110);
mas estou encontrando esses problemas. Ja associei todas as classes que achei necessário e mais um tanto no CALSSPATH porém continuo com esse erro, já faz um tempão.. não estou conseguindo sair do lugar.... TE AGRADEÇO DESDE JÁ POR TENTAR ME AJUDAR...
P

Ok Paulo!!
Estou estudando Java/Hibernate e o Jdeveloper 10g, sou iniciante, estou tentando rodar essa pequena aplicação:
arquivo hibernate.cgf.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
        "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>

    <session-factory>

        <property name="connection.driver_class">org.postgresql.Driver</property>
        <property name="connection.url">jdbc:postgresql://localhost:5432/facu</property>
        <property name="connection.username">paulo</property>
        <property name="connection.password">paulo</property>

        <property name="connection.pool_size">15</property>
        <property name="dialect">org.hibernate.dialect.PostgreSQLDialect</property>
        <property name="current_session_context_class">thread</property>
        <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
        <property name="show_sql">true</property>
        <property name="hbm2ddl.auto">update</property>    
      
        <mapping resource="Titulacao.hbm.xml"/>
        <mapping resource="Professor.hbm.xml"/>
        <mapping resource="Disciplina.hbm.xml"/>
        <mapping resource="Leciona.hbm.xml"/>
        
       </session-factory>

</hibernate-configuration>
P

arquivo hibernateUtility.java

import org.hibernate.*;
import javax.security.auth.login.*;
import org.hibernate.cfg.Configuration;

public class HibernateUtility 
{
    public HibernateUtility() 
    {
    }
    private static SessionFactory factory;
    static {
        //Bloco estático que inicializa o Hibernate
        try {
            factory = new Configuration().configure().buildSessionFactory();
        } catch (Exception e) {

            e.printStackTrace();
            factory = null;
        }
    }
    public static Session getSession() {
        //Retorna a sessão aberta
        return factory.openSession();
    }
    public SessionFactory getFactory() {
        return factory;
    }
    public void setFactory(SessionFactory val) {
        this.factory = val;
    }
}
P

arquivo Professor.hbm.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping 
        PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>

 <class name="Professor">
  
  <!-- Identificador da classe -->

  <id name="id">
    <generator class="native"></generator>
  </id>
  
  <!-- Propriedades da classe -->

  <property name="nome"/>
  <property name="sexo"/>
 
  <!-- Relacionamento da classe -->
  
  <many-to-one name="titulacao" column="id_titulacao"
            class="Titulacao" cascade="save-update"/>

 </class>
 
  <query name="consultaProfessorSexo">
    <![CDATA[from Professor p where p.sexo = :sexo]]>
 </query>

</hibernate-mapping>
P

classe ProfessorDao

import java.util.*;
import org.hibernate.*;


public class ProfessorDAO 
{
    public ProfessorDAO() 
    {
    }

    public void insereProfessor(String nome, String sexo, Integer titulacao) 
    {     
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Professor professor = new Professor();
        professor.setNome(nome);
        professor.setSexo(sexo);

        TitulacaoDAO titulacaodao = new TitulacaoDAO();

        professor.setTitulacao(titulacaodao.consultaTitulacao(titulacao));
        s.save(professor);
        t.commit();
        s.close();
        /* script para testar erro de conexão/informa o erro.

        Session s;
        Transaction tx = null;
        try {
          Session s = HibernateUtility.getSession();
          Transaction t = s.beginTransaction();
          Professor professor = new Professor();
          professor.setNome(nome);
          s.save(professor);
          t.commit();
          s.close();
        } catch (Exception e) {
                tx.rollback();
                throw new HibernateException(e);
        } */
    }

    public Professor consultaProfessor(Integer pk) {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Professor professor = (Professor)s.get(Professor.class, pk);
        t.commit();
        s.close();
        return professor;
    }

    public void excluiProfessor(Integer id) {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Professor professor = new Professor();
        professor.setId(id);
        s.delete(professor);
        t.commit();
        s.close();
    }

    public void alteraProfessor(Integer id, String nome) {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Professor professor = (Professor)s.get(Professor.class, id);
        professor.setNome(nome);
        s.saveOrUpdate(professor);
        t.commit();
        s.close();
    }

    public void listaProfessor() {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Query select = s.createQuery("from Professor where id = :id");
        select.setInteger("id", 4);
        List list = select.list();
        Iterator iterator = list.iterator();
        System.out.println("******* VALOR(ES) LOCALIZADO(S) *******");
        while (iterator.hasNext()) {
            Professor professor = (Professor)iterator.next();
            System.out.println("\n");
            System.out.println("Codigo: " + professor.getId());
            System.out.println("Nome: " + professor.getNome());
            System.out.println("Sexo: " + professor.getSexo());
            //   TitulacaoDAO titulacao = new TitulacaoDAO();
            // titulacao.consultaTitulacao(professor.getTitulacao());
            System.out.println("Titulacao: " + professor.getTitulacao());
            System.out.println("**********************************");
        }
        t.commit();
        s.close();
    }

    public void consultaProfessor(String nome) {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Query sql = 
            s.createQuery("from Professor as professor where professor.nome=:nome");
        sql.setString("nome", nome);
        List list = sql.list();
        Iterator iterator = list.iterator();
        System.out.println("******* VALOR(ES) LOCALIZADO(S) *******");
        while (iterator.hasNext()) {
            Professor professor = (Professor)iterator.next();
            TitulacaoDAO titulacaodao = new TitulacaoDAO();
            System.out.println("\n");
            System.out.println("Codigo: " + professor.getId());
            System.out.println("Nome: " + professor.getNome());
            System.out.println("Sexo: " + professor.getSexo());
            System.out.println("**********************************");
        }
        t.commit();
        s.close();
    }

    public void consultaProfessorSexo(String sexo) {
        Session s = HibernateUtility.getSession();
        Transaction t = s.beginTransaction();
        Query sql = s.getNamedQuery("consultaProfessorSexo");
        sql.setString("sexo", sexo);
        List list = sql.list();
        Iterator iterator = list.iterator();
        System.out.println("******* VALOR(ES) LOCALIZADO(S) *******");
        while (iterator.hasNext()) {
            Professor professor = (Professor)iterator.next();
            TitulacaoDAO titulacaodao = new TitulacaoDAO();
            System.out.println("\n");
            System.out.println("Codigo: " + professor.getId());
            System.out.println("Nome: " + professor.getNome());
            System.out.println("Sexo: " + professor.getSexo());
            System.out.println("**********************************");
        }
        t.commit();
        s.close();
    }
}
P

classe Professor.java

public class Professor 
{

    private int id;
    private String nome;
    private String Sexo;
    private Titulacao titulacao;

    public Professor() 
    {
    }

    public int getId() 
   {
        return id;
    }

    public void setId(int val) 
    {
        this.id = val;
    }

    public String getNome() 
    {
        return nome;
    }

    public void setNome(String val) 
    {
        this.nome = val;
    }

    public String getSexo() 
    {
        return Sexo;
    }

    public void setSexo(String val) 
    {
        this.Sexo = val;
    }

    public Titulacao getTitulacao() 
    {
        return titulacao;
    }

    public void setTitulacao(Titulacao val) 
    {
        this.titulacao = val;
    }
}
estou inicialmente tentando inserir no Banco de Dados
professordao.insereProfessor("Maria", "F", 110);
mas estou encontrando esses problemas. Ja associei todas as classes que achei necessário e mais um tanto no CALSSPATH porém continuo com esse erro, já faz um tempão.. não estou conseguindo sair do lugar.... TE AGRADEÇO DESDE JÁ POR TENTAR ME AJUDAR...
Calvin

Bom dia!

E la vamos nós!

Primeira observação:
No método insereProfessor da classe ProfessorDAO o que voce acha de receber um objeto professor (já preenchido) e não os seus “atributos”, ai ficaria assim:

public void insereProfessor(Professor p) {
	// Assim é mais elegante!
        
        // Não precisa criar outro objeto do tipo Professor
}

Bom, dei uma olhada no seu código e vi que o erro pode estar no arquivo de configuração do hibernate (“hibernate.cgf.xml”), onde a classe Professor esta com erro no mapeamento, logo gera a exception java.lang.NoClassDefFoundError (é obvio né?! :lol: ).
De uma olhada nesse tutorial onde explica passo a passo a configuração e teste com o hibernate 3, repare que o exemplo utilizado é bem parecido com o que você esta tentando fazer

Tutorial de configuração Hibernate (.pdf)

Tente por esse tutorial, se mesmo assim não conseguir da mais um grito aqui no forum que eu dou um ctrl+c e ctrl+v no seu código e tento “debbuga-lo” aqui na minha máquina!

Espero ter ajudando!
Aguardando um retorno

P

Alterei o hibernate.cfg.xml de acordo com o exemplo, porém eu estou usando o POSTGRE e não MYSQL, por isso fiz algumas mudanças... porém continua dando o mesmo erro:

<!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>

    <session-factory>

        <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
        <property name="hibernate.connection.driver_class">org.postgresql.Driver</property>        
        <property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/facu</property>        
        <property name="hibernate.connection.username">paulo</property>        
        <property name="hibernate.connection.password">paulo</property>

        <!-- Condiguração do c3p0 -->

        <property name="hibernate.c3p0.max_size">10</property>
        <property name="hibernate.c3p0.min_size">2</property>
        <property name="hibernate.c3p0.timeout">5000</property>
        <property name="hibernate.c3p0.max_statements">10</property>
        <property name="hibernate.c3p0.idle_test_period">3000</property>
        <property name="hibernate.c3p0.acquire_increment">2</property>
        
        <!-- Configurações de debug -->
        <property name="show_sql">true</property>
        <property name="hibernate.generate_statistics">true</property>
        <property name="hibernate.use_sql_comments">true</property>
        <mapping resource="Professor.hbm.xml"/>
        <mapping resource="Titulacao.hbm.xml"/>
        <mapping resource="Disciplina.hbm.xml"/>
        <mapping resource="Leciona.hbm.xml"/>        
        
    </session-factory>
</hibernate-configuration>

tem algumas mensagens que aparecem antes do erro vou postar também, derrepente vc consegue visualizar mais alguma coisa

09:41:58,636  INFO Environment:499 - Hibernate 3.2 cr2
09:41:58,636  INFO Environment:517 - loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=org.postgresql.Driver, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.max_fetch_depth=1, hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect, hibernate.jdbc.use_streams_for_binary=true, hibernate.format_sql=true, hibernate.query.substitutions=yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.connection.username=pg, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.url=jdbc:postgresql:template1, hibernate.bytecode.use_reflection_optimizer=false, hibernate.connection.password=****, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.pool_size=1}
09:41:58,636  INFO Environment:548 - using java.io streams to persist binary types
09:41:58,636  INFO Environment:666 - Bytecode provider name : cglib
09:41:58,652  INFO Environment:583 - using JDK 1.4 java.sql.Timestamp handling
09:41:58,761  INFO Configuration:1345 - configuring from resource: /hibernate.cfg.xml
09:41:58,761  INFO Configuration:1322 - Configuration resource: /hibernate.cfg.xml
09:41:59,105  INFO Configuration:502 - Reading mappings from resource: Professor.hbm.xml
09:41:59,230  INFO HbmBinder:298 - Mapping class: Professor -> Professor
09:41:59,402  INFO Configuration:502 - Reading mappings from resource: Titulacao.hbm.xml
09:41:59,418  INFO HbmBinder:298 - Mapping class: Titulacao -> Titulacao
09:41:59,418  INFO Configuration:502 - Reading mappings from resource: Disciplina.hbm.xml
09:41:59,449  INFO HbmBinder:298 - Mapping class: Disciplina -> Disciplina
09:41:59,449  INFO Configuration:502 - Reading mappings from resource: Leciona.hbm.xml
09:41:59,480  INFO HbmBinder:298 - Mapping class: Leciona -> Leciona
09:41:59,480  INFO Configuration:1460 - Configured SessionFactory: null
09:41:59,543  WARN RootClass:210 - composite-id class does not override equals(): Leciona
09:41:59,543  WARN RootClass:215 - composite-id class does not override hashCode(): Leciona
09:41:59,590  INFO C3P0ConnectionProvider:50 - C3P0 using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost:5432/facu
09:41:59,590  INFO C3P0ConnectionProvider:51 - Connection properties: {user=paulo, password=****}
09:41:59,590  INFO C3P0ConnectionProvider:54 - autocommit mode: false

Qto ao método vou deixar p/ alterar após a solução desse problema.. mas já te agradeço pela dica.

P

corrigi essa linha do hibernate.cfg.xml

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

Não encontro nenhum erro no hibernate.cfg.xml :frowning:

Vamos partir para uma próxima etapa :smiley:

Você mapeou o hibernate no classPath (“Variável de ambiente”) ou na IDE que esta utilizando?!

:arrow: Se for no classpath coloca ele aqui!
:arrow: Se for na IDE me fala qual esta utilizando!

Esperando o retorno! :roll:

P

associei na IDE estou com todas essas bibliotecas “.jar” associadas:

true Ant-1.6.5.jar true Ant-antlr-1.6.5.jar true Ant-junit-1.6.5.jar true Ant-launcher-1.6.5.jar true Ant-swing-1.6.5.jar true Antlr-2.7.6.jar true Asm-attrs.jar true Asm.jar true C3p0-0.9.0.jar true Cglib-2.1.3.jar true Cglib.jar true Cleanimports.jar true Commons-collections-2.1.1.jar true Commons-logging-1.0.4.jar true Concurrent-1.3.2.jar true Connector.jar true Dom4j-1.6.1.jar true Ehcache-1.2.jar true Jaas.jar true Jacc-1_0-fr.jar true Javassist.jar true Jaxen-1.1-beta-7.jar true Jboss-cache.jar true Jboss-common.jar true Jboss-jmx.jar true Jboss-system.jar true Jdbc2_0-stdext.jar true Jgroups-2.2.8.jar true Jta.jar true Junit-3.8.1.jar true Log4j-1.2.11.jar true Oscache-2.1.jar true Postgresql-8.1-405.jdbc2ee.zip true Proxool-0.8.3.jar true Psqlodbc-08_02_0002.zip true Swarmcache-1.0rc2.jar true Syndiag2.jar true Versioncheck.jar true Xerces-2.6.2.jar true Xml-apis.jar true Hibernate3.jar true Postgresql-8.1-405.jdbc2ee.zip1 true Psqlodbc-08_02_0002.zip1 true Hibernate3.jar1 true Log4j.jar true Log4j.jar1 true Dom4j-1.6.1.jar1 true Dom4j-1.6.1.jar2 true Commons-logging.jar true Cglib.jar1 true Cglib-2.1.3.jar1 true Cglib-2.1.3.jar2 true Antlr.jar true Hibernate-3.0.zip true Etc true Hibernate3 true Hibernate3.jar2 true Ant-antlr.jar true Ant-apache-bcel.jar true Ant-apache-bsf.jar true Ant-apache-log4j.jar true Ant-apache-oro.jar true Ant-apache-regexp.jar true Ant-apache-resolver.jar true Ant-commons-logging.jar true Ant-commons-net.jar true Ant-icontract.jar true Ant-jai.jar true Ant-javamail.jar true Ant-jdepend.jar true Ant-jmf.jar true Ant-jsch.jar true Ant-junit.jar true Ant-launcher.jar true Ant-netrexx.jar true Ant-nodeps.jar true Ant-oracle.jar true Ant-starteam.jar true Ant-stylebook.jar true Ant-swing.jar true Ant-trax.jar true Ant-vaj.jar true Ant-weblogic.jar true Ant-xalan1.jar true Ant-xslp.jar true Ant.jar true Commons-net-1.3.0.jar true Jakarta-oro-2.0.8.jar true XercesImpl.jar true Xml-apis.jar1 true Ant-antlr.jar1 true Ant-apache-bcel.jar1 true Ant-apache-bsf.jar1 true Ant-apache-log4j.jar1 true Ant-apache-oro.jar1 true Ant-apache-regexp.jar1 true Ant-apache-resolver.jar1 true Ant-commons-logging.jar1 true Ant-commons-net.jar1 true Ant-icontract.jar1 true Ant-jai.jar1 true Ant-javamail.jar1 true Ant-jdepend.jar1 true Ant-jmf.jar1 true Ant-jsch.jar1 true Ant-junit.jar1 true Ant-launcher.jar1 true Ant-netrexx.jar1 true Ant-nodeps.jar1 true Ant-starteam.jar1 true Ant-stylebook.jar1 true Ant-swing.jar1 true Ant-trax.jar1 true Ant-vaj.jar1 true Ant-weblogic.jar1 true Ant-xalan1.jar1 true Ant-xslp.jar1 true Ant.jar1 true Commons-collections-2.0.jar true Commons-logging.jar1 true Log4j.jar2 true Maven-xdoclet-plugin-1.2.1.jar true Xdoclet-1.2.1.jar true Xdoclet-apache-module-1.2.1.jar true Xdoclet-bea-module-1.2.1.jar true Xdoclet-borland-module-1.2.1.jar true Xdoclet-caucho-module-1.2.1.jar true Xdoclet-de-locale-1.2.1.jar true Xdoclet-ejb-module-1.2.1.jar true Xdoclet-exolab-module-1.2.1.jar true Xdoclet-fr_FR-locale-1.2.1.jar true Xdoclet-hibernate-module-1.2.1.jar true Xdoclet-hp-module-1.2.1.jar true Xdoclet-ibm-module-1.2.1.jar true Xdoclet-java-module-1.2.1.jar true Xdoclet-jboss-module-1.2.1.jar true Xdoclet-jdo-module-1.2.1.jar true Xdoclet-jmx-module-1.2.1.jar true Xdoclet-libelis-module-1.2.1.jar true Xdoclet-macromedia-module-1.2.1.jar true Xdoclet-mockobjects-module-1.2.1.jar true Xdoclet-mvcsoft-module-1.2.1.jar true Xdoclet-mx4j-module-1.2.1.jar true Xdoclet-objectweb-module-1.2.1.jar true Xdoclet-openejb-module-1.2.1.jar true Xdoclet-oracle-module-1.2.1.jar true Xdoclet-orion-module-1.2.1.jar true Xdoclet-portlet-module-1.2.1.jar true Xdoclet-pramati-module-1.2.1.jar true Xdoclet-pt_BR-locale-1.2.1.jar true Xdoclet-solarmetric-module-1.2.1.jar true Xdoclet-spring-module-1.2.1.jar true Xdoclet-sun-module-1.2.1.jar true Xdoclet-sybase-module-1.2.1.jar true Xdoclet-tjdo-module-1.2.1.jar true Xdoclet-web-module-1.2.1.jar true Xdoclet-webwork-module-1.2.1.jar true Xdoclet-xdoclet-module-1.2.1.jar true Xjavadoc-1.0.3.jar

P

estou usando o JDeveloper 10g

Calvin

Bom amigo, infelizmente até onde eu pude te ajudar será aqui!
Não tenho mais o que dizer nem o que conferir, pra mim está tudo ok, exceto na configuração na IDE pois não tenho conhecimento de avaliar!

Sugiro que você crie um novo tópico no índice Java Avançado e coloque como título Java+Hibernate+JDeveloper 10g e tente refazer novamente a configuração do hibernate na IDE.

Quanto mais ctrl+c no tutorial e ctrl+v na IDE (diminuindo os erros de ortografia) fica melhor!

Infelizmente não pude te ajudar nessa!
Mais não desiste!
Desculpe :cry:

P

VALEU! AGRADEÇO SUA DEDICAÇÃO… OBRIGADO… NÃO VOU DESISTIR!!

Criado 18 de setembro de 2006
Ultima resposta 19 de set. de 2006
Respostas 15
Participantes 2