decorative banner

Relocating config/datasources folder


    You can relocate the config/datasources folder out of the virtual root. This prevents any access to it via HTTP. To move the datasources folder, you will need to modify one of the files in the config folder. Some familiarity with ASP, JSP, or PHP is required. To move the datasources folder, look in:

    • For ASP: include/utils.runtime6.asp, in function GetDataSourcePath()
    • For PHP: include/utils.runtime6.php, in function GetDataSourcePath()
    • For JSP: You can move the datasources folder into the WEB-INF folder, which is generally more secure. To do this, you must edit WEB-INF/classes/com/adobe/gl/runtime6/utils/GLContext.java.

To edit GLContext.java:

  1. Open the file and look at the very end of the file for:
  2. cfmap.put(GLUtils.GL_PREFIX + "datasources.",

    "config"+FSP+"datasources"+FSP+"?"+JDBC_DSUF);

  3. Change "config" to "WEB-INF". You then need to recompile the Java file, and possibly rebuild the gl.jar file.

To recompile the Java on UNIX:

  1. Type:
  2. % cd WEB-INF/classes

    % buildall.sh

    This requires the environment variables to be set as follows:

    • $TOMCAT_HOME set to installation directory of Tomcat.
    • $JAVA_HOME set to installation directory of JDK.

To recompile the Java on Windows:

  1. Type:
  2. % cd WEB-INF\classes

    % buildall.bat

    This requires these variables to be set as follows:

    • %TOMCAT_HOME% set to installation directory of Tomcat.
    • %JAVA_HOME% set to installation directory of JDK.
    • %APP_HOME% set to location in file system of the Web application root (that is, the parent directory of WEB-INF). Using set APPHOME=..\.. will work.

    Finally, you need to restart the Web application or server.