Author: pete.muir(a)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);
Show replies by date