summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-12-06 10:37:51 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-12-06 10:37:51 +0000
commit99009d9dbd36fb73df6aeed8a16cda751a95738f (patch)
treeea368e4daf74df0bff1a71dac7a0ed5a761c0b69
parent6f59e2b8ff7510241f4abb6fbe1f8b158ebeca33 (diff)
Remove now unneeded code and reformat a few lines
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@887660 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java23
1 files changed, 2 insertions, 21 deletions
diff --git a/sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java b/sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java
index 75f925fec5..169848049b 100644
--- a/sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java
+++ b/sca-java-2.x/trunk/distribution/tomcat/tomcat-hook/src/main/java/org/apache/tuscany/sca/tomcat/TuscanyLifecycleListener.java
@@ -20,9 +20,6 @@
package org.apache.tuscany.sca.tomcat;
import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.util.Properties;
import java.util.logging.Logger;
import org.apache.catalina.Container;
@@ -70,19 +67,6 @@ public class TuscanyLifecycleListener implements LifecycleListener {
log.severe("Tuscany disabled as Tuscany webapp not found");
} else {
System.setProperty(TUSCANY_WAR_PROP, webappDir.getAbsolutePath());
- System.setProperty("org.apache.tuscany.sca.contribution.processor.ValidationSchemaExtensionPoint.enabled", "false");
- File propFile = new File(webappDir, "tuscany.properties");
- if (propFile.isFile()) {
- try {
- FileInputStream is = new FileInputStream(propFile);
- Properties props = new Properties();
- props.load(is);
- is.close();
- System.setProperty(TUSCANY_SHARED_PROP, props.getProperty("singleton", "false"));
- } catch (IOException e) {
- // Ignore
- }
- }
log.info("Using Tuscany webapp: " + webappDir.getAbsolutePath());
StandardServer server = (StandardServer)event.getSource();
StandardService catalina = (StandardService)server.findService("Catalina");
@@ -91,11 +75,8 @@ public class TuscanyLifecycleListener implements LifecycleListener {
if (container instanceof StandardHost) {
for (LifecycleListener listener : ((StandardHost)container).findLifecycleListeners()) {
if (listener instanceof HostConfig) {
- ((HostConfig)listener)
- .setContextClass("org.apache.tuscany.sca.tomcat.TuscanyStandardContext");
- log.info("Tuscany enabled on connector: " + container.getName()
- + ":"
- + connector.getPort());
+ ((HostConfig)listener).setContextClass("org.apache.tuscany.sca.tomcat.TuscanyStandardContext");
+ log.info("Tuscany enabled on connector: " + container.getName() + ":" + connector.getPort());
}
}
}