Skip to content
Browse files

revert changes to IsolatedTomcat class

  • Loading branch information...
1 parent 2fb0491 commit 2f68191ac888a25e06df6fb7d3c2ac3c25158fbf @graemerocher graemerocher committed Feb 8, 2012
View
10 grails-plugin-tomcat/src/main/groovy/org/grails/plugins/tomcat/IsolatedTomcat.java
@@ -15,7 +15,6 @@
*/
package org.grails.plugins.tomcat;
-import grails.build.logging.GrailsConsole;
import org.apache.catalina.LifecycleException;
import org.apache.catalina.connector.Connector;
import org.apache.catalina.startup.Tomcat;
@@ -62,7 +61,7 @@ public static void main(String[] args) {
tomcat.setPort(port);
if (Boolean.getBoolean("tomcat.nio")) {
- GrailsConsole.getInstance().addStatus("Enabling Tomcat NIO Connector");
+ System.out.println("Enabling Tomcat NIO Connector");
Connector connector = new Connector(Http11NioProtocol.class.getName());
connector.setPort(port);
tomcat.getService().addConnector(connector);
@@ -74,7 +73,7 @@ public static void main(String[] args) {
tomcat.addWebapp(contextPath, warPath);
} catch (ServletException e) {
e.printStackTrace();
- GrailsConsole.getInstance().error("Error loading Tomcat: " + e.getMessage());
+ System.err.println("Error loading Tomcat: " + e.getMessage());
System.exit(1);
}
tomcat.enableNaming();
@@ -135,9 +134,10 @@ public void run() {
try {
tomcat.start();
String message = "Server running. Browse to http://"+(host != null ? host : "localhost")+":"+port+contextPath;
- GrailsConsole.getInstance().addStatus(message);
+ System.out.println(message);
} catch (LifecycleException e) {
- GrailsConsole.getInstance().error("Error loading Tomcat: " + e.getMessage(), e);
+ e.printStackTrace(System.err);
+ System.err.println("Error loading Tomcat: " + e.getMessage());
System.exit(1);
}
}

0 comments on commit 2f68191

Please sign in to comment.
Something went wrong with that request. Please try again.