Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Jan 09, 2011 Jan 09, 2011

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.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 09, 2011 Jan 09, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 09, 2011 Jan 09, 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 09, 2011 Jan 09, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 22, 2013 Jul 22, 2013
LATEST

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>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources