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/27 02:55:23 UTC
[jira] Closed: (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 closed DIRSERVER-588.
-----------------------------------
Fix Version/s: 1.1.0
1.0-RC4
Resolution: Fixed
For 1.0 changes are here:
http://svn.apache.org/viewvc?view=rev&revision=437262
For 1.1 trunks changes are here:
http://svn.apache.org/viewvc?view=rev&revision=437263
> 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
> Fix For: 1.1.0, 1.0-RC4
>
>
> 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