Problemas com hiibernate

1 resposta
iltonk

pessoal boa tarde estou com um problema com meu código quando executo o tomcat apresata o seguinte erro

acredito que seja problemas com os jars do hibernate no eclipse alguém tens os jars para me passar.

agradeço

segue o erro

[code]HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception
root cause

java.lang.ExceptionInInitializerError
ged.com.control.CategoriaDAO.inserirCategoria(CategoriaDAO.java:16)
ged.com.servlets.cadastro.doGet(cadastro.java:43)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause

org.hibernate.HibernateException: /gerenciamento_de_estoque/src/hibernate.cfg.xml not found
org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:170)
org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1497)
org.hibernate.cfg.Configuration.configure(Configuration.java:1519)
ged.com.conexao.HibernateUtil.(HibernateUtil.java:10)
ged.com.control.CategoriaDAO.inserirCategoria(CategoriaDAO.java:16)
ged.com.servlets.cadastro.doGet(cadastro.java:43)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.26 logs.[code]

1 Resposta

Victor_Neves
iltonk:
root cause

org.hibernate.HibernateException: /gerenciamento_de_estoque/src/hibernate.cfg.xml not found
[code]

ele nao está achando seu hibernate.cfg.xml
posta ai o codigo da sua classe onde voce configurou o hibernate

Criado 14 de julho de 2012
Ultima resposta 14 de jul. de 2012
Respostas 1
Participantes 2