Hi arapolu
well we have a party of errors 
first question, what version of spring are you using??? ,
i am asking this to see fi your dtd definition is the correct, that means
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
if i dont bad remember when i had problems of version i recieve errors something like you
Code:
org.dom4j.DocumentException: Error on line 2 of document : XML declaration may only begin entities. Nested exception: XML declaration may only begin entities.
if your spring is version 2, you should use this
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">
2: why some parts of your xml definition has spaces???
how this
Code:
ework.jdbc.datasource.DriverM anagerDataSource">
3: i use
Code:
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
and you use
Code:
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
4: what version of hibernate are you using??
i use for instance the version 3 and i must have these beans
Code:
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
<bean id="hibernateInterceptor" class="org.springframework.orm.hibernate3.HibernateInterceptor">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
5: for this
This error started comming when i added this line in the xml
<value>org/appfuse/model/User.hbm.xml</value>
be very sure that the mentionated file is located in the folder class , you can copy by hand, or using ant
6: your hibernate properties
, i have something like this
Code:
<property name="hibernateProperties">
<props>
<!-- SQL dialect -->
<prop key="hibernate.dialect">org.hibernate.dialect.MySQL5InnoDBDialect</prop>
<!-- JDBC connection pool (use the built-in) -->
<prop key="hibernate.connection.pool_size" >1</prop>
<!-- Enable Hibernate's automatic session context management -->
<prop key="hibernate.current_session_context_class" >thread</prop>
<!-- Disable the second-level cache -->
<prop key="hibernate.cache.provider_class" >org.hibernate.cache.NoCacheProvider</prop>
<!-- Echo all executed SQL to stdout -->
<prop key="hibernate.show_sql" >true</prop>
pls check each point, and let us know your advanced
best wishes