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
Type: Bug
Components: ldap
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
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