You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Alex Karasulu (JIRA)" <ji...@apache.org> on 2006/08/17 23:11:14 UTC

[jira] Assigned: (DIRSERVER-588) ldap server is never shut down, since ldapStarted flag is never set

     [ http://issues.apache.org/jira/browse/DIRSERVER-588?page=all ]

Alex Karasulu reassigned DIRSERVER-588:
---------------------------------------

    Assignee: Alex Karasulu

> ldap server is never shut down, since ldapStarted flag is never set
> -------------------------------------------------------------------
>
>                 Key: DIRSERVER-588
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-588
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: ldap
>    Affects Versions: 1.0-RC1
>         Environment: Don't think it's relevant, but here's the details anyway:
> -Windows XP
> -Java java version "1.5.0_04"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
>            Reporter: George Spalding
>         Assigned To: Alex Karasulu
>            Priority: Minor
>
> Class org.apache.directory.server.jndi.ServerContextFactory
> internally uses a flag ldapStarted (and ldapsStarted which I think suffers of the same problem)
> that probably should be set when ldap is started, otherwise the ldap server will not shut down when in SeverContextFactory.afterShutdown(...)
> I Fixed the code for my purposes and hope you will be able to make use of it:
> In ServerContextFactory.startLDAPS( ServerStartupConfiguration, Hashtable):
> ...
>             chain = ( IoFilterChainBuilder ) Class.forName( "org.apache.directory.server.ssl.LdapsInitializer", true,
>                 ServerContextFactory.class.getClassLoader() ).getMethod( "init", new Class[]
>                 { ServerStartupConfiguration.class } ).invoke( null, new Object[]
>                 { cfg } );
>             ldapsStarted=true;//FIX Geospa added this line
> ...
> In ServerContextFactory.startLDAP0( ServerStartupConfiguration, Hashtable):
> ...
>             tcpAcceptor.bind( new InetSocketAddress( port ), protocolProvider.getHandler(), acceptorCfg );
>             ldapStarted=true;//FIX Geospa added this line
> ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira