-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem: Hibernate 3.0 with Weblogic 7.0
PostPosted: Fri Aug 19, 2005 1:42 pm 
Newbie

Joined: Fri Aug 19, 2005 1:38 pm
Posts: 3
I have seen a post on hibernate.org regarding the problem with weblogic using hibernate. I'm having the same problem. I tried to set up the start up class, but couldn't do it. Can someone please help me in this regard.

1. where can I find the interface 'T3StartupDef'
2. in which package is the class 'DataStore'
3. where I should I place this class file.

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] Environment - Hibernate 3.0.5
[INFO] Environment - hibernate.properties not found
[INFO] Environment - using CGLIB reflection optimizer
[INFO] Environment - JVM does not support Statement.getGeneratedKeys()
[INFO] Environment - JVM does not support LinkedHasMap, LinkedHashSet - ordered
maps and sets disabled
[INFO] Environment - using workaround for JVM bug in java.sql.Timestamp
[INFO] Environment - using pre JDK 1.4 java.sql.Timestamp handling
[INFO] Configuration - configuring from resource: /hibernate.cfg.xml
[INFO] Configuration - Configuration resource: /hibernate.cfg.xml
[INFO] Configuration - Mapping resource: com/bac/pao/lossforecast/dao/hibernate/
User.hbm.xml
[INFO] Configuration - Configured SessionFactory: null
[INFO] Configuration - processing extends queue
[INFO] Configuration - processing collection mappings
[INFO] Configuration - processing association property references
[INFO] Configuration - processing foreign key constraints
[INFO] NamingHelper - JNDI InitialContext properties:{java.naming.provider.url=t
3://localhost:7001, java.naming.factory.initial=weblogic.jndi.WLInitialContextFa
ctory}
[INFO] DatasourceConnectionProvider - Using datasource: jdbc/lossforecast
[INFO] SettingsFactory - RDBMS: Microsoft SQL Server, version: Microsoft SQL Ser
ver 2000 - 8.00.760 (Intel X86)
Dec 17 2002 14:22:05
Copyright (c) 1988-2003 Microsoft Corporation
Enterprise Edition on Windows NT 5.0 (Build 2195: Service Pack 4)

[INFO] SettingsFactory - JDBC driver: SQLServer, version: 2.2.0040
[INFO] Dialect - Using dialect: org.hibernate.dialect.SQLServerDialect
[INFO] TransactionFactoryFactory - Using default transaction strategy (direct JD
BC transactions)
[INFO] TransactionManagerLookupFactory - No TransactionManagerLookup configured
(in JTA environment, use of read-write or transactional second-level cache is no
t recommended)
[INFO] SettingsFactory - Automatic flush during beforeCompletion(): disabled
[INFO] SettingsFactory - Automatic session close at end of transaction: disabled

[INFO] SettingsFactory - Scrollable result sets: enabled
[INFO] SettingsFactory - JDBC3 getGeneratedKeys(): disabled
[INFO] SettingsFactory - Connection release mode: null
[INFO] SettingsFactory - Default batch fetch size: 1
[INFO] SettingsFactory - Generate SQL with comments: disabled
[INFO] SettingsFactory - Order SQL updates by primary key: disabled
[INFO] SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTransla
torFactory
[INFO] ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
[INFO] SettingsFactory - Query language substitutions: {}
[INFO] SettingsFactory - Second-level cache: enabled
[INFO] SettingsFactory - Query cache: disabled
[INFO] SettingsFactory - Cache provider: org.hibernate.cache.EhCacheProvider
[INFO] SettingsFactory - Optimize cache for minimal puts: disabled
[INFO] SettingsFactory - Structured second-level cache entries: disabled
[INFO] SettingsFactory - Statistics: disabled
[INFO] SettingsFactory - Deleted entity synthetic identifier rollback: disabled
[INFO] SettingsFactory - Default entity-mode: pojo
[INFO] SessionFactoryImpl - building session factory
[WARN] Configurator - No configuration found. Configuring ehcache from ehcache-f
ailsafe.xml found in the classpath: zip:C:/bea/weblogic700/samples/server/config
/examples/./examplesServer/.wlnotdelete/examplesServer_lfapp_lfapp/jarfiles/WEB-
INF/lib/ehcache-1.136399.jar!/ehcache-failsafe.xml
[INFO] SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name c
onfigured
[INFO] SessionFactoryImpl - Checking 0 named queries
Hibernate Util --- currentSession
DataAccessFacade ----- qspGet1List
[u][b]CharScanner; panic: ClassNotFoundException: org.hibernate.hql.ast.HqlToken[/b][/u]

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

Thanks,
Sridhar.


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

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
T3StartupDef is in weblogic.common .


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.