Unable to access ColdFusion MX Administrator after changing context root to / .
Issue
After changing the context root for the ColdFusion MX web application to a forward slash ( / ), all requests for the ColdFusion MX Administrator result in "404 file not found" errors. The browser may display only "404 /CFIDE/administrator/index.cfm." For example, after deploying ColdFusion MX with a context root of /cfmx, you later decide to change the context root to / .
Note that this discussion is relevant only to ColdFusion MX installed in a J2EE configuration as an Enterprise Application (EAR file or directory) with RDS functionality enabled.
Reason
Before making this change, the ColdFusion MX Administrator is accessed by requestinghttp://{host:port}/{context-root}/CFIDE/administrator/index.cfm. The administrator pages are found because the context root redirects all requests to the ColdFusion web application under the cfusion-war directory.
After changing the context root to /, the ColdFusion MX Administrator should be accessible by requestinghttp://{host:port}/CFIDE/administrator/index.cfm. However, since /CFIDE is the context root for the RDS web application, all requests for /CFIDE will get redirected to the RDS web application. Since there is no /CFIDE/administrator/ directory under the rds-war directory, and there is no servlet mapping for /CFIDE/administrator/, all requests for administrator pages will result in file-not-found errors.
Solution
To resolve this error, the RDS web application module as defined in application.xml must be removed. Note that doing so will not disable RDS functionality when using / as the context-root. You should continue to be able to use RDS to access your files from Dreamweaver, Homesite+, etc.
To remove the RDS web application module, edit the application.xml file located in the /cfusion-ear/META-INF directory. For example, when deployed on JRun, the application.xml file is located in the {JRun4-root}/servers/{CFMX server}/cfusion-ear/META-INF/ directory. Comment out, or remove, the RDS web application.
For example:
<!-- <module id="WebModule_2"><web><web-uri>rds-war</web-uri><context-root>/CFIDE</context-root></web></module> -->
Additional Information
This content requires Flash
To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.
Download the free Flash Player now!
