tomcat-users mailing list archives

Hi, Andreas.
A bit off-topic (this goes into native programming), but there is something
whirling through my head:
Static classes/members are instantiated once. But what happens if multiple
classloaders are used? Such as you have this one class static but use it in
several web applications?
Seems like it MUST reside in common/lib instead of webapp/*/web-inf/lib?
Hiran
> -----Ursprüngliche Nachricht-----
> Von: Andreas Hirner [mailto:andreas@projektinter.net]
> Gesendet: Dienstag, 25. Juni 2002 13:14
> An: Tomcat Users List; reitinger.franz@utanet.at
> Betreff: Re: Native library cannot be loaded twice
>
>
> Hallo Franz,
>
>
> > Concerning the JDK documentation a native lib should be loaded in a
> static
> > scope. Static resources are processed differently, because the
> runtime
> > systems has to initialize all static resources at the beginning.
> After that
> > the runtime system tries to initialize objects and these objects
> can - of
> > course - use all static resources.
> >
> > A look into your code (InitMapserver) shows, that the runtime system
> cannot
> > initialize the static resource in the common way, because it first
> must
> > generate an object and this object contains code for doing some
> static
> > stuff. Maybe this is the reason for the strange behavior.
>
> I am sorry, but I am not a skilled Java Programmer and I don't quite
> understand what you mean. Can you try to explain it more explicitly or
> give some examples. I hope I am not asking to much....
>
> Thanks Andreas
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>