[jboss-cvs] JBossAS SVN: r69187 - trunk/server/src/main/org/jboss/web/deployers.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jan 22 00:35:41 EST 2008
Author: scott.stark at jboss.org
Date: 2008-01-22 00:35:40 -0500 (Tue, 22 Jan 2008)
New Revision: 69187
Modified:
trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java
Log:
JBAS-5151, workaround the WEB-INF resource loading problem
Modified: trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java
===================================================================
--- trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java 2008-01-22 01:17:47 UTC (rev 69186)
+++ trunk/server/src/main/org/jboss/web/deployers/AbstractWarDeployment.java 2008-01-22 05:35:40 UTC (rev 69187)
@@ -65,6 +65,7 @@
import org.jboss.security.SecurityConstants;
import org.jboss.security.SecurityUtil;
import org.jboss.security.authorization.PolicyRegistration;
+import org.jboss.virtual.VirtualFile;
import org.jboss.web.WebApplication;
import org.jboss.wsf.spi.deployment.UnifiedVirtualFile;
import org.omg.CORBA.ORB;
@@ -308,7 +309,9 @@
try
{
// Create a classloader for the war to ensure a unique ENC
- URL[] empty = {};
+ // TODO: this should be handled by the WarClassLoaderDeployer
+ VirtualFile root = unit.getRoot();
+ URL[] empty = {root.toURL()};
URLClassLoader warLoader = URLClassLoader.newInstance(empty, unit.getClassLoader());
thread.setContextClassLoader(warLoader);
String webContext = metaData.getContextRoot();
More information about the jboss-cvs-commits
mailing list