Hi,

see the lifecycle listeners in your Context :
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html
You receive start Events or Stop Events.

Another issue:
Your problem is because the native library is loaded by the Application 
ClassLoader.
If you can loaded it by the Common ClassLoader, perhaps you won't have this 
problem...
see there:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html

Cheers.

On Thu, 17 Mar 2005 09:22:55 +0100
Thomas Chille <[EMAIL PROTECTED]> wrote:

> Nobody out there who could help me, please?
> 
> Could this this eventuelly be a solution:
> 
> Is it possible to register a class on tomcat wich is listening to
> tomcat startup and then loads the native library? Can i then access
> their native functions from every webapp?
> 
> regards and thanks in advance,
> thomas
> 
> On Wed, 16 Mar 2005 17:01:54 +0100, Thomas Chille
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > in our webapp we are using a native c sytem library. after reloading
> > this webapp via the manager app i step into the following error:
> > 
> > java.lang.UnsatisfiedLinkError: Native Library
> > C:\eclipse3\eclipse\workspace\Phoenix\etc\bin\resmgr.dll already
> > loaded in another classloader
> > 
> > I know that for every webapp would be one classloader used.
> > 
> > 1.
> > Would be different classloaders used for every loaded instance of a webapp?
> > 
> > 2.
> > Could i register a listener to unloading (is this possible in java?)
> > the library if tomcat  unloading the webapp?
> > 
> > I am using tomcat 5.0.29
> > 
> > regards,
> > thomas
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to