-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Help me!
PostPosted: Tue Nov 09, 2004 4:56 am 
Newbie

Joined: Tue Nov 09, 2004 4:33 am
Posts: 1
Hibernate version:2.1.6

Mapping documents:

Code between sessionFactory.openSession() and session.close():
try{
Session session = HibernateUtil.currentSession();
Transaction tx = session.beginTransaction();
...
tx.commit();
HibernateUtil.closeSession();

}...

Full stack trace of any exception that occurs:
java.lang.ExceptionInInitializerError
at org.scbit.clinsnp.util.HibernateUtil.<clinit>(HibernateUtil.java:23)
at org.scbit.clinsnp.register.LoginServlet.doPost(LoginServlet.java:36)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
...


Name and version of the database you are using:oracle9i

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

I use a datasource, and <Resource> element has been added to server.xml, and my "hibernate.cfg.xml" has"
<property name="show_sql">true</property>
<property name="dialect">net.sf.hibernate.dialect.Oracle9Dialect</property>
<property name="connection.datasource">java:/comp/env/jdbc/estap</property>
<property name="statement_cache.size">25</property>
<property name="jdbc.fetch_size">50</property>
<property name="jdbc.batch_size">30</property>".
However, when I run this web application, it always shows wrongs above, and it seems to hava a problem of the code "sessionFactory = new Configuration().configure().buildSessionFactory();" in my hibernate util class file. I have been bothered by these wrong info a whole day, and there is anyone can help me?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.