[jboss-cvs] JBossAS SVN: r72741 - in trunk/testsuite/src/resources/cluster/classloader/leak/war: nocache and 3 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Apr 25 16:29:50 EDT 2008
Author: bstansberry at jboss.com
Date: 2008-04-25 16:29:50 -0400 (Fri, 25 Apr 2008)
New Revision: 72741
Added:
trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/
trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/WEB-INF/
trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/WEB-INF/web.xml
trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/noreplicable/
trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/noreplicable/WEB-INF/
trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/noreplicable/WEB-INF/web.xml
trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/simple.jsp
Log:
[JBAS-5405] Add classloader leak tests for simple use of @Replicable classes
Added: trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/WEB-INF/web.xml
===================================================================
--- trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/WEB-INF/web.xml (rev 0)
+++ trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/WEB-INF/web.xml 2008-04-25 20:29:50 UTC (rev 72741)
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+ <!-- NOT distributable
+ <distributable/>
+ -->
+
+ <!-- Registers an mbean the test driver can use to check the cache state -->
+ <listener>
+ <listener-class>org.jboss.test.classloader.leak.web.ClassloaderLeakContextListener</listener-class>
+ </listener>
+
+ <servlet>
+ <servlet-name>NoCachingServlet</servlet-name>
+ <servlet-class>org.jboss.test.cluster.classloader.leak.web.NoCachingServlet</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>NoCachingServlet</servlet-name>
+ <url-pattern>/SimpleServlet</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Property changes on: trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/WEB-INF/web.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/noreplicable/WEB-INF/web.xml
===================================================================
--- trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/noreplicable/WEB-INF/web.xml (rev 0)
+++ trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/noreplicable/WEB-INF/web.xml 2008-04-25 20:29:50 UTC (rev 72741)
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+ <!-- NOT distributable
+ <distributable/>
+ -->
+
+ <!-- Registers an mbean the test driver can use to check the cache state -->
+ <listener>
+ <listener-class>org.jboss.test.classloader.leak.web.ClassloaderLeakContextListener</listener-class>
+ </listener>
+
+ <servlet>
+ <servlet-name>NoCachingNoReplicableServlet</servlet-name>
+ <servlet-class>org.jboss.test.cluster.classloader.leak.web.NoCachingNoReplicableServlet</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>NoCachingNoReplicableServlet</servlet-name>
+ <url-pattern>/SimpleServlet</url-pattern>
+ </servlet-mapping>
+
+</web-app>
Property changes on: trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/noreplicable/WEB-INF/web.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/simple.jsp
===================================================================
--- trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/simple.jsp (rev 0)
+++ trunk/testsuite/src/resources/cluster/classloader/leak/war/nocache/simple.jsp 2008-04-25 20:29:50 UTC (rev 72741)
@@ -0,0 +1,9 @@
+<%@page contentType="text/html"%>
+<%
+ // We really don't care about jsps in this test; this jsp is just here
+ // to meet the demands of test superclass that wants to invoke it
+ org.jboss.test.classloader.leak.clstore.ClassLoaderStore.getInstance().storeClassLoader("JSP", getClass().getClassLoader());
+ org.jboss.test.classloader.leak.clstore.ClassLoaderStore.getInstance().storeClassLoader("JSP_TCCL", Thread.currentThread().getContextClassLoader());
+
+%>
+WEBAPP
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list