try
{
String fileName = event.getName();
File toFile = new File(webAppDir, fileName);
String contextName = fileName.substring(0, fileName.length() - 4); // strip ".war"
new JetspeedDeploy(event.getPath(), toFile.getAbsolutePath(), contextName, stripLoggers);
event.setStatus(DeploymentStatus.STATUS_OKAY);
}
catch (Exception e)
{
throw new DeploymentException(e);