I don't understand why my properties are not injected in my perso-servlet.xml :
<!-- Facebook OAuth helper -->
<bean id="FacebookOAuthHelper" class="com.myapp.businessservices.common.facebook.FacebookOAuthHelper"
p:apiKey="${facebook.apiKey}"
p:secretkey="${facebook.secretkey}"
p:clientId="${facebook.clientId}"
p:permissions="${facebook.permissions}"
p:serverIPRedirectURI="${facebook.serverIPRedirectURI}"
p:applicationRedirectURI="${facebook.applicationRedirectURI}"
p:authFilterURI="${facebook.authFilterURI}"/>
My settings.xml (Maven 2) :
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<profiles>
<profile>
<activation>
<!-- This must be set to true to tell maven that we want to use this profile (by default). -->
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<!-- Enable the debug mode (for both Flex and Java modules)-->
<debug>true</debug>
<!-- Facebook plateform parameters -->
<!-- General Sharehunter application parameters -->
<facebook.apikey>xxxx</facebook.apikey>
<facebook.secretkey>yyyyyy</facebook.secretkey>
<facebook.clientId>zzzzz</facebook.clientId>
In fact, when I read (in debug mode) these properties in my FacebookOAuthHelper bean, the values read are :
${facebook.apiKey} => for apiKey property,
${facebook.secretkey} => for secretkey property,
etc ...
The Tomcat deployement is ok.
Could you help me ?