-->
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.  [ 7 posts ] 
Author Message
 Post subject: exception in my hibernate config.
PostPosted: Wed Sep 27, 2006 4:21 am 
Beginner
Beginner

Joined: Mon Sep 18, 2006 5:33 am
Posts: 25
Hi all,

Ive got a weird exception but i dont know how to fix it. Which class cant it find?

error
Code:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/photomapper-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError


myapp-servlet.xml file
Code:
<bean id="myDataSource"
      class="org.springframework.jdbc.datasource.DriverManagerDataSource"
      destroy-method="close">
      <property name="driverClassName" value="org.hsqldb.jdbcDriver" />
      <property name="url" value="jdbc:hsqldb:hsql://localhost:9001" />
      <property name="username" value="sa" />
      <property name="password" value="" />
   </bean>

   <bean id="mySessionFactory"
      class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
      <property name="dataSource" ref="myDataSource" />
      <property name="mappingResources">
         <list>
            <value>src/db/Photo.hbm.xml</value>
         </list>
      </property>
      <property name="hibernateProperties">
         <value>
            hibernate.dialect=org.hibernate.dialect.MySQLDialect
         </value>
      </property>
   </bean>

   <bean id="hibernateTemplate"
      class="org.springframework.orm.hibernate.HibernateTemplate">
      <property name="sessionFactory">
         <ref bean="mySessionFactory" />
      </property>
   </bean>


Please note that im using hibernate2 with my app.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 27, 2006 5:08 am 
Beginner
Beginner

Joined: Wed Sep 13, 2006 7:24 am
Posts: 26
Not sure you can so that, looking at your mapping file.


have you tried putting
Code:
<property name="driverClassName" value="org.hsqldb.jdbcDriver" />
      <property name="url" value="jdbc:hsqldb:hsql://localhost:9001" />
      <property name="username" value="sa" />
      <property name="password" value="" />


inside the
mySessionFactory ??

Also on my version of "LocalSessionFactoryBean" there isn't any setters for "dataSource". you should see a setDataSource method. could possibly be the reason its not working

_________________
Ben


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 27, 2006 8:07 pm 
Beginner
Beginner

Joined: Mon Sep 18, 2006 5:33 am
Posts: 25
I tried moving those datasource properties straight into the sessionfactory bean but i got the following error:
Code:
Invalid property 'driverClassName' of bean class


Also the configuration i used was straight out of the spring in action book. But i guess that doesnt mean its not wrong.
Also here is the complete config. file and error i was getting before.

Any ideas?

Complete error
Code:
exception

javax.servlet.ServletException: Servlet.init() for servlet photomapper threw exception
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   java.lang.Thread.run(Unknown Source)

root cause

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/photomapper-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError
   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:403)
   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
   org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
   org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
   org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
   org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:306)
   org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:251)
   org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:220)
   org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:112)
   javax.servlet.GenericServlet.init(GenericServlet.java:211)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   java.lang.Thread.run(Unknown Source)



photomapper-servlet.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<!--
   - Application context definition for "photomapper" DispatcherServlet.
-->

<beans>
   <bean id="multipartResolver"
      class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
      <property name="maxUploadSize" value="1000000000" />
   </bean>

   <bean id="myDataSource"
      class="org.springframework.jdbc.datasource.DriverManagerDataSource"
      destroy-method="close">
      <property name="driverClassName" value="org.hsqldb.jdbcDriver" />
      <property name="url" value="jdbc:hsqldb:hsql://localhost:9001" />
      <property name="username" value="sa" />
      <property name="password" value="" />
   </bean>

   <bean id="mySessionFactory"
      class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
      <property name="dataSource" ref="myDataSource" />
      <property name="mappingResources">
         <list>
            <value>src/db/Photo.hbm.xml</value>
         </list>
      </property>
      <property name="hibernateProperties">
         <value>
            hibernate.dialect=org.hibernate.dialect.MySQLDialect
         </value>
      </property>
   </bean>

   <bean id="hibernateTemplate"
      class="org.springframework.orm.hibernate.HibernateTemplate">
      <property name="sessionFactory">
         <ref bean="mySessionFactory" />
      </property>
   </bean>

   <bean id="urlMapping"
      class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
      <property name="mappings">
         <props>
            <prop key="/index.htm">photomapperController</prop>
            <prop key="/fileupload.htm">photouploadForm</prop>
            <prop key="/photoinfo.htm">photoinfoForm</prop>
         </props>
      </property>
   </bean>

   <bean id="photomapperController"
      class="src.controller.PhotomapperController" />

   <bean id="photouploadValidator"
      class="src.validator.PhotouploadValidator" />
   <bean id="photouploadForm"
      class="src.controller.PhotouploadController">
      <property name="sessionForm">
         <value>true</value>
      </property>
      <property name="commandName">
         <value>photoUpload</value>
      </property>
      <property name="commandClass">
         <value>src.bus.PhotoUpload</value>
      </property>
      <property name="validator">
         <ref bean="photouploadValidator" />
      </property>
      <property name="formView">
         <value>fileupload</value>
      </property>
      <property name="successView">
         <value>successful</value>
      </property>
   </bean>

   <bean id="photoinfoValidator"
      class="src.validator.PhotoinfoValidator" />
   <bean id="photoinfoForm"
      class="src.controller.PhotoinfoController">
      <property name="sessionForm">
         <value>true</value>
      </property>
      <property name="commandName">
         <value>photo</value>
      </property>
      <property name="commandClass">
         <value>src.bus.Photo</value>
      </property>
      <property name="validator">
         <ref bean="photoinfoValidator" />
      </property>
      <property name="formView">
         <value>photoinfo</value>
      </property>
      <property name="successView">
         <value>successful</value>
      </property>
   </bean>

   <bean id="photoDao" class="src.db.PhotoDaoHib">
      <property name="hibernateTemplate">
         <ref bean="hibernateTemplate" />
      </property>
   </bean>

   <bean id="photoMan" class="src.bus.PhotoManager">
      <constructor-arg>
         <ref bean="photoDao" />
      </constructor-arg>
   </bean>

   <bean id="viewResolver"
      class="org.springframework.web.servlet.view.InternalResourceViewResolver">
      <property name="viewClass">
         <value>org.springframework.web.servlet.view.JstlView</value>
      </property>
      <property name="prefix">
         <value>/WEB-INF/jsp/</value>
      </property>
      <property name="suffix">
         <value>.jsp</value>
      </property>
   </bean>

</beans>



Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 12:08 am 
Regular
Regular

Joined: Tue Sep 26, 2006 11:37 am
Posts: 115
Location: Sacramento, CA
Do you have all the required spring-*jar in your lib folder? Maybe you took just a subset and are missing spring-orm.jar or spring-hibernate.jar...?

Not sure if this helps :)

Marius


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 1:23 am 
Beginner
Beginner

Joined: Mon Sep 18, 2006 5:33 am
Posts: 25
nope, that didnt work.

I was looking at the error logs and saw a more detailed error. I think its got something to do with the port in the db connection, but im not sure how to fix it.

any ideas?

Code:
2006-09-28 15:19:27,718 WARN [net.sf.hibernate.util.JDBCExceptionReporter] - <SQL Error: -80, SQLState: 08000>
2006-09-28 15:19:27,718 ERROR [net.sf.hibernate.util.JDBCExceptionReporter] - <socket creation error>
2006-09-28 15:19:27,718 WARN [net.sf.hibernate.cfg.SettingsFactory] - <Could not obtain connection metadata>
java.sql.SQLException: socket creation error
   at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
   at org.hsqldb.jdbc.jdbcConnection.<init>(Unknown Source)
   at org.hsqldb.jdbcDriver.getConnection(Unknown Source)
   at org.hsqldb.jdbcDriver.connect(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:291)
   at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:277)
   at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:259)
   at org.springframework.jdbc.datasource.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:241)
   at org.springframework.orm.hibernate.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:77)
   at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
   at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1091)
   at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:737)
   at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:554)
   at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:488)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
   at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:306)
   at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:251)
   at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:220)
   at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:112)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
   at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Unknown Source)
2006-09-28 15:19:27,718 INFO [net.sf.hibernate.cfg.SettingsFactory] - <Use scrollable result sets: false>
2006-09-28 15:19:27,718 INFO [net.sf.hibernate.cfg.SettingsFactory] - <Query language substitutions: {}>
2006-09-28 15:19:27,718 INFO [net.sf.hibernate.cfg.SettingsFactory] - <cache provider: net.sf.ehcache.hibernate.Provider>
2006-09-28 15:19:27,718 INFO [net.sf.hibernate.cfg.Configuration] - <instantiating and configuring caches>
2006-09-28 15:19:27,718 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [multipartResolver,myDataSource,mySessionFactory,hibernateTemplate,urlMapping,photomapperController,photouploadValidator,photouploadForm,photoinfoValidator,photoinfoForm,photoDao,photoMan,viewResolver]; root of BeanFactory hierarchy}>
2006-09-28 15:19:27,718 ERROR [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Couldn't find a destroy method named 'close' on bean with name 'myDataSource'>
2006-09-28 15:19:27,718 ERROR [org.springframework.web.servlet.DispatcherServlet] - <Context initialization failed>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/photomapper-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError
   at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:739)
   at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:554)
   at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:488)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
   at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:306)
   at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:251)
   at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:220)
   at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:112)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
   at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Unknown Source)
2006-09-28 15:19:27,718 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/photomapper]] - <StandardWrapper.Throwable>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/photomapper-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError
   at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:739)
   at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:554)
   at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:488)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
   at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:306)
   at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:251)
   at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:220)
   at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:112)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
   at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Unknown Source)
2006-09-28 15:19:27,718 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/photomapper].[photomapper]] - <Allocate exception for servlet photomapper>
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/photomapper-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError
java.lang.NoClassDefFoundError
   at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:739)
   at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:554)
   at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:488)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
   at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)
   at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:306)
   at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:251)
   at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:220)
   at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:112)
   at javax.servlet.GenericServlet.init(GenericServlet.java:211)
   at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
   at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Unknown Source)



Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 2:00 am 
Beginner
Beginner

Joined: Mon Sep 18, 2006 5:33 am
Posts: 25
I found i was missing some hibernate jar files which are required. They are found here: http://www.hibernate.org/hib_docs/re...uickstart.html


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 9:50 am 
Regular
Regular

Joined: Tue Sep 26, 2006 11:37 am
Posts: 115
Location: Sacramento, CA
Great, unfortunately the link is not working for me. It seems that the missing jar path was the right one after all :)

Good luck!

Marius


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