1 23 24 package com.sun.enterprise.web; 25 26 import com.sun.enterprise.server.ServerContext; 27 import com.sun.appserv.server.ServerLifecycleImpl; 28 import com.sun.appserv.server.ServerLifecycleException; 29 import com.sun.enterprise.instance.InstanceEnvironment; 30 import com.sun.enterprise.security.KeyTool; 31 32 41 public class WebContainerLifecycle extends ServerLifecycleImpl { 42 43 45 58 public void onInitialization(ServerContext sc) 59 throws ServerLifecycleException { 60 61 InstanceEnvironment instance = sc.getInstanceEnvironment(); 63 System.setProperty("catalina.home", instance.getInstancesRoot()); 64 System.setProperty("catalina.base", instance.getInstancesRoot()); 65 System.setProperty("catalina.useNaming", "false"); 66 KeyTool.initProvider(); 68 } 69 70 } 71 | Popular Tags |