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.  [ 3 posts ] 
Author Message
 Post subject: Weblogic JNDI - Hibernate3.0
PostPosted: Fri Aug 19, 2005 6:17 pm 
Newbie

Joined: Fri Aug 19, 2005 1:38 pm
Posts: 3
Can someone please help me in setting up hibernate application with weblogic 7.0.

I'm using the following configuraton information.

hibernate.cfg.xml

<hibernate-configuration>
<session-factory>
<property name="jndi.url">t3://localhost:7001</property>
<property name="jndi.class">weblogic.jndi.WLInitialContextFactory</property>
<property name="connection.datasource">jdbc/lossforecast</property>
<property name="show_sql">false</property>
<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>
<!-- Mapping files -->
<mapping resource="com/test/lossforecast/dao/hibernate/User.hbm.xml"/>
</session-factory>
</hibernate-configuration>

Class where I'm getting the SessionFactory:

public class HibernateUtil {
private static final SessionFactory sessionFactory;
private static Log log = LogFactory.getLog(HibernateUtil.class.getName());

static {
try {
sessionFactory = new Configuration().configure()
.buildSessionFactory();
} catch (Throwable ex) {
log.error("HibernateUtil error", ex);
throw new ExceptionInInitializerError(ex);
}
}
}

Console Messages:

[INFO] SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name c
onfigured
[INFO] SessionFactoryImpl - Checking 0 named queries
Hibernate Util --- currentSession
DataAccessFacade ----- qspGet1List
CharScanner; panic: ClassNotFoundException: org.hibernate.hql.ast.HqlToken

Please help me, how to configure my application to work in weblogic.

Thanks,
Sridhar.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 20, 2005 1:21 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
Read the section "BEA Weblogic issues" @ http://www.hibernate.org/250.html .

The org.hibernate.hql.ast package is ANTLR related .


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 22, 2005 10:12 am 
Newbie

Joined: Fri Aug 19, 2005 1:38 pm
Posts: 3
Hello Dennis,
Thanks for the response. I have included 'antlr-2.7.5H3.jar' to the weblogic classpath. I have updated the classpath in the 'startExamplesServer.bat' with the jar file and started the server. I'm still having the same problem. Do I have to include any other jar files. Is it ok to include the jar file in the classpath of 'startExamplesServer.bat' file.

Thanks,
Vudutha.


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

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.