Context.xml (Spring)

O que há de errado nesse context.xml?

<beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:schemaLocation="http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd" >
 
     <bean id="areaFacade" class="br.com.bcsinfo.business.area.AreaFacadeImpl">
         <property name="entityManagerFactory" ref="entityManagerFactory" />
     </bean>
     
     <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
         <property name="dataSource" ref="dataSource" />
         <property name="jpaVendorAdapter">
             <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
                 <property name="showSql" value="true" />
                 <property name="generateDdl" value="true" />
                 <property name="databasePlatform" value="org.hibernate.dialect.OracleDialect" />
             </bean>
         </property>
         <property name="loadTimeWeaver">		
             <bean class="org.springframework.instrument.classloading.ReflectiveLoadTimeWeaver"/>        
         </property>
     </bean> 
 
     <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
         <property name="driverClassName" value="oracle.jdbc.OracleDriver" />
         <property name="url" value="jdbc:oracle:thin:@oracle8:1521:d01" />
         <property name="username" value="abc" />
         <property name="password" value="abc" />
     </bean> 
     
     <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager">
         <property name="entityManagerFactory" ref="entityManagerFactory" />
         <property name="dataSource" ref="dataSource" />
     </bean>
    
 </beans>

O Tomcat só mostra a seguinte mensagem: Error listenerStart

Esse problema pode ser mais específico. Coloque aqui o stackTrace da exception que o Spring imprime no console.

Vários problemas podem estar causando essa exception: ClassNotFound, problemas com a configuração do JPA, configuração do DataSource.

Coloque a stackTrace aqui, pois ajudará a rastrear onde está o problema!

:wink: