Jump to content
We've recently updated our Privacy Statement, available here ×

Setup Spring Loaded Hibernate Connection


venubodige

Recommended Posts

Hi ,

I am new to ireports , i am using Spring Loaded Hibernate Connection.

I have set the classpath for applcationContext.xml.And when i give the Spring configuartion and session factory details and clicked on test, it is giving the following error.

Error:

Error creating with the bean name 'sessionFactory' defined in class path resoorce [applicationContext.xml]: Invocation of init method failed;nested exception is java.io.FileNotFoundException: class path resource [com/alissa/services/hbm/PriceConfigPeriodVlues.hbm.xml] cannot be opened because it does nor exist

Please help on this. 

 

Code:
<bean id="dataSource"		class="org.springframework.jdbc.datasource.DriverManagerDataSource">		<property name="driverClassName" value="com.mysql.jdbc.Driver" />		<property name="url" value="jdbc:mysql://10.254.48.25:3306/btc_20120329?useUnicode=true&characterEncoding=UTF-8" />		<property name="username" value="root" />		<property name="password" value="admin" />	</bean><bean id="sessionFactory"		class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">				<property name="dataSource">			<ref bean="dataSource" />		</property>		<property name="hibernateProperties">			<props>				<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>				<prop key="hibernate.show_sql">true</prop>			</props>		</property>		<property name="mappingResources">			<list>				<value>com/alissa/services/hbm/PriceConfigPeriodValues.hbm.xml				</value>				<value>com/alissa/services/hbm/Colormaster.hbm.xml</value>				<value>com/alissa/services/hbm/Franchise.hbm.xml</value>				<value>com/alissa/services/hbm/Model.hbm.xml</value>							</list>		</property>	</bean>
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...