-->
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: no JNDI name configured
PostPosted: Wed Aug 16, 2006 1:03 am 
Newbie

Joined: Tue Jul 18, 2006 10:52 pm
Posts: 6
i creat a main class to store a table into oracle , it is ok.but i juin the hibernate active module to the tomcat server , the consoln message printing "no JNDI name configured",some body can tell me why ??

the install logs is bellow:
2006-8-16 12:57:14 net.sf.hibernate.cfg.Environment <clinit>
信息: Hibernate 2.1.2
2006-8-16 12:57:14 net.sf.hibernate.cfg.Environment <clinit>
信息: hibernate.properties not found
2006-8-16 12:57:14 net.sf.hibernate.cfg.Environment <clinit>
信息: using CGLIB reflection optimizer
2006-8-16 12:57:14 net.sf.hibernate.cfg.Configuration configure
信息: configuring from resource: /hibernate.cfg.xml
2006-8-16 12:57:14 net.sf.hibernate.cfg.Configuration getConfigurationInputStream
信息: Configuration resource: /hibernate.cfg.xml
2006-8-16 12:57:16 net.sf.hibernate.cfg.Configuration addResource
信息: Mapping resource: com/jl165/bean/AdverBean.hbm.xml
2006-8-16 12:57:16 net.sf.hibernate.cfg.Binder bindRootClass
信息: Mapping class: com.jl165.bean.AdverBean -> ADVER_TBL_JACK
2006-8-16 12:57:16 net.sf.hibernate.cfg.Configuration addResource
信息: Mapping resource: com/jl165/bean/AdverType.hbm.xml
2006-8-16 12:57:16 net.sf.hibernate.cfg.Binder bindRootClass
信息: Mapping class: com.jl165.bean.AdverType -> ADVERTYPE_TBL_JACK
2006-8-16 12:57:16 net.sf.hibernate.cfg.Configuration doConfigure
信息: Configured SessionFactory: null
2006-8-16 12:57:16 net.sf.hibernate.cfg.Configuration secondPassCompile
信息: processing one-to-many association mappings
2006-8-16 12:57:16 net.sf.hibernate.cfg.Configuration secondPassCompile
信息: processing one-to-one association property references
2006-8-16 12:57:16 net.sf.hibernate.cfg.Configuration secondPassCompile
信息: processing foreign key constraints
2006-8-16 12:57:17 net.sf.hibernate.cfg.SettingsFactory buildSettings
警告: No dialect set - using GenericDialect: Dialect class not found: hibernate.dialect net.sf.hibernate.dialect.Oracle9Dialect
2006-8-16 12:57:17 net.sf.hibernate.dialect.Dialect <init>
信息: Using dialect: net.sf.hibernate.dialect.GenericDialect
2006-8-16 12:57:17 net.sf.hibernate.cfg.SettingsFactory buildSettings
信息: Use outer join fetching: false
2006-8-16 12:57:17 net.sf.hibernate.connection.DriverManagerConnectionProvider configure
信息: Using Hibernate built-in connection pool (not for production use!)
2006-8-16 12:57:17 net.sf.hibernate.connection.DriverManagerConnectionProvider configure
信息: Hibernate connection pool size: 20
2006-8-16 12:57:17 net.sf.hibernate.connection.DriverManagerConnectionProvider configure
信息: using driver: oracle.jdbc.driver.OracleDriver at URL: jdbc:oracle:thin:@61.243.232.211:1521:up
2006-8-16 12:57:17 net.sf.hibernate.connection.DriverManagerConnectionProvider configure
信息: connection properties: {user=jack, password=jack}
2006-8-16 12:57:17 net.sf.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
信息: No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
2006-8-16 12:57:39 net.sf.hibernate.cfg.SettingsFactory buildSettings
信息: Use scrollable result sets: true
2006-8-16 12:57:39 net.sf.hibernate.cfg.SettingsFactory buildSettings
信息: Use JDBC3 getGeneratedKeys(): false
2006-8-16 12:57:39 net.sf.hibernate.cfg.SettingsFactory buildSettings
信息: Optimize cache for minimal puts: false
2006-8-16 12:57:39 net.sf.hibernate.cfg.SettingsFactory buildSettings
信息: echoing all SQL to stdout
2006-8-16 12:57:39 net.sf.hibernate.cfg.SettingsFactory buildSettings
信息: Query language substitutions: {}
2006-8-16 12:57:39 net.sf.hibernate.cfg.SettingsFactory buildSettings
信息: cache provider: net.sf.ehcache.hibernate.Provider
2006-8-16 12:57:39 net.sf.hibernate.cfg.Configuration configureCaches
信息: instantiating and configuring caches
2006-8-16 12:57:40 net.sf.hibernate.impl.SessionFactoryImpl <init>
信息: building session factory
2006-8-16 12:57:41 net.sf.hibernate.impl.SessionFactoryObjectFactory addInstance
信息: no JNDI name configured

and the IE reminder message is:
exception

javax.servlet.ServletException: Servlet execution threw an exception
com.jl165.action.CodeFilter.doFilter(CodeFilter.java:66)
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:142)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:58)


root cause

java.lang.NoClassDefFoundError: javax/transaction/Synchronization
net.sf.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:312)
net.sf.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:325)
net.sf.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:333)
com.jl165.DAO.DefaultDAO.action(DefaultDAO.java:37)
com.jl165.module.AdverModule.adverTypeAdd(AdverModule.java:433)
com.jl165.action.AdverAction.process(AdverAction.java:143)
com.jl165.action.AdverAction.doPost(AdverAction.java:23)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.jl165.action.CodeFilter.doFilter(CodeFilter.java:66)
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:142)
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:58)


somebody can give me a answer.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 16, 2006 9:15 am 
Regular
Regular

Joined: Wed May 05, 2004 3:41 pm
Posts: 118
Location: New Jersey,USA
I don't think the "No JNDI Name" error message has anything to do with your error. It's just a warning from Hibernate that it's not binding youd SessionFactory to a JNDI name.

Going by the stack trace it looks like the javax/transaction/Synchronization class was not found in the class path.

Make sure you have the correct jta.jar in your class path. Open the "jta.jar" to see if this class is available in the JAR.

_________________
--------------
Don't forget to Rate the post


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.