1 Reply Latest reply: Mar 8, 2012 5:25 PM by Guillaume Grossetie RSS

    Declare global class path resource

    Guillaume Grossetie Newbie



      I use the excellent FAQ about JBossWS http://community.jboss.org/wiki/JBossWS-AS7FAQ to configure Spring with JBossWS-CXF. In my jbossws-cxf.xml I declare the following property-placeholder :

      <context:property-placeholder location="my.properties" />


      I want my.properties to be global for my.ear (standalone mode). So I put my.properties in the standalone/configuration folder but I get the following error :

      Caused by: org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [wafservice.properties] cannot be opened because it does not exist


      I also tried to put my.properties in standalone/my.ear/ but I get the same exception. How can I add a "global dependency" for my.ear deployment unit (and subunit) on a property file ?




      Guillaume Grossetie


      I run jboss-7.0.0.CR1 with ./standalone.sh --server-config standalone-preview.xml