Skip to main content
Known Participant
January 9, 2011
질문

Disabling JSP - can't find "JspLicenseServlet" in any config files (CF9 Ent.)

  • January 9, 2011
  • 1 답변
  • 1208 조회

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?

    이 주제는 답변이 닫혔습니다.

    1 답변

    Community Expert
    January 9, 2011

    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/

    Dave Watts, Eidolon LLC
    paule1234작성자
    Known Participant
    January 9, 2011

    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?

    Community Expert
    January 9, 2011

    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/

    Dave Watts, Eidolon LLC