directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r801269 - /directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
Date Wed, 05 Aug 2009 15:38:04 GMT
Author: kayyagari
Date: Wed Aug  5 15:38:03 2009
New Revision: 801269

URL: http://svn.apache.org/viewvc?rev=801269&view=rev
Log:
fixed an issue related to commented <httpServer> bean in server.xml

Modified:
    directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java

Modified: directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
URL: http://svn.apache.org/viewvc/directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java?rev=801269&r1=801268&r2=801269&view=diff
==============================================================================
--- directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
(original)
+++ directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
Wed Aug  5 15:38:03 2009
@@ -292,9 +292,17 @@
         {
             return;
         }
-        
-        httpServer = ( HttpServer ) factory.getBean( "httpServer" );
-        
+
+        try
+        {
+            httpServer = ( HttpServer ) factory.getBean( "httpServer" );
+        }
+        catch ( Exception e )
+        {
+            LOG.info( "Cannot find any reference to the HTTP Server in the server.xml file
: the server won't be started" );
+            return;
+        }
+
         if( httpServer != null )
         {
             httpServer.start();



Mime
View raw message