Accessibility
Adobe
Sign in My orders My Adobe

Title

How to prevent ColdFusion MX from answering /servlet/* URL requestsProducts affected

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.

Doc ID
(tn_19381)

Last updated
2005-05-10

Products affected

Contacting Adobe Support

Still need help?
Find out about all your support options.
Contact support