1 Reply Latest reply on Nov 17, 2009 8:52 AM by peterj

    How to add files to application classpath?

    technocrat.bharani

      Hi,

      I have the properties file which are specific for each domain. Could you help me, how to add these files to the application's classpath for each domain?

      i tried in following different ways. But, efforts were in vain.

      1) I tried by modifying the JBOSS_CLASSPATH in run.bat and it didnt work out. I believe this is only meant to the jboss server's classpath.

      2) I tried using -C runtime parameter, it didnt work out as well.

      3) I tried even having the properties file in /conf folder. it didnt work out as well.

      regards,
      Bharani

        • 1. Re: How to add files to application classpath?
          peterj

          What do you mean by "specific for each domain"?

          Properties files can be placed in a JAR file in your app, in WEB-INF/classes, or even the server/xxx/conf directory. Your point #3 mentioned you tried the conf directory but you did not elaborate on what did not work for you. A specific example of what you did and what you expected would help.