-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greg,

On 5/20/2009 6:50 AM, Greg Allen wrote:
> However, that exposes a timing issue which I'm not sure how to solve.  
> 
> I embedded ApacheDS in my web application by implementing
> ServletContextListener 
> so that it starts on contextInitialized and stops on contextDestroyed -
> when my 
> web application starts and stops..

Heh, that's kind of expected. Are you asking a web application to
authenticate to itself? That's an interesting strategy.

> The problem now is that the application doesn't start until after the
> the context.xml is processed by Tomcat. This ends up with me getting
> errors like this, and my application isn't deployed:
> 
>      [java] 06:15:14,799 WARN  [[/test]] Exception performing
> authentication
>      [java] javax.naming.CommunicationException: localhost:10389 [Root
> exception is java.net.ConnectException: Connection refused: connect]

You're going to want to connect to a separate service (i.e. one not
hosted in your own webapp). You can still run ApacheDS on Tomcat under a
different webapp. And no, you can't specify which webapp gets loaded
first. :(

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkoVi7oACgkQ9CaO5/Lv0PAfpwCfVldHoyP3do5HE3VH94kRHsUo
uJMAniIqD3NViaXFQYNfsa4dnOACLodz
=sR9+
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to