description="The object used for mapping"\r
type="java.lang.Object"/>\r
\r
+ <attribute name="namingContextListener"\r
+ description="Associated naming context listener."\r
+ type="org.apache.catalina.core.NamingContextListener" />\r
+ \r
<attribute name="objectName"\r
description="Name of the object"\r
type="java.lang.String"/>\r
* @param isValid The new value for the <code>isValid</code> flag\r
*/\r
public void setValid(boolean isValid) {\r
-\r
this.isValid = isValid;\r
}\r
\r
\r
this.lastAccessedTime = this.thisAccessedTime;\r
this.thisAccessedTime = System.currentTimeMillis();\r
-\r
- evaluateIfValid();\r
-\r
accessCount++;\r
\r
}\r
}\r
\r
\r
- protected void evaluateIfValid() {\r
- /*\r
- * If this session has expired or is in the process of expiring or\r
- * will never expire, return\r
- */\r
- if (!this.isValid || expiring || maxInactiveInterval < 0)\r
- return;\r
-\r
- isValid();\r
-\r
- }\r
-\r
-\r
// ------------------------------------------------------ Protected Methods\r
\r
\r
import java.io.FileInputStream;\r
import java.io.FileOutputStream;\r
import java.io.IOException;\r
+import java.io.InputStream;\r
import java.io.ObjectInputStream;\r
import java.io.ObjectOutputStream;\r
import java.net.URL;\r
\r
InputSource inputSource = null;\r
try {\r
- inputSource =\r
- new InputSource(\r
- context.getServletContext().getResourceAsStream(resourcePath));\r
+ InputStream stream =\r
+ context.getServletContext().getResourceAsStream(resourcePath);\r
+ if (stream == null) {\r
+ throw new IllegalArgumentException\r
+ (sm.getString("contextConfig.tldResourcePath",\r
+ resourcePath));\r
+ }\r
+ inputSource = new InputSource(stream);\r
if (inputSource == null) {\r
throw new IllegalArgumentException\r
(sm.getString("contextConfig.tldResourcePath",\r
// Ignore <example> element: Bugzilla 33538\r
} else if ("tag-extension".equals(tname)) {\r
// Ignore <tag-extension> element: Bugzilla 33538\r
+ } else if ("icon".equals(tname) \r
+ || "display-name".equals(tname) \r
+ || "description".equals(tname)) {\r
+ // Ignore these elements: Bugzilla 38015\r
} else {\r
if (log.isWarnEnabled()) {\r
log.warn(Localizer.getMessage(\r
* Release any resources allocated for this directory context.\r
*/\r
public void release() {\r
-\r
- caseSensitive = true;\r
- allowLinking = false;\r
- absoluteBase = null;\r
- base = null;\r
super.release();\r
-\r
}\r
\r
\r