Author: jason.greene(a)jboss.com
Date: 2006-11-08 01:22:20 -0500 (Wed, 08 Nov 2006)
New Revision: 1409
Modified:
trunk/src/main/java/org/jboss/ws/integration/jboss50/DeploymentInfoAdaptor.java
Log:
Fix JBWS-1334
Modified: trunk/src/main/java/org/jboss/ws/integration/jboss50/DeploymentInfoAdaptor.java
===================================================================
---
trunk/src/main/java/org/jboss/ws/integration/jboss50/DeploymentInfoAdaptor.java 2006-11-07
13:42:25 UTC (rev 1408)
+++
trunk/src/main/java/org/jboss/ws/integration/jboss50/DeploymentInfoAdaptor.java 2006-11-08
06:22:20 UTC (rev 1409)
@@ -34,7 +34,7 @@
/**
- * Build container independent deployment info.
+ * Build container independent deployment info.
*
* @author Thomas.Diesler(a)jboss.org
* @since 05-May-2006
@@ -55,10 +55,19 @@
udi.shortName = getShortName(unit);
udi.url = getDeploymentURL(unit);
udi.metaData = buildMetaData(unit);
- udi.classLoader = unit.getClassLoader();
+ // FIXME - parent deployments really don't need a classloader since the
classpath
+ // is built via the VFS
+ try
+ {
+ udi.classLoader = unit.getClassLoader();
+ }
+ catch (IllegalStateException e)
+ {
+ }
+
log.debug("UnifiedDeploymentInfo:\n" + udi);
-
+
return udi;
}
@@ -68,7 +77,7 @@
return shortName;
}
- private static URL getDeploymentURL(DeploymentUnit unit)
+ private static URL getDeploymentURL(DeploymentUnit unit)
{
try
{
@@ -80,7 +89,7 @@
throw new IllegalStateException("Cannot get deployment url", ex);
}
}
-
+
private static Object buildMetaData(DeploymentUnit unit)
{
Object metaData = null;
@@ -88,7 +97,7 @@
{
metaData = ApplicationMetaDataAdaptor.buildUnifiedApplicationMetaData(unit);
}
- else
+ else
{
Set<? extends WebMetaData> allMetaData =
unit.getAllMetaData(WebMetaData.class);
if (allMetaData.size() > 0)
Show replies by date