2 Replies Latest reply on Aug 4, 2017 12:31 PM by rajiba sahoo

    Deploying war in wildfly 10

    rajiba sahoo Newbie

      I have applicationcontext.xml where i am referring to some xml file under a folder namely config.

       

      Here is the code snippet  of WEB-INF/applicationContext.xml:

       

      <bean id="envConfigBuilder" class="org.apache.commons.configuration.DefaultConfigurationBuilder">

      <property name="fileName">

      <value>config\test_config.xml</value>

      </property>

      </bean>

       

      I want to provide this folder info while running standalone.bat.

       

      I have already tried this options but no luck.

       

      1.standalone.bat -c C:\config\test_config.xml

      2.standalone.bat -P=C:\config\test_config.xml

      3.standalone.bat -Djboss.server.config.dir=C:\config

       

      Throwing  "Cannot locate configuration source config\test_config.xml" 

       

      Appreciate your quick help

       

      Regards,