Olá a todos, meu Tomcat está gerando um erro:
The matching wildcard is strict, but no declaration can be found for element ‘context:property-placeholder’
olhem o meu aplicationContext:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-25.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<!--
//////////////////////////////////////
Integracao do Spring com o Hibernate
//////////////////////////////////////
-->
<!--
Carregamento do Arquivo de Configuracoes do JDBC
-->
NA LINHA ABAIXO ELE ACUSA O ERRO
<context:property-placeholder location="classpath:jdbc.properties"/>
<!--
Configuracao do DataSource
-->
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<value>${jdbc.driverClassName}</value>
</property>
<property name="url">
<value>${jdbc.url}</value>
</property>
<property name="username">
<value>${jdbc.username}</value>
</property>
<property name="password">
<value>${jdbc.password}</value>
</property>
</bean>
<!--
Hibernate SessionFactory
-->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref local="dataSource" />
</property>
<!-- Carrega todos os HBM's -->
<property name="mappingDirectoryLocations">
<list>
<value>
classpath:model/repository/
</value>
</list>
</property>
<!-- Configuracoes do Hibernate -->
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.PostgreSQLDialect
</prop>
<prop key="hibernate.show_sql">true</prop>
<!--
Atualizar o Banco de dados de acordo com os arquivos de mapeamentos.
<prop key="hibernate.hbm2ddl.auto">update</prop>
-->
</props>
</property>
<property name="eventListeners">
<map>
<entry key="merge">
<bean class="org.springframework.orm.hibernate3.support.IdTransferringMergeEventListener" />
</entry>
</map>
</property>
</bean>
<!--
Transaction Manager
-->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory" />
</property>
</bean>
<!-- Habilita os Services para serem transicionais via a Annotation @Transactional -->
<tx:annotation-driven transaction-manager="transactionManager" />
<!-- ============================== AOP DEFINITIONS ================================ -->
<!-- ========================= BUSINESS OBJECT DEFINITIONS ========================= -->
<!--
Activates various annotations to be detected in bean classes:
Spring's @Required and @Autowired, as well as JSR 250's @Resource.
-->
<context:annotation-config />
<!-- Carrega os Beans de Servico -->
<context:component-scan base-package="model.service" />
<!-- Carrega os Beans DAO Hibernate -->
<context:component-scan base-package="model.repository" />
</beans>
O que pode ser? O que quer dizer esse erro de placeholder?
Obrigado.