Adobe 38043740 User Guide - Page 96

Disabling JSP functionality server configuration

Page 96 highlights

92 CHAPTER 7 Configuring Your System Disabling JSP functionality (server configuration only) ColdFusion Enterprise Edition provides support for JavaServer Pages (JSP) technology through the underlying J2EE application server on which it runs. Because JSP code runs outside of the realm of the ColdFusion security framework and, therefore, is not subject to ColdFusion sandbox security, you do not typically deploy JSPs in a shared, hosted environment where more than one customer shares a single server. Disable JSP functionality 1 Open cf_root/runtime/servers/default/SERVER-INF/default-web.xml in a text editor. 2 Find the servlet-mapping entry for JspLicenseServlet. 3 Comment out this entry, as the following example shows: JspLicenseServlet *.jsp --> 4 Save and close the file. 5 Open the file cf_root\WEB-INF\web.xml. 6 Comment out the servlet mapping, as follows: JspLicenseServlet *.jsp --> 7 Save and close the file. 8 Restart ColdFusion.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112

CHAPTER 7
92
Configuring Your System
Disabling JSP functionality (server configuration
only)
ColdFusion Enterprise Edition provides support for JavaServer Pages (JSP) technology through the underlying
J2EE application server on which it runs. Because JSP code runs outside of the realm of the ColdFusion security
framework and, therefore, is not subject to ColdFusion sandbox security, you do not typically deploy JSPs in a
shared, hosted environment where more than one customer shares a single server.
Disable JSP functionality
1
Open
cf_root
/runtime/servers/default/SERVER-INF/default-web.xml in a text editor.
2
Find the
servlet-mapping
entry for JspLicenseServlet.
3
Comment out this entry, as the following example shows:
<!--
<servlet-mapping>
<servlet-name>JspLicenseServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
-->
4
Save and close the file.
5
Open the file
cf_root
\WEB-INF\web.xml.
6
Comment out the servlet mapping, as follows:
<!--
<servlet-mapping>
<servlet-name>JspLicenseServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
-->
7
Save and close the file.
8
Restart ColdFusion.