You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by dj...@apache.org on 2007/10/06 01:51:02 UTC

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

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" );
         }



Re: svn commit: r582428 - /directory/installers/branches/bigbang/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java

Posted by Alex Karasulu <ak...@apache.org>.
David this was working for me with the XBean stuff.  You just disabled the
use of XBean no?

Alex

On 10/5/07, djencks@apache.org <dj...@apache.org> wrote:
>
> 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" );
>          }
>
>
>