/**
* The Context container associated with our web application.
*/
- protected Context context = null;
+ protected transient Context context = null;
/**
/**
* The associated host.
*/
- protected Host installedHost = null;
+ protected transient Host installedHost = null;
/**
* The associated engine.
*/
- protected Engine engine = null;
+ protected transient Engine engine = null;
/**
* MBean server.
*/
- protected MBeanServer mBeanServer = null;
+ protected transient MBeanServer mBeanServer = null;
/**
/**
* The Wrapper container associated with this servlet.
*/
- protected Wrapper wrapper = null;
+ protected transient Wrapper wrapper = null;
// ----------------------------------------------- ContainerServlet Methods
appBaseFile = file;
}
if (!appBaseFile.exists()) {
- appBaseFile.mkdirs();
+ if (!appBaseFile.mkdirs()) {
+ writer.println(sm.getString(
+ "hostManagerServlet.appBaseCreateFail",
+ appBaseFile.toString(), name));
+ return;
+ }
}
// Create base for config files
// Copy manager.xml if requested
if (manager) {
+ if (configBaseFile == null) {
+ writer.println(sm.getString(
+ "hostManagerServlet.configBaseCreateFail", name));
+ return;
+ }
InputStream is = null;
OutputStream os = null;
try {
if (installedHost != null) {
configBase = new File(configBase, hostName);
}
- configBase.mkdirs();
+ if (!configBase.exists()) {
+ if (!configBase.mkdirs()) {
+ return null;
+ }
+ }
return configBase;
}
# See the License for the specific language governing permissions and
# limitations under the License.
+hostManagerServlet.appBaseCreateFail=FAIL - Failed to create appBase [{0}] for host [{1}]
+hostManagerServlet.configBaseCreateFail=FAIL - Failed to identify configBase for host [{0}]
hostManagerServlet.noCommand=FAIL - No command was specified
hostManagerServlet.postCommand=FAIL - Tried to use command {0} via a GET request but POST is required
hostManagerServlet.unknownCommand=FAIL - Unknown command {0}