📄 org_apache_catalina_startup_catalina--rosonsandy.htm
字号:
return
(false);<BR>
}<BR> }</P>
<P> return (true);</P>
<P> }</P>
<P><BR> /**<BR> * Return a File object
representing our configuration file.<BR>
*/<BR> protected File configFile() {</P>
<P> File file = new
File(configFile);<BR> if
(!file.isAbsolute())<BR>
file = new File(System.getProperty("catalina.base"),
configFile);<BR> return (file);</P>
<P> }</P>
<P><FONT style="BACKGROUND-COLOR: #ffffff"></FONT><BR> <FONT
style="BACKGROUND-COLOR: #ffffff">/**<BR> * Create and
configure the Digester we will be using for startup.<BR>
*/<BR> protected Digester createStartDigester() {</FONT><FONT
style="BACKGROUND-COLOR: #ffffff"><BR>
Digester digester = new
Digester();<BR> if
(debug)<BR>
digester.setDebug(3);<BR>
digester.setValidating(false);</FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><SPAN lang=EN-US
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" mso-font-kerning:="" 0pt?=""><FONT
style="BACKGROUND-COLOR: #ffffff"> // Initialize
the digester</FONT></SPAN><FONT
style="BACKGROUND-COLOR: #ffffff">
</FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: " roman?;=""
new="" times="" mso-font-kerning:="" 0pt?=""><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN lang=EN-US
style="COLOR: green">// Configure the actions we will be
using</SPAN></SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: " roman?;=""
new="" times="" mso-font-kerning:="" 0pt?=""><SPAN lang=EN-US
style="COLOR: green"></SPAN></SPAN></FONT><FONT
style="BACKGROUND-COLOR: #ffffff"><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: 新宋体; mso-hansi-font-family: " roman?;=""
new="" times="" mso-font-kerning:="" 0pt?=""><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
style="COLOR: green">//</SPAN></SPAN><SPAN
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" mso-font-kerning:="" 0pt?="">默认的<SPAN
lang=EN-US>server</SPAN>为<SPAN lang=EN-US>StandardServer,</SPAN>如果没有<SPAN
lang=EN-US>className,</SPAN>则实例化<SPAN
lang=EN-US>StandardServer</SPAN></SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" mso-font-kerning:="" 0pt?=""><SPAN
lang=EN-US></SPAN></SPAN></FONT><FONT style="BACKGROUND-COLOR: #ffffff"><FONT
color=#009933>
</FONT>digester.addObjectCreate("Server",<BR>
"org.apache.catalina.core.StandardServer",<BR>
"className");<BR>
digester.addSetProperties("Server");<BR> </FONT><SPAN
lang=EN-US
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" mso-font-kerning:="" 0pt?=""><FONT
style="BACKGROUND-COLOR: #ffffff">
//Catalina.setServer()</FONT></SPAN></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><SPAN lang=EN-US
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" mso-font-kerning:="" 0pt?=""></SPAN><FONT
style="BACKGROUND-COLOR: #ffffff">
digester.addSetNext("Server",<BR>
"setServer",<BR>
"org.apache.catalina.Server"); </FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><FONT style="BACKGROUND-COLOR: #ffcc00"><FONT
style="BACKGROUND-COLOR: #ffffff">
digester.addObjectCreate("Server/GlobalNamingResources",<BR>
"org.apache.catalina.deploy.NamingResources");<BR>
digester.addSetProperties("Server/GlobalNamingResources");<BR></FONT></FONT><FONT
style="BACKGROUND-COLOR: #ffffff"> </FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN lang=EN-US
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" mso-font-kerning:=""
0pt?="">
//StandardServer.setGlobalNamingResources()</SPAN><BR>
digester.addSetNext("Server/GlobalNamingResources",<BR>
"setGlobalNamingResources",<BR>
"org.apache.catalina.deploy.NamingResources");</FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left> <FONT
style="BACKGROUND-COLOR: #ffffff">
digester.addObjectCreate("Server/Listener",<BR>
null, // MUST be specified in the
element<BR>
"className");<BR>
digester.addSetProperties("Server/Listener");<BR>
<SPAN lang=EN-US
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" ar-sa?="" zh-cn;="" en-us;="" ?times=""
mso-bidi-font-family:="" mso-ansi-language:="" mso-fareast-language:=""
mso-bidi-language:="">//StandardServer.addLifecycleListener()</SPAN><BR>
digester.addSetNext("Server/Listener",<BR>
"addLifecycleListener",<BR>
"org.apache.catalina.LifecycleListener");</FONT></P>
<UL>
<LI>
<P><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN lang=EN-US
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" mso-font-kerning:="" 0pt?="">//</SPAN><SPAN
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" mso-font-kerning:="" 0pt?="">默认的<SPAN
lang=EN-US>service</SPAN>是<SPAN lang=EN-US>StandardService,</SPAN>如果没有<SPAN
lang=EN-US>className,</SPAN>则实例化<SPAN
lang=EN-US>StandardService</SPAN></SPAN> </FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><FONT style="BACKGROUND-COLOR: #ffffff">
digester.addObjectCreate("Server/Service",<BR>
"org.apache.catalina.core.StandardService",<BR>
"className");<BR>
digester.addSetProperties("Server/Service");<BR>
<SPAN lang=EN-US
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" ar-sa?="" zh-cn;="" en-us;="" ?times=""
mso-bidi-font-family:="" mso-ansi-language:="" mso-fareast-language:=""
mso-bidi-language:="">//StandardServer.addService()</SPAN></FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><SPAN lang=EN-US
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" ar-sa?="" zh-cn;="" en-us;="" ?times=""
mso-bidi-font-family:="" mso-ansi-language:="" mso-fareast-language:=""
mso-bidi-language:=""></SPAN><FONT
style="BACKGROUND-COLOR: #ffffff">
digester.addSetNext("Server/Service",<BR>
"addService",<BR>
"org.apache.catalina.Service");</FONT></P>
<P><FONT
style="BACKGROUND-COLOR: #ffffff">
</FONT></P>
<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-layout-grid-align: none"
align=left><FONT style="BACKGROUND-COLOR: #ffffff"><SPAN lang=EN-US
style="FONT-SIZE: 9pt; COLOR: green; FONT-FAMILY: 新宋体; mso-hansi-font-family: "
roman?;="" new="" times="" mso-font-kerning:=""
0pt?=""> //no default Listener Class and it must
be provided in server.xml</SPAN><BR>
digester.addObjectCreate("Server/Service/Listener",<BR>
null, // MUST be specified in the
element<BR>
"className");<BR>
digester.addSetProperties("Server/Service/Listener");<BR>
//StandardService.addLifecycleListener()<BR>
digester.addSetNext("Server/Service/Listener",<BR>
"addLifecycleListener",<BR>
"org.apache.catalina.LifecycleListener");</FONT></P>
<P><FONT
style="BACKGROUND-COLOR: #ffffff">
//if no className provided,the default connector is
HttpConnector<BR>
digester.addObjectCreate("Server/Service/Connector",<BR>
"org.apache.catalina.connector.http.HttpConnector",<BR>
"className");<BR>
digester.addSetProperties("Server/Service/Connector");<BR>
//StandardService.addConnector()<BR>
digester.addSetNext("Server/Service/Connector",<BR>
"addConnector",<BR>
"org.apache.catalina.Connector");</FONT></P>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -