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.
|