Copy link to clipboard
Copied
We are running CF9.0 Enterprise with the JRun4 configuration. Adobe discusses disabling JSP functionality in the web.xml and default-web.xml files by commenting out the servlet-mapping like so:
<!--
<servlet-mapping>
<servlet-name>JspLicenseServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
-->
Problem is I don't have a "JspLicenseServlet" value in any of my xml config files. I do however have a "JspServlet" value which I have commented out like so:
<!--
<servlet-mapping>
<servlet-name>JSPServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
-->
Is this sufficient?
Copy link to clipboard
Copied
Yes, that's sufficient. You can easily test this by putting a simple JSP on your server and try requesting it.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Copy link to clipboard
Copied
Thanks. There's also a JSPServlet section in c:\jrun4\servers\admin\SERVER-INF\default-web.xml
Should I disable here as well, or will this negatively impact some admin functionality?
Copy link to clipboard
Copied
No, you shouldn't change anything in the admin server, only the cfusion/coldfusion server. Just turn the admin server off and leave it that way.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Copy link to clipboard
Copied
In CF 10 Enterprise, what is the name of the servlet name for JSP files? I have tried the following entries in my <cf-home>\cfusion\wwwroot\WEB-INF\web.xml, none of which can serve the JSP page. A 404 error is produced by Tomcat, when the file is clearly available in the filesystem.
<servlet-mapping>
<servlet-name>JSPServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.jspx</url-pattern>
</servlet-mapping>
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more