Jump to content
Changes to the Jaspersoft community edition download ×

problem definition SpringHibernate DataSource


dr_pompeii

Recommended Posts

Hi guys

i work with Spring/Hibernate

 

i have this bean definition for the db connection/Hibernate

 

Code:

<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource"/>
</property>
<property name="mappingResources">
<list>
<value>com/lagranjita/modelo/entidades/Empresa.hbm.xml</value>
<value>com/lagranjita/modelo/entidades/Proveedor.hbm.xml</value>
<value>com/lagranjita/modelo/entidades/CuentaProveedores.hbm.xml</value>

.... more

 

 

when i try to create a connection

 

Spring loaled Hibenrate connection

 

i have this values

Spring Configuration

applicationContext-hibernate.xml,applicationContext-db.xml

 

and the value for ID Bean is sessionFactory

 

both context xml files are in the same folder and added its folder location to the classpath for ireport tool

same case for all jar files from the lib folder project from tomcat

and the same case for the folder path where are located all the hbm.xml files for hibernate

 

well when i text the connection i recieve this error

see the image attached

 

pls, how i can resolve this???

thanks for advanced

[file name=ERROR.png size=92568]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/ERROR.png[/file]

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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