package cn.com.sinosoft.nsscdpac.plug;import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
import org.eclipse.help.internal.appserver.WebappManager;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;import cn.com.sinosoft.nsscdpac.plug.util.NsscdpacUtil;public class Activator extends AbstractUIPlugin { // The plug-in ID
public static final String PLUGIN_ID = "nsscdpac.browser"; // The shared instance
private static Activator plugin;
private boolean _webapp_running = false;
private boolean _webapp_started = false;
private final static String EXAMPLE_WEBAPP_CONTEXT = "NSSCDPAC";

public static boolean ensureWebappRunning()
{
System.out.println(getInstance()._webapp_started);

if (!getInstance()._webapp_started)
{

getInstance()._webapp_started = true; // start the example web app
try
{
WebappManager.start(EXAMPLE_WEBAPP_CONTEXT, PLUGIN_ID,new Path("WebContent"));

}
catch (Exception e)
{
logMessage("The embedded application server could not run example web application.", e);
return false;
}
getInstance()._webapp_running = true; }
return getInstance()._webapp_running;
}
}启动后用浏览器访问不到!
网站无法显示该页面
 
 HTTP 500
 
  
最可能的原因是:
•该网站正在进行维护。
•该网站有程序错误。
 
  
您可以尝试以下操作:
 
  刷新该页面。 
  返回到上一页。 
  详细信息