User: stark
Date: 01/02/05 22:12:51
Modified: src/main/org/jboss/deployment J2eeDeployer.java
Log:
Check the tmpDirUrl in initService() as it can be null if either
the directory structure or classpath is incorrect.
Revision Changes Path
1.15 +3 -1 jboss/src/main/org/jboss/deployment/J2eeDeployer.java
Index: J2eeDeployer.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/deployment/J2eeDeployer.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- J2eeDeployer.java 2000/12/07 18:16:08 1.14
+++ J2eeDeployer.java 2001/02/06 06:12:51 1.15
@@ -63,7 +63,7 @@
* (ContainerFactory for JBoss and EmbededTomcatService for Tomcat).
*
* @author <a href="mailto:[EMAIL PROTECTED]">Daniel Schulze</a>
-* @version $Revision: 1.14 $
+* @version $Revision: 1.15 $
*/
public class J2eeDeployer
extends ServiceMBeanSupport
@@ -280,6 +280,8 @@
throws Exception
{
URL tmpDirUrl = getClass().getResource("/tmp.properties");
+ if( tmpDirUrl == null )
+ throw new IOException ("Failed to get /tmp.properties URL; Temporary
directory does not exist!");
//check if the deployment dir was set meaningful
File dir = new File(new File(tmpDirUrl.getFile()).getParentFile(),
"deploy/"+getDeployerName());
if (!dir.exists () &&