geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r568087 - /geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java
Date Tue, 21 Aug 2007 12:09:31 GMT
Author: vamsic007
Date: Tue Aug 21 05:09:31 2007
New Revision: 568087

URL: http://svn.apache.org/viewvc?rev=568087&view=rev
Log:
Though the context is started, tomcat is logging an error message when a directory <catalin.base>/work/<context-root>
 is not present.

Modified:
    geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java

Modified: geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java?rev=568087&r1=568086&r2=568087&view=diff
==============================================================================
--- geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java
(original)
+++ geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java
Tue Aug 21 05:09:31 2007
@@ -18,6 +18,7 @@
  */
 package org.apache.tuscany.sca.http.geronimo;
 
+import java.io.File;
 import java.net.URI;
 import java.util.concurrent.Executor;
 
@@ -175,6 +176,10 @@
         wrapper.addMapping(mapping);
         wrapper.setLoadOnStartup(0);
         context.addChild(wrapper);        
+        File temp = new File(new File(System.getProperty("catalina.base")), context.getDocBase());
+        if(!temp.exists()) {
+            temp.mkdirs();
+        }
         host.addChild(context);        
         try {
             context.start();



Mime
View raw message