directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r582428 - /directory/installers/branches/bigbang/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
Date Fri, 05 Oct 2007 23:51:02 GMT
Author: djencks
Date: Fri Oct  5 16:51:01 2007
New Revision: 582428

URL: http://svn.apache.org/viewvc?rev=582428&view=rev
Log:
Not sure why the old version doesn't work but with this change the server starts

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

Modified: directory/installers/branches/bigbang/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
URL: http://svn.apache.org/viewvc/directory/installers/branches/bigbang/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java?rev=582428&r1=582427&r2=582428&view=diff
==============================================================================
--- directory/installers/branches/bigbang/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
(original)
+++ directory/installers/branches/bigbang/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
Fri Oct  5 16:51:01 2007
@@ -26,7 +26,7 @@
 import org.apache.directory.server.core.configuration.ShutdownConfiguration;
 import org.apache.directory.server.core.configuration.SyncConfiguration;
 import org.apache.directory.server.jndi.ServerContextFactory;
-import org.apache.xbean.spring.context.ClassPathXmlApplicationContext;
+import org.apache.xbean.spring.context.FileSystemXmlApplicationContext;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.context.ApplicationContext;
@@ -70,8 +70,7 @@
         if ( args.length > 0 && new File( args[0] ).exists() ) // hack that takes
server.xml file argument
         {
             log.info( "server: loading settings from ", args[0] );
-            ApplicationContext factory = null;
-            factory = new ClassPathXmlApplicationContext( new File( args[0] ).toURI().toURL().toString()
);
+            ApplicationContext factory = new FileSystemXmlApplicationContext( new File( args[0]
).toURI().toURL().toString() );
             cfg = ( MutableServerStartupConfiguration ) factory.getBean( "configuration"
);
             env = ( Properties ) factory.getBean( "environment" );
         }



Mime
View raw message