<font face="Luxi Sans">Hi all,<br>
      <br>
      When trying to migrate our web application which currently runs on
      Apache Geronimo to JBoss 6.0.0.Final I came across the following.<br>
      <br>
      Is there a way to add a custom directory to the web application&#39;s
      classpath without changing the server configuration manually. In
      our situation we have multiple web applications deployed to one
      server each having their own properties file and other
      configuration stuff </font><font face="Luxi Sans">(for some
      reason this data is put outside the ear)</font><font face="Luxi
      Sans">. In the application I want to read these files in an
      application independent manner, i.e. without the need to know the
      webapp&#39;s name. On Geronimo we use the &#39;classesDirs&#39; property of
      the SharedLib gbean in geronimo-application.xml to extend the
      application&#39;s classpath with the specific webapp&#39;s configuration
      directory.<br>
      <br>
      On JBoss I was thinking about the following configuration. Let&#39;s
      say I have webapp1 and webapp2 each using a separate
      config.properties file. I can put these files e.g. in the JBoss
      conf directory as follows:<br>
    </font><font face="Luxi Sans">$JBOSS_HOME/server/&lt;server-name&gt;/conf</font>/webapp1/config.properties<br>
    <font face="Luxi Sans">$JBOSS_HOME/server/&lt;server-name&gt;/conf</font>/webapp2/config.properties<br>
    <font face="Luxi Sans">If I could add the </font> <font face="Luxi
      Sans">$JBOSS_HOME/server/&lt;server-name&gt;/conf</font>/&lt;webapp&gt;
    directory to the application&#39;s classpath the properties file can be
    read by calling getResourceAsStream(&quot;/config.properties&quot;).<br>
    <font face="Luxi Sans">Is there a proper way to achieve this?<br>
      <br>
      I know the $JBOSS_HOME/server/&lt;server-name&gt;/conf directory
      is on the classpath by default so I can read the properties using
    </font>getResourceAsStream(&quot;/&lt;webapp&gt;/config.properties&quot;) but
    that&#39;s not what I want.<font face="Luxi Sans"><br>
      <br>
      Thanks in advance.<br>
      <br>
      Regards,<br>
      Adrie</font>