On 07/26/2013 05:47 PM, Piratenvisier wrote: > I created an own dependency of cocoon-rest-optional of your block with > another groupID > When I start jetty java complains that it doesn't find the > placeholders in block-application-context. > I don't have this problem in cocoon-sample. Where is this placeholding > mechanism set up ?
In linux I did: cd c3 regexxer #here i searched for pattern *.xml # then I searched for configurator I found 12 matches the important once in the cocoon-rest-optional where located in the rcl folder: <!-- Activate Cocoon Spring Configurator --> <configurator:settings> <configurator:property name="org.apache.cocoon.reloading.sitemap" value="true"/> <configurator:property name="org.apache.cocoon.containerencoding" value="UTF-8"/> <configurator:property name="org.apache.cocoon.exception.ProcessingException.unroll" value="true"/> </configurator:settings> You find the docu about it in http://cocoon.apache.org/subprojects/configuration/spring-configurator/index.html specially the part http://cocoon.apache.org/subprojects/configuration/spring-configurator/1310_1_1.html where the properties matching is explained in detail. In short I guess you do not have either not activated the configurator so the properties file is not picked up or you do not have a file like c3/cocoon-rest-optional/src/main/resources/META-INF/cocoon/properties/mail.properties in your project. I recommend as well the spring "vanilla" placeholder docu http://static.springsource.org/spring/docs/2.0.x/reference/beans.html#beans-factory-placeholderconfigurer since the "Cocoon Spring Configurator" in the end is a wrapper around that. hth -- Thorsten Scherler <scherler.at.gmail.com> codeBusters S.L. - web based systems <consulting, training and solutions> http://www.codebusters.es/