Accessibility

TechNote

How to prevent ColdFusion MX from answering /servlet/* URL requests

Issue


By default, ColdFusion MX will try to answer any URL request for /servlet/*, which may cause an error or unexpected result. The workaround is to disable the ServletInvoker mapping in default-web.xml.

The ColdFusion Server configuration and J2EE configuration on JRun are configured to answer all requests for /servlet/*. This becomes problematic when installing and configuring ColdFusion with a web server with the same servlet mapping. The ColdFusion/JRun web server connector will intercept the request, even though ColdFusion is not specifically configured for the servlet.

Solution


Server Configuration
  1. Stop the ColdFusion service and the web server.
  2. Opencf_root/runtime/servers/default/SERVER-INF/default-web.xml for editing.
  3. Comment out the ServletInvoker mapping:
     <!--<servlet-mapping><servlet-name>ServletInvoker</servlet-name><url-pattern>/servlet/*</url-pattern></servlet-mapping>--> 
  4. Save the file.
  5. Restart the ColdFusion service and the web server.
J2EE Configuration on JRun
  1. Stop the ColdFusion server instance and the web server.
  2. Openjrun_root/servers/cfmx_server_instance/SERVER-INF/default-web.xml for editing.
  3. Comment out the ServletInvoker mapping:
     <!--<servlet-mapping><servlet-name>ServletInvoker</servlet-name><url-pattern>/servlet/*</url-pattern></servlet-mapping>--> 
  4. Save the file.
  5. Restart the ColdFusion server instance and the web server.

AlertThis 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!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:tn_19381
Browser:Chrome
Internet Explorer
Netscape
Opera
Safari
Firefox

Products Affected:

coldfusion