0 Replies Latest reply on Jul 9, 2008 4:34 AM by fmarchioni

    Setting Classpath dynamically

      Hi all !
      I have a web application which reads some configuration files (hibernate.cfg.xml ...etc). Until now I have simply placed this files into WEB-INF/classes so that they're visible by the Classpath of the Web Application. Now I have to move them on the root directory of the Web application.

      Is there a way to set the classpath to search for files in another location, dynamically ? That is I cannot change the env variable CLASSPATH or the startup script, I need to set up classpath by code or using a property in web.xml file.

      Thanks a lot
      Francesco