[seam-commits] Seam SVN: r9575 - trunk/src/main/org/jboss/seam/deployment.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sun Nov 16 01:58:40 EST 2008


Author: pete.muir at jboss.org
Date: 2008-11-16 01:58:39 -0500 (Sun, 16 Nov 2008)
New Revision: 9575

Modified:
   trunk/src/main/org/jboss/seam/deployment/FileDescriptor.java
Log:
Fix for hot-deploy

Modified: trunk/src/main/org/jboss/seam/deployment/FileDescriptor.java
===================================================================
--- trunk/src/main/org/jboss/seam/deployment/FileDescriptor.java	2008-11-15 23:22:10 UTC (rev 9574)
+++ trunk/src/main/org/jboss/seam/deployment/FileDescriptor.java	2008-11-16 06:58:39 UTC (rev 9575)
@@ -24,7 +24,11 @@
       {
          throw new NullPointerException("Name cannot be null, loading from " + classLoader);
       }
-      this.url = Resources.getResource(name, ServletLifecycle.getServletContext());
+      this.url = classLoader.getResource(name);
+      if (url == null)
+      {
+         this.url = Resources.getResource(name, ServletLifecycle.getServletContext());
+      }
       if (this.url == null)
       {
          throw new NullPointerException("Cannot find URL from classLoader for " + name + ", loading from " + classLoader);




More information about the seam-commits mailing list