Skip to content

Commit af006e0

Browse files
committed
CDATA for logs
1 parent b00deec commit af006e0

File tree

1 file changed

+27
-18
lines changed

1 file changed

+27
-18
lines changed

src/docbkx/basic/getting-started/jetty-starting-stopping.xml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,25 @@ xmlns:ns2="http://www.w3.org/1998/Math/MathML" xmlns:ns="http://docbook.org/ns/d
1515
</para>
1616
<para>If everything goes correctly you should see about 20 lines of logged INFO statements that will include lines
1717
like the following, that inform you of the components being started:</para>
18-
<screen>2012-10-22 16:02:24.988:INFO:oejs.Server:main: jetty-9.0.0-M2 2012-10-22 2012-10-22
19-
16:02:25.040:INFO:oejs.NCSARequestLog:main: Opened
20-
/home/gregw/src/jetty-9/jetty-distribution/target/distribution/logs/2012_10_22.request.log 2012-10-22 2012-10-22
21-
16:02:25.115:INFO:oejs.ServerConnector:main: Started ServerConnector@6aeeafb{HTTP/1.1}{0.0.0.0:8080} 2012-10-22
22-
2012-10-22 16:02:25.348:INFO:oejs.ServerConnector:main: Started ServerConnector@24a45e{SSL-http/1.1}{0.0.0.0:8443}
23-
2012-10-22 2012-10-22 16:02:25.357:INFO:oejdp.ScanningAppProvider:main: Deployment monitor
24-
[file:/home/gregw/src/jetty-9/jetty-distribution/target/distribution/webapps/] at interval 1 2012-10-22 2012-10-22
25-
16:02:25.688:INFO:oejd.DeploymentManager:main: Deployable added:
26-
/home/gregw/src/jetty-9/jetty-distribution/target/distribution/webapps/test.xml 2012-10-22 2012-10-22
27-
16:02:25.725:INFO:oejw.WebInfConfiguration:main: Extract
28-
jar:file:/home/gregw/src/jetty-9/jetty-distribution/target/distribution/webapps/test.war!/ to
29-
/tmp/jetty-0.0.0.0-8080-test.war-_test-any-/webapp 2012-10-22 16:02:26.097:INFO:oejsh.ContextHandler:main: started
30-
o.e.j.w.WebAppContext@4e3ceb07{/test,file:/tmp/jetty-0.0.0.0-8080-test.war-_test-any-/webapp/,AVAILABLE}{/test.war}</screen>
18+
<informalexample>
19+
<programlisting language="text">
20+
<![CDATA[2012-10-22 16:02:24.988:INFO:oejs.Server:main: jetty-9.0.0-M2
21+
2012-10-22 16:02:25.040:INFO:oejs.NCSARequestLog:main: Opened /home/gregw/src/jetty-9/jetty-distribution/target/distribution/logs/2012_10_22.request.log
22+
2012-10-22 16:02:25.115:INFO:oejs.ServerConnector:main: Started ServerConnector@6aeeafb{HTTP/1.1}{0.0.0.0:8080}
23+
2012-10-22 16:02:25.348:INFO:oejs.ServerConnector:main: Started ServerConnector@24a45e{SSL-http/1.1}{0.0.0.0:8443}
24+
2012-10-22 16:02:25.357:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/home/gregw/src/jetty-9/jetty-distribution/target/distribution/webapps/] at interval 1
25+
2012-10-22 16:02:25.688:INFO:oejd.DeploymentManager:main: Deployable added: /home/gregw/src/jetty-9/jetty-distribution/target/distribution/webapps/test.xml
26+
2012-10-22 16:02:25.725:INFO:oejw.WebInfConfiguration:main: Extract jar:file:/home/gregw/src/jetty-9/jetty-distribution/target/distribution/webapps/test.war!/ to /tmp/jetty-0.0.0.0-8080-test.war-_test-any-/webapp
27+
2012-10-22 16:02:26.097:INFO:oejsh.ContextHandler:main: started o.e.j.w.WebAppContext@4e3ceb07{/test,file:/tmp/jetty-0.0.0.0-8080-test.war-_test-any-/webapp/,AVAILABLE}{/test.war} ]]>
28+
</programlisting>
29+
</informalexample>
3130
<para>You will also see some warnings like:</para>
32-
<screen>2012-10-22 16:02:24.748:WARN::main: test-realm is deployed. DO NOT USE IN PRODUCTION! 2012-10-22 2012-10-22
33-
16:02:25.582:WARN::main: async-rest webapp is deployed. DO NOT USE IN PRODUCTION!</screen>
31+
<informalexample>
32+
<programlisting language="text">
33+
<![CDATA[2012-10-22 16:02:24.748:WARN::main: test-realm is deployed. DO NOT USE IN PRODUCTION!
34+
2012-10-22 16:02:25.582:WARN::main: async-rest webapp is deployed. DO NOT USE IN PRODUCTION! ]]>
35+
</programlisting>
36+
</informalexample>
3437
<para>These warnings are telling you that some demonstration web applications and services are deployed and that
3538
they should be removed before the server is put into production. These warnings can be ignored while testing, or
3639
you can see LINK:Deploying Web Applications to learn how to remove them.</para>
@@ -46,9 +49,15 @@ xmlns:ns2="http://www.w3.org/1998/Math/MathML" xmlns:ns="http://docbook.org/ns/d
4649
<para>If you see the following exception you already have something running on the port that jetty is configured
4750
to run on and you either need to shut down whatever that process is, or configure jetty to run on another
4851
port.</para>
49-
<screen>Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at
50-
sun.nio.ch.Net.bind(Net.java:344) at sun.nio.ch.Net.bind(Net.java:336) at
51-
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:199)</screen>
52+
<informalexample>
53+
<programlisting language="text">
54+
<![CDATA[java.net.BindException: Address already in use
55+
at sun.nio.ch.Net.bind0(Native Method)
56+
at sun.nio.ch.Net.bind(Net.java:344)
57+
at sun.nio.ch.Net.bind(Net.java:336)
58+
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:199) ]]>
59+
</programlisting>
60+
</informalexample>
5261
<para>Jetty can be made to run on a different port by adding setting the jetty.port Property on the command
5362
line:</para>
5463
<para>

0 commit comments

Comments
 (0)