Author: lahiru
Date: Wed Jan 9 20:57:52 2013
New Revision: 1431065
URL: http://svn.apache.org/viewvc?rev=1431065&view=rev
Log:
fixing startup.
Modified:
airavata/trunk/modules/server/src/main/java/org/apache/airavata/server/ServerMain.java
Modified:
airavata/trunk/modules/server/src/main/java/org/apache/airavata/server/ServerMain.java
URL:
http://svn.apache.org/viewvc/airavata/trunk/modules/server/src/main/java/org/apache/airavata/server/ServerMain.java?rev=1431065&r1=1431064&r2=1431065&view=diff
==============================================================================
---
airavata/trunk/modules/server/src/main/java/org/apache/airavata/server/ServerMain.java
(original)
+++
airavata/trunk/modules/server/src/main/java/org/apache/airavata/server/ServerMain.java
Wed Jan 9 20:57:52 2013
@@ -22,6 +22,7 @@ package org.apache.airavata.server;
import java.io.File;
+import org.apache.airavata.common.utils.AiravataUtils;
import org.apache.airavata.common.utils.ServerSettings;
import org.apache.catalina.Wrapper;
import org.apache.catalina.core.StandardContext;
@@ -43,7 +44,7 @@ public class ServerMain {
* This method Starts the Tomcat server.
*/
public void startTomcat() throws Exception {
-
+ AiravataUtils.setExecutionAsServer();
BetterTomcat tomcat = new
BetterTomcat(Integer.parseInt(ServerSettings.getTomcatPort()));
tomcat.addContext("/axis2", System.getenv("AIRAVATA_HOME"));
Wrapper axis2Servlet = tomcat.addServlet("/axis2", "AxisServlet",
"org.apache.axis2.transport.http.AxisServlet");