mina-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r1085759 - /mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/ServerMain.java
Date Sat, 26 Mar 2011 16:31:08 GMT
Author: ngn
Date: Sat Mar 26 16:31:08 2011
New Revision: 1085759

URL: http://svn.apache.org/viewvc?rev=1085759&view=rev
Log:
Don't swallow exception in main

Modified:
    mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/ServerMain.java

Modified: mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/ServerMain.java
URL: http://svn.apache.org/viewvc/mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/ServerMain.java?rev=1085759&r1=1085758&r2=1085759&view=diff
==============================================================================
--- mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/ServerMain.java
(original)
+++ mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/ServerMain.java
Sat Mar 26 16:31:08 2011
@@ -58,7 +58,7 @@ public class ServerMain {
      * 
      * @param args
      */
-    public static void main(String[] args) throws AccountCreationException, FileNotFoundException
{
+    public static void main(String[] args) throws Exception {
 
         String domain = "vysper.org";
         
@@ -107,12 +107,8 @@ public class ServerMain {
             }
         }
         
-        try {
-            server.start();
-            System.out.println("vysper server is running...");
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
+        server.start();
+        System.out.println("vysper server is running...");
     }
 
     private static List<Module> createModuleInstances(String[] moduleClassNames) {



Mime
View raw message