geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r892838 - /geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/BundleDirContext.java
Date Mon, 21 Dec 2009 14:43:02 GMT
Author: xuhaihong
Date: Mon Dec 21 14:43:02 2009
New Revision: 892838

URL: http://svn.apache.org/viewvc?rev=892838&view=rev
Log:
Keep the same behavior with Tomcat's own context implementation, throw naming exception instead
of returning null value

Modified:
    geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/BundleDirContext.java

Modified: geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/BundleDirContext.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/BundleDirContext.java?rev=892838&r1=892837&r2=892838&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/BundleDirContext.java
(original)
+++ geronimo/server/trunk/plugins/tomcat/geronimo-tomcat7/src/main/java/org/apache/geronimo/tomcat/BundleDirContext.java
Mon Dec 21 14:43:02 2009
@@ -1450,7 +1450,7 @@
         }
         URL url = bundle.getEntry(name);
         if (url == null) {
-            return null;
+            throw new NamingException(sm.getString("resources.notFound", name));
         }
         return new URLResource(url);
     }



Mime
View raw message