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: Hibernate and weblogic :(
PostPosted: Wed May 31, 2006 10:17 am 
Newbie

Joined: Wed Apr 19, 2006 11:17 am
Posts: 5
Hi,

Being relatively new to hibernate I was pretty happy when I got it working in a fair time developing in the eclipse IDE. But then I had to deploy the app to weblogic 8.1 where I use weblogic workshop to make some webservices that used the same code i used in eclipse (for hibernate 3). But when testing the webservice from weblogic workshop it actually shuts down the server!! Debugging made me identify it was when query.list was called

// extract
Query query = session.createQuery("from HelloWorld");
return query.list();

So I also tried creating a jdbc connection pool and a datasource using the weblogic server console and then updating my hibernate.cgf.xml to use jndi to identify the datasource... looks like this
<session-factory>
<!-- Database connection settings -->
<property name="connection.datasource">DD_Oracle</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.OracleDialect</property>
<property name="jndi.url">t3://localhost:7001</property>
<property name="jndi.class">weblogic.jndi.WLInitialContextFactory</property>
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="transaction.manager_lookup_class">org.hibernate.transaction.WeblogicTransactionManagerLookup</property>
<mapping resource="HelloWorld.hbm.xml"/>
</session-factory>

but still the same prob. Can anyone help please? Does anyone know of any useful urls or example projects to help me with this? I'd really appreciate it plus you'll help me stop losing hair... well maybe just slow it down a bit.

Thanks


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.