-->
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: NoClassDefFound on net/sf/hibernate/dialect/Dialect
PostPosted: Wed Jun 01, 2005 7:18 pm 
Beginner
Beginner

Joined: Wed Jun 01, 2005 6:51 pm
Posts: 27
Location: Philippines
I don't get it, how can it not find Dialect? Is it not in the same jar as Binder and Configuration?

hibernate-2.1.6.jar is in the webapp lib and hsqldb.jar is in /common/lib/ for tomcat 5.0.30



[2005-06-01 23:10:59,734] INFO Environment : Hibernate 2.1.6
[2005-06-01 23:10:59,796] INFO Environment : loaded properties from resource hibernate.properties: {wsabi_os.hsqldb.server.database==/usr/AlariusAssignments/wsabi_os, hibernate.connection.driver_class=org.hsqldb.jdbcDriver, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.HSQLDialect, hibernate.dbcp.maxIdle=15, hibernate.dbcp.maxWait=5000, hibernate.dbcp.maxActive=50, hibernate.connection.username=sa, hibernate.hbm2ddl.auto=create , hibernate.connection.url=jdbc:hsqldb:wsabi_os, hibernate.show_sql=true , hibernate.connection.password=}
[2005-06-01 23:10:59,859] INFO Configuration : Mapping resource: hibernate-mappings/audit_log.hbm.xml
[2005-06-01 23:11:00,984] INFO Binder : Mapping class: org.allesta.wsabi.monitor.log.model.AuditLog -> audit_log
[2005-06-01 23:11:01,390] INFO Binder : Mapping class: org.allesta.wsabi.monitor.log.model.AuditLogDetail -> audit_log_detail
[2005-06-01 23:11:01,406] INFO Configuration : Mapping resource: hibernate-mappings/perf_index.hbm.xml
[2005-06-01 23:11:01,468] INFO Binder : Mapping class: org.allesta.wsabi.monitor.index.model.PerfIndex -> perf_index
[2005-06-01 23:11:01,531] INFO Binder : Mapping class: org.allesta.wsabi.monitor.index.model.PerfIndexDataPoint -> perf_index_datapoint
[2005-06-01 23:11:01,531] INFO Configuration : processing one-to-many association mappings
[2005-06-01 23:11:01,531] INFO Binder : Mapping collection: org.allesta.wsabi.monitor.index.model.PerfIndex.dataPoints -> perf_index_datapoint
[2005-06-01 23:11:01,531] INFO Configuration : processing one-to-one association property references
[2005-06-01 23:11:01,531] INFO Configuration : processing foreign key constraints
[2005-06-01 23:11:01,687] ERROR SessionFactoryFactory : create: caught a throwable: net/sf/hibernate/dialect/Dialect
java.lang.NoClassDefFoundError: net/sf/hibernate/dialect/Dialect
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:485)
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:820)
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721)
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:803)
at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1327)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at net.sf.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:99)
at net.sf.hibernate.dialect.Dialect.getDialect(Dialect.java:377)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:43)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1155)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:789)
at org.allesta.wsabi.util.hibernate.factory.SessionFactoryFactory.obtainViaConfigFiles(SessionFactoryFactory.java:119)
at org.allesta.wsabi.util.hibernate.factory.SessionFactoryFactory.create(SessionFactoryFactory.java:84)
at org.allesta.wsabi.monitor.index.dao.hibernate.PerfIndexDAO.<clinit>(PerfIndexDAO.java:69)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at org.allesta.wsabi.monitor.index.dao.IPerfIndexDAOFactory.getSingleton(IPerfIndexDAOFactory.java:63)
at org.allesta.wsabi.monitor.index.PerfIndexManager.init(PerfIndexManager.java:168)
at org.allesta.wsabi.monitor.index.PerfIndexManager.getInstance(PerfIndexManager.java:70)
at org.allesta.wsabi.monitor.index.action.PerfIndexAction.execute(PerfIndexAction.java:81)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:534)
[2005-06-01 23:11:01,687] ERROR SessionFactoryFactory : create: caught a throwable: net/sf/hibernate/dialect/Dialect
java.lang.NoClassDefFoundError: net/sf/hibernate/dialect/Dialect
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)

_________________
Mike "Ollie" Oliver


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 01, 2005 8:49 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The dialect was setup as net.sf.hibernate.dialect.HSQLDialect
right?


Top
 Profile  
 
 Post subject: well uh, yea
PostPosted: Wed Jun 01, 2005 10:51 pm 
Beginner
Beginner

Joined: Wed Jun 01, 2005 6:51 pm
Posts: 27
Location: Philippines
so the log shows it read the hibernate.properties and that should have set the dialect to HSQLDialect fair enough...

but it still it is throwing the Class Not Found Error on net/sf/hibernate/dialect/Dialect not on HSQLDialect, RIGHT?

so the question stands, how can it not find it?

_________________
Mike "Ollie" Oliver


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.