Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVioleta Georgieva2012-10-10 12:18:29 -0400
committerVioleta Georgieva2012-10-10 12:18:29 -0400
commitd017ab75ae39828298cc3302f47e84d3cced2952 (patch)
treeb004da258c439218f26bf3d00c2538b474f9a276
parent6cf08f94def201986945f09364fbb29bc3d6dac2 (diff)
downloadorg.eclipse.virgo.system-verification-tests-d017ab75ae39828298cc3302f47e84d3cced2952.tar.gz
org.eclipse.virgo.system-verification-tests-d017ab75ae39828298cc3302f47e84d3cced2952.tar.xz
org.eclipse.virgo.system-verification-tests-d017ab75ae39828298cc3302f47e84d3cced2952.zip
bug 391574: Update the default Lifecycle Listeners to the Apache Tomcat configuration. Remove the shutdown port.
-rw-r--r--org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server.xml79
-rw-r--r--org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server1.xml75
-rw-r--r--org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server2.xml75
3 files changed, 119 insertions, 110 deletions
diff --git a/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server.xml b/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server.xml
index 6f2b13f..a875aee 100644
--- a/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server.xml
+++ b/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server.xml
@@ -15,42 +15,45 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<Server port="8006" shutdown="SHUTDOWN">
-
- <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
- <Listener className="org.apache.catalina.core.JasperListener" />
- <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
- <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
-
- <Listener className="org.eclipse.virgo.web.tomcat.ServerLifecycleLoggingListener"/>
-
- <Service name="Catalina">
- <Connector port="8081" protocol="HTTP/1.1"
- connectionTimeout="20000"
- redirectPort="8444" />
-
- <Connector port="8444" protocol="HTTP/1.1" SSLEnabled="true"
- maxThreads="150" scheme="https" secure="true"
- clientAuth="false" sslProtocol="TLS"
- keystoreFile="config/keystore"
- keystorePass="changeit"/>
-
- <Connector port="8010" protocol="AJP/1.3" redirectPort="8444" />
-
- <Engine name="Catalina" defaultHost="localhost">
- <Realm className="org.apache.catalina.realm.JAASRealm" appName="dm-kernel"
- userClassNames="org.eclipse.virgo.kernel.authentication.User"
- roleClassNames="org.eclipse.virgo.kernel.authentication.Role"/>
-
- <Host name="localhost" appBase="" deployOnStartup="false"
- unpackWARs="false" autoDeploy="false"
- createDirs="false">
-
- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="serviceability/logs/access"
- prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
-
- <Valve className="org.eclipse.virgo.web.tomcat.ApplicationNameTrackingValve"/>
- </Host>
- </Engine>
- </Service>
+<Server>
+
+ <!--APR library loader. Documentation at /docs/apr.html -->
+ <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
+ <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
+ <Listener className="org.apache.catalina.core.JasperListener" />
+ <!-- Prevent memory leaks due to use of particular java/javax APIs-->
+ <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
+ <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
+ <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
+ <Listener className="org.eclipse.virgo.web.tomcat.ServerLifecycleLoggingListener"/>
+
+ <Service name="Catalina">
+ <Connector port="8081" protocol="HTTP/1.1"
+ connectionTimeout="20000"
+ redirectPort="8444" />
+
+ <Connector port="8444" protocol="HTTP/1.1" SSLEnabled="true"
+ maxThreads="150" scheme="https" secure="true"
+ clientAuth="false" sslProtocol="TLS"
+ keystoreFile="config/keystore"
+ keystorePass="changeit"/>
+
+ <Connector port="8010" protocol="AJP/1.3" redirectPort="8444" />
+
+ <Engine name="Catalina" defaultHost="localhost">
+ <Realm className="org.apache.catalina.realm.JAASRealm" appName="dm-kernel"
+ userClassNames="org.eclipse.virgo.kernel.authentication.User"
+ roleClassNames="org.eclipse.virgo.kernel.authentication.Role"/>
+
+ <Host name="localhost" appBase="" deployOnStartup="false"
+ unpackWARs="false" autoDeploy="false"
+ createDirs="false">
+
+ <Valve className="org.apache.catalina.valves.AccessLogValve" directory="serviceability/logs/access"
+ prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
+
+ <Valve className="org.eclipse.virgo.web.tomcat.ApplicationNameTrackingValve"/>
+ </Host>
+ </Engine>
+ </Service>
</Server>
diff --git a/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server1.xml b/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server1.xml
index e46b1a2..4f7785a 100644
--- a/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server1.xml
+++ b/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server1.xml
@@ -15,40 +15,43 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<Server port="8007" shutdown="SHUTDOWN">
-
- <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
- <Listener className="org.apache.catalina.core.JasperListener" />
- <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
- <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
-
- <Listener className="org.eclipse.virgo.web.tomcat.ServerLifecycleLoggingListener"/>
-
- <Service name="Catalina">
- <Connector port="8084" protocol="HTTP/1.1"
- connectionTimeout="20000"
- redirectPort="8445" />
-
- <Connector port="8445" protocol="HTTP/1.1" SSLEnabled="true"
- maxThreads="150" scheme="https" secure="true"
- clientAuth="false" sslProtocol="TLS"
- keystoreFile="config/keystore"
- keystorePass="changeit"/>
-
- <Connector port="8011" protocol="AJP/1.3" redirectPort="8445" />
-
- <Engine name="Catalina" defaultHost="localhost">
- <Realm className="org.apache.catalina.realm.JAASRealm" appName="dm-kernel"
- userClassNames="org.eclipse.virgo.kernel.authentication.User"
- roleClassNames="org.eclipse.virgo.kernel.authentication.Role"/>
-
- <Host name="localhost" appBase="webapps"
- unpackWARs="true" autoDeploy="true"
- xmlValidation="false" xmlNamespaceAware="false">
-
- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="serviceability/logs/access"
- prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
- </Host>
- </Engine>
- </Service>
+<Server>
+
+ <!--APR library loader. Documentation at /docs/apr.html -->
+ <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
+ <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
+ <Listener className="org.apache.catalina.core.JasperListener" />
+ <!-- Prevent memory leaks due to use of particular java/javax APIs-->
+ <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
+ <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
+ <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
+ <Listener className="org.eclipse.virgo.web.tomcat.ServerLifecycleLoggingListener"/>
+
+ <Service name="Catalina">
+ <Connector port="8084" protocol="HTTP/1.1"
+ connectionTimeout="20000"
+ redirectPort="8445" />
+
+ <Connector port="8445" protocol="HTTP/1.1" SSLEnabled="true"
+ maxThreads="150" scheme="https" secure="true"
+ clientAuth="false" sslProtocol="TLS"
+ keystoreFile="config/keystore"
+ keystorePass="changeit"/>
+
+ <Connector port="8011" protocol="AJP/1.3" redirectPort="8445" />
+
+ <Engine name="Catalina" defaultHost="localhost">
+ <Realm className="org.apache.catalina.realm.JAASRealm" appName="dm-kernel"
+ userClassNames="org.eclipse.virgo.kernel.authentication.User"
+ roleClassNames="org.eclipse.virgo.kernel.authentication.Role"/>
+
+ <Host name="localhost" appBase="webapps"
+ unpackWARs="true" autoDeploy="true"
+ xmlValidation="false" xmlNamespaceAware="false">
+
+ <Valve className="org.apache.catalina.valves.AccessLogValve" directory="serviceability/logs/access"
+ prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
+ </Host>
+ </Engine>
+ </Service>
</Server>
diff --git a/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server2.xml b/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server2.xml
index 1ad31cb..263c312 100644
--- a/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server2.xml
+++ b/org.eclipse.virgo.server.svt.cleanstart/src/test/resources/tomcat-server2.xml
@@ -15,40 +15,43 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<Server port="8008" shutdown="SHUTDOWN">
-
- <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
- <Listener className="org.apache.catalina.core.JasperListener" />
- <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
- <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
-
- <Listener className="org.eclipse.virgo.web.tomcat.ServerLifecycleLoggingListener"/>
-
- <Service name="Catalina">
- <Connector port="8083" protocol="HTTP/1.1"
- connectionTimeout="20000"
- redirectPort="8446" />
-
- <Connector port="8446" protocol="HTTP/1.1" SSLEnabled="true"
- maxThreads="150" scheme="https" secure="true"
- clientAuth="false" sslProtocol="TLS"
- keystoreFile="config/keystore"
- keystorePass="changeit"/>
-
- <Connector port="8012" protocol="AJP/1.3" redirectPort="8446" />
-
- <Engine name="Catalina" defaultHost="localhost">
- <Realm className="org.apache.catalina.realm.JAASRealm" appName="dm-kernel"
- userClassNames="org.eclipse.virgo.kernel.authentication.User"
- roleClassNames="org.eclipse.virgo.kernel.authentication.Role"/>
-
- <Host name="localhost" appBase="webapps"
- unpackWARs="true" autoDeploy="true"
- xmlValidation="false" xmlNamespaceAware="false">
-
- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="serviceability/logs/access"
- prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
- </Host>
- </Engine>
- </Service>
+<Server>
+
+ <!--APR library loader. Documentation at /docs/apr.html -->
+ <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
+ <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
+ <Listener className="org.apache.catalina.core.JasperListener" />
+ <!-- Prevent memory leaks due to use of particular java/javax APIs-->
+ <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
+ <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
+ <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
+ <Listener className="org.eclipse.virgo.web.tomcat.ServerLifecycleLoggingListener"/>
+
+ <Service name="Catalina">
+ <Connector port="8083" protocol="HTTP/1.1"
+ connectionTimeout="20000"
+ redirectPort="8446" />
+
+ <Connector port="8446" protocol="HTTP/1.1" SSLEnabled="true"
+ maxThreads="150" scheme="https" secure="true"
+ clientAuth="false" sslProtocol="TLS"
+ keystoreFile="config/keystore"
+ keystorePass="changeit"/>
+
+ <Connector port="8012" protocol="AJP/1.3" redirectPort="8446" />
+
+ <Engine name="Catalina" defaultHost="localhost">
+ <Realm className="org.apache.catalina.realm.JAASRealm" appName="dm-kernel"
+ userClassNames="org.eclipse.virgo.kernel.authentication.User"
+ roleClassNames="org.eclipse.virgo.kernel.authentication.Role"/>
+
+ <Host name="localhost" appBase="webapps"
+ unpackWARs="true" autoDeploy="true"
+ xmlValidation="false" xmlNamespaceAware="false">
+
+ <Valve className="org.apache.catalina.valves.AccessLogValve" directory="serviceability/logs/access"
+ prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
+ </Host>
+ </Engine>
+ </Service>
</Server>

Back to the top