[jboss-cvs] JBossAS SVN: r95442 - projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 22 16:11:52 EDT 2009
Author: jesper.pedersen
Date: 2009-10-22 16:11:51 -0400 (Thu, 22 Oct 2009)
New Revision: 95442
Modified:
projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/RADeployer.java
Log:
[JBJCA-198] Fail non-existing deployments
Modified: projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/RADeployer.java
===================================================================
--- projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/RADeployer.java 2009-10-22 20:02:11 UTC (rev 95441)
+++ projects/jboss-jca/trunk/deployers/src/main/java/org/jboss/jca/deployers/fungal/RADeployer.java 2009-10-22 20:11:51 UTC (rev 95442)
@@ -107,12 +107,15 @@
if (url == null || !(url.toExternalForm().endsWith(".rar") || url.toExternalForm().endsWith(".rar/")))
return null;
- log.info("Deploying: " + url.toExternalForm());
+ log.debug("Deploying: " + url.toExternalForm());
ClassLoader oldTCCL = SecurityActions.getThreadContextClassLoader();
try
{
File f = new File(url.toURI());
+
+ if (!f.exists())
+ throw new IOException("Archive " + url.toExternalForm() + " doesnt exists");
File root = null;
@@ -275,6 +278,8 @@
// Activate deployment
+ log.info("Deployed: " + url.toExternalForm());
+
return new RADeployment(url, cl);
}
catch (Throwable t)
More information about the jboss-cvs-commits
mailing list