JASPIC and classloaders

2020-07-09 Thread Roberto Benedetti
Hello, I'm developing a ServerAuthModule implementation to use a 3rd party identity provider with our web applications. Tomcat version is 9.0.35. The implementation depends on some libraries already packaged with the web applications. To avoid conflicts I tried to configure server.loader in catal

RE: [OT] Querstion about Class.forName() re. ClassLoaders

2013-05-11 Thread Konstantin Preißer
Hi Konstantin, > -Original Message- > From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] > Sent: Saturday, May 11, 2013 2:46 PM > > Nice catch. > But I think it is just a documentation issue. > > I think documentation should be better here: Looking at 7u21, it uses two > different

Re: [OT] Querstion about Class.forName() re. ClassLoaders

2013-05-11 Thread Konstantin Kolinko
2013/5/11 Konstantin Preißer : > Hi Konstantin, > >> -Original Message- >> From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] >> Sent: Friday, May 10, 2013 11:46 PM >> >> Yes, the same. >> >> BTW, Oracle JDKs come with source code for their public classes, On >> Windows that is %JAVA_

RE: [OT] Querstion about Class.forName() re. ClassLoaders

2013-05-10 Thread Konstantin Preißer
Hi Konstantin, > -Original Message- > From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] > Sent: Friday, May 10, 2013 11:46 PM > > Yes, the same. > > BTW, Oracle JDKs come with source code for their public classes, On > Windows that is %JAVA_HOME%/src.zip. Do you have such file? T

Re: [OT] Querstion about Class.forName() re. ClassLoaders

2013-05-10 Thread Konstantin Kolinko
2013/5/10 Konstantin Preißer : > Hi all, > > I apologize for being completely off-topic (this question has nothing to do > with Tomcat), but I thought there may be some guys here that are experts in > class loading and are able to answer my question. > > > You probably know the method java.lang.C

[OT] Querstion about Class.forName() re. ClassLoaders

2013-05-10 Thread Konstantin Preißer
Hi all, I apologize for being completely off-topic (this question has nothing to do with Tomcat), but I thought there may be some guys here that are experts in class loading and are able to answer my question. You probably know the method java.lang.Class.forName(String name) which returns a c

Re: Classloaders in catalina.properties

2011-10-16 Thread Mark Thomas
On 16/10/2011 20:11, spr...@gmx.eu wrote: >> Because, while the functionality remains, it's no longer the default. >> See: >> >> http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html > > Ah ok, thx. > > But why is this no longer documented? Generally, using the shared class loader is

RE: Classloaders in catalina.properties

2011-10-16 Thread spring
> Because, while the functionality remains, it's no longer the default. > See: > > http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html Ah ok, thx. But why is this no longer documented? - To unsubscribe, e-mail: us

Re: Classloaders in catalina.properties

2011-10-15 Thread Pid
On 14/10/2011 17:52, spr...@gmx.eu wrote: > Hi, > > in catalina.properties I can define paths for common, server and shared > loaders. > > Where do I find them here in the docs?: > > http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html > > Here we have only system and common... Beca

Classloaders in catalina.properties

2011-10-14 Thread spring
Hi, in catalina.properties I can define paths for common, server and shared loaders. Where do I find them here in the docs?: http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html Here we have only system and common... Thank you --

RE: Classloaders

2009-05-27 Thread Jon Pearson
PS I tried using a different URL (file:/etc/BlueVueBatch/BVBDatabases/PostgreSQLDatabase.jar) instead of the weirdly formed one below, but I get the same error message. I guess it will load the classes in that JAR either way, but (as I expected), the format of the URL does not make a difference for

RE: Classloaders

2009-05-27 Thread Jon Pearson
> > I'm guessing that: > > * sun.misc.Launcher$ExtClassLoader is the bootstrap class loader > > Not quite - the bootstrap class loader is null; the > ExtClassLoader is the one that looks in the JRE's lib/ext directory. > > > * sun.misc.Launcher$AppClassLoader is the system class loader > > *

RE: Classloaders

2009-05-27 Thread Caldarale, Charles R
> From: Jon Pearson [mailto:jon.pear...@sixnet.com] > Subject: RE: Classloaders > > I'm guessing that: > * sun.misc.Launcher$ExtClassLoader is the bootstrap class loader Not quite - the bootstrap class loader is null; the ExtClassLoader is the one that looks in the JRE

RE: Classloaders

2009-05-27 Thread Jon Pearson
> >> 2. The documentation on classloaders is here: > >> http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html > > > > Thanks, but I've read through that a few times. It describes the > > existing classloader layout but does not describe how to

RE: Classloaders

2009-05-27 Thread Jon Pearson
> > From: Jon Pearson [mailto:jon.pear...@sixnet.com] > > Subject: RE: Classloaders > > > > This is confounding because an ancestor classloader of my > > URLClassLoader that made the classes in my plugin JAR > > available should have access to org.postgre

Re: Classloaders

2009-05-26 Thread Konstantin Kolinko
2009/5/27 Jon Pearson : >> -Original Message- >> From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] >> Sent: Tuesday, May 26, 2009 4:44 PM >> To: Tomcat Users List >> Subject: Re: Classloaders >> >> 1. What tomcat version? > > Tomca

RE: Classloaders

2009-05-26 Thread Caldarale, Charles R
> From: Jon Pearson [mailto:jon.pear...@sixnet.com] > Subject: RE: Classloaders > > This is confounding because an ancestor classloader of my > URLClassLoader that made the classes in my plugin JAR > available should have access to org.postgresql.Driver. > In fact, one o

RE: Classloaders

2009-05-26 Thread Jon Pearson
> -Original Message- > From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] > Sent: Tuesday, May 26, 2009 4:44 PM > To: Tomcat Users List > Subject: Re: Classloaders > > 1. What tomcat version? Tomcat v. 6.0.18, JVM 1.6.0_13, Ubuntu 9.04 on kernel 2.6.28-11 &

Re: Classloaders

2009-05-26 Thread Konstantin Kolinko
s the database module, that > module is unable to actually load the JDBC driver > (org.postgresql.Driver) which is packaged in > WEB-INF/lib/postgresql-8.3-604.jdbc4.jar (I've checked the case of the > path components). > > This is definitely related to classloaders; I trie

Classloaders

2009-05-26 Thread Jon Pearson
) which is packaged in WEB-INF/lib/postgresql-8.3-604.jdbc4.jar (I've checked the case of the path components). This is definitely related to classloaders; I tried placing the database module directly into my WAR file under WEB-INF/classes/package/name/PostgreSQLDatabale.class and it worked. But

Re: classloaders ?

2009-02-27 Thread André Warnier
Caldarale, Charles R wrote: The custom classloader is specified via a element inside your webapp's element: http://tomcat.apache.org/tomcat-6.0-doc/config/loader.html That does shed light on the matter. Clever, these Tomcat guys. May I respectfully suggest that a link to the above page wo

RE: classloaders ?

2009-02-27 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: classloaders ? > > I would (I guess) first attempt to locate the basic > webapp classloader class source of what Tomcat uses > as a generic webapp classloader; then I would either > extend it, or make my own paralle

Re: classloaders ?

2009-02-27 Thread David Smith
André Warnier wrote: > Ken Bowen wrote: >> I think http://en.wikipedia.org/wiki/Java_Classloader was intended >> -- a reasonable starting point, with further references. >> > Thanks all. That was a good starting point. > Still not wanting to delve too deep into internals, but having read this: >

Re: classloaders ?

2009-02-27 Thread André Warnier
Ken Bowen wrote: I think http://en.wikipedia.org/wiki/Java_Classloader was intended -- a reasonable starting point, with further references. Thanks all. That was a good starting point. Still not wanting to delve too deep into internals, but having read this: http://java.sun.com/javase/6/doc

RE: classloaders ?

2009-02-27 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: classloaders ? > > Looks like I'm not the only one to be confused though, > classloaders often are too.. JAR Hell, my my. Not quite as bad as DLL hell, but similar in practice. Don't forget Tomcat&#x

RE: classloaders ?

2009-02-27 Thread Anthony J. Biacco
rvlet class, and then instantiating and initializing it. -Tony From: André Warnier [mailto:a...@ice-sa.com] Sent: Fri 27/02/2009 10:56 To: Tomcat Users List Subject: classloaders ? Hi. I am a superficial browser on this list and tend not to delve to deep into

Re: classloaders ?

2009-02-27 Thread André Warnier
Youssef Mohammed wrote: http://en.wikipedia.org/wiki/Java_Classloadercheck the references over there ... Thanks. That seems a good one. Looks like I'm not the only one to be confused though, classloaders often are too.. JAR Hell,

Re: classloaders ?

2009-02-27 Thread Ken Bowen
kind as to point me to an explanation/tutorial about classloaders ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h.

Re: classloaders ?

2009-02-27 Thread Youssef Mohammed
clue however if this is something Tomcat-specific, > Java-generic, or in-between. > > Since I doubt that the above is all there is to say about it, could someone > thus be as kind as to point me to an explanation/tutorial about classloaders > ? > >

classloaders ?

2009-02-27 Thread André Warnier
ur very own, or rely on Tomcat (?) to provide a standard one. I haven't a clue however if this is something Tomcat-specific, Java-generic, or in-between. Since I doubt that the above is all there is to say about it, could someone thus be as kind as to point me to an explanation/tutorial

RE: Classloaders

2009-02-06 Thread Caldarale, Charles R
> From: Jorge Medina [mailto:jmed...@e-dialog.com] > Subject: Classloaders > > How does this relate to the classloaders -if at all- ? It doesn't. > Would Tomcat create a classloader per each ? > ? or ? Nope. > If I define two s, are they isolated by different >

Classloaders

2009-02-06 Thread Jorge Medina
In server.xml , a may contain multiple elements. Each can define multiple but a single . Each can define multiple s. How does this relate to the classloaders -if at all- ? I couldn't find any reference about it on: http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

Re: Tomcat and ClassLoaders

2008-08-18 Thread pmanvi
libs dir). How can I prevent the webapplication from using > the jars from the ‘root’ application? > > I tried to start the program and tomcat with different classloaders, but > nothing changed. > > > > Regards, > > > > Auke > > > No virus found

Re: Tomcat 6.0 Classloaders

2008-06-17 Thread Ole Ersoy
27;d go to that trouble. Adding classloaders does not improve performance, nor does preventing the Tomcat kernel from seeing certain jars buy you anything. I've been sitting here trying to come up with some hypothetical reasons that might make sense, but after writing them out, they all see

RE: Tomcat 6.0 Classloaders

2008-06-17 Thread Caldarale, Charles R
> From: Ole Ersoy [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 6.0 Classloaders > > common.loader = Tomcat's classes/jars visible to both webapps > and to itself. > server.loader = only tomcat > shared.loader = only webapps Correct. This is how levels prior to 6.0

Re: Tomcat 6.0 Classloaders

2008-06-17 Thread Ole Ersoy
I was wondering whether Tomcat 6.0 still has a classloader for classes that should be globally visible to all webapps only? Not by default. However, you can edit conf/catalina.properties to create any classloader hierarchy you want. So I take it: common.loader = Tomcat's classes/jars visibl

RE: Tomcat 6.0 Classloaders

2008-06-17 Thread Caldarale, Charles R
> From: Ole Ersoy [mailto:[EMAIL PROTECTED] > Subject: Tomcat 6.0 Classloaders > > I was wondering whether Tomcat 6.0 still has a classloader > for classes that should be globally visible to all webapps > only? Not by default. However, you can edit conf/catalina.proper

Tomcat 6.0 Classloaders

2008-06-17 Thread Ole Ersoy
Hi, I was wondering whether Tomcat 6.0 still has a classloader for classes that should be globally visible to all webapps only? I read through the classloader documentation and it seems to be saying that $CATALINA_HOME/lib contains classes that are visible to both Tomcat and the webapps. How

Tomcat and ClassLoaders

2007-11-28 Thread Auke Noppe
classpath(e.g. libs dir). How can I prevent the webapplication from using the jars from the ‘root’ application? I tried to start the program and tomcat with different classloaders, but nothing changed. Regards, Auke No virus found in this outgoing message. Checked by AVG Free Edition

Re: Webapps inexplicably losing access to common/shared classloaders

2006-12-02 Thread David Smith
Caldarale, Charles R wrote: From: David Smith [mailto:[EMAIL PROTECTED] Subject: Re: Webapps inexplicably losing access to common/shared classloaders H. only fixed by a system restart? This sounds like an environment variable is changed during start or stop and the new value is

RE: Webapps inexplicably losing access to common/shared classloaders

2006-12-01 Thread Caldarale, Charles R
> From: David Smith [mailto:[EMAIL PROTECTED] > Subject: Re: Webapps inexplicably losing access to > common/shared classloaders > > H. only fixed by a system restart? This sounds like an > environment variable is changed during start or stop and the > new valu

Re: Webapps inexplicably losing access to common/shared classloaders

2006-12-01 Thread David Smith
Timothy Collett wrote: Now, this seems to happen *every* time I stop and restart Tomcat... I'm somewhat at a loss to see what could be put into a bad state by stopping and restarting Tomcat, but put back in a good state by restarting the computer. Shouldn't everything be cleaned up by stopp

Re: Webapps inexplicably losing access to common/shared classloaders

2006-12-01 Thread Timothy Collett
On Dec 1, 2006, at 10:35 AM, Caldarale, Charles R wrote: Do you have servlet-api.jar in more than one place? It must only be in common/lib, and nowhere else. You can also get the above error if HttpServlet.class is packaged in some other jar. Nope, it's only there. I even unzipped every si

RE: Webapps inexplicably losing access to common/shared classloaders

2006-12-01 Thread Caldarale, Charles R
> From: Timothy Collett [mailto:[EMAIL PROTECTED] > Subject: Re: Webapps inexplicably losing access to > common/shared classloaders > > Dec 1, 2006 8:54:05 AM org.apache.catalina.startup.HostConfig > deployDirectory > SEVERE: Error deploying web application

Re: Webapps inexplicably losing access to common/shared classloaders

2006-12-01 Thread Timothy Collett
classloaders have already opened the libraries of interest. I don't think so...the problem happens right as it tries to load my primary webapp: Dec 1, 2006 8:54:05 AM org.apache.catalina.startup.HostConfig deployDirectory SEVERE: Error deploying web application directory WCMS-O

RE: Webapps inexplicably losing access to common/shared classloaders

2006-12-01 Thread Caldarale, Charles R
> From: Timothy Collett [mailto:[EMAIL PROTECTED] > Subject: Re: Webapps inexplicably losing access to > common/shared classloaders > > I did check, but I don't see how any permissions setup could > possibly create this situation... Agreed, not if this is all happe

Re: Webapps inexplicably losing access to common/shared classloaders

2006-12-01 Thread Timothy Collett
On Dec 1, 2006, at 8:45 AM, Caldarale, Charles R wrote: From: Timothy Collett [mailto:[EMAIL PROTECTED] Subject: Re: Webapps inexplicably losing access to common/shared classloaders Now, this seems to happen *every* time I stop and restart Tomcat... Does anything happen to the access

RE: Webapps inexplicably losing access to common/shared classloaders

2006-12-01 Thread Caldarale, Charles R
> From: Timothy Collett [mailto:[EMAIL PROTECTED] > Subject: Re: Webapps inexplicably losing access to > common/shared classloaders > > Now, this seems to happen *every* time I stop and restart Tomcat... Does anything happen to the access permissions or other security attribute

Re: Webapps inexplicably losing access to common/shared classloaders

2006-12-01 Thread Timothy Collett
Now, this seems to happen *every* time I stop and restart Tomcat... I'm somewhat at a loss to see what could be put into a bad state by stopping and restarting Tomcat, but put back in a good state by restarting the computer. Shouldn't everything be cleaned up by stopping Tomcat, or not cle

Re: Webapps inexplicably losing access to common/shared classloaders

2006-11-21 Thread Timothy Collett
On Nov 20, 2006, at 3:07 PM, Timothy Collett wrote: ...And, just as I suspected it would, it has once again ceased to function in the 5.5.20 container. One webapp can't see the shared classloader (for the MySQL jar), and the other can't see the common classloader (for the servlet-api jar).

Re: Webapps inexplicably losing access to common/shared classloaders

2006-11-16 Thread Timothy Collett
On Nov 15, 2006, at 5:12 PM, Caldarale, Charles R wrote: I hope you're aware that 6.0 is still highly experimental - the fact that it is downloadable has not even been officially announced. You're pretty much on your own with that level at the moment. That said, there is a 6.0.1 at the dow

RE: Webapps inexplicably losing access to common/shared classloaders

2006-11-15 Thread Caldarale, Charles R
> From: Timothy Collett [mailto:[EMAIL PROTECTED] > Subject: Re: Webapps inexplicably losing access to > common/shared classloaders > > Well, it seems to have happened once again, this time in Tomcat > 6.0.0 I hope you're aware that 6.0 is still highly experimenta

Re: Webapps inexplicably losing access to common/shared classloaders

2006-11-15 Thread Timothy Collett
Well, it seems to have happened once again, this time in Tomcat 6.0.0, and it's not even being able to see the MySQL driver when I put the jar in the webapp's WEB-INF/lib folder. Once again, it was working fine before I restarted Tomcat, and afterwards, it was not. I would very much apprec

Webapps inexplicably losing access to common/shared classloaders

2006-11-07 Thread Timothy Collett
Greetings. I have been having a problem recently with webapps losing access to the shared classloader, or, worse, the common classloader. It occurred apparently spontaneously a week ago, and I simply moved to a clean Tomcat container of 5.5.20 (I needed to upgrade anyway). It's been work

Difference in classloaders

2006-06-07 Thread ericp
Hi, I have two questions. I have been working with a stand alone app which finds a properties file this way. This code is in a class, which is bundled in a jar. private static void setupProperties() { InputStream fileReference = ClassLoader.getSystemResourceAsStream(PROPERTIES_FILE); }

webapp references, classloaders and GC (oh my)

2006-02-15 Thread Tim Lucia
I have a question about references held to my webapp from Tomcat. I have observed the behavior below on both Red Had EL V.4, and on WinXP, using Tomcat 5.5, and JDK 1.5. I used JProfiler to trace the allocations. Some background: The environment here is such that we have a shared sandbox for QA,

Re: Classloaders for 'shared' and 'common' cannot load class-data from server?

2006-01-16 Thread Ken Johanson
(StandardWrapper.java:978) . ken -Original Message- From: Ken Johanson [mailto:[EMAIL PROTECTED] Sent: 16 January 2006 22:59 To: Tomcat Users List Subject: Classloaders for 'shared' and 'common' cannot load class-data from server? Hello, I'm building some ut

RE: Classloaders for 'shared' and 'common' cannot load class-data from server?

2006-01-16 Thread Rob Gregory
Obvious question but have you tried placing your required jar in common/endorsed? Regards Rob -Original Message- From: Ken Johanson [mailto:[EMAIL PROTECTED] Sent: 16 January 2006 22:59 To: Tomcat Users List Subject: Classloaders for 'shared' and 'common' cannot

Classloaders for 'shared' and 'common' cannot load class-data from server?

2006-01-16 Thread Ken Johanson
Hello, I'm building some utility wrappers for Tomcat (using 5.0.30 in this case). Since they need to be accessed by all webapps, I'm placing their jars in shared/lib (I also even tried common/lib to resolve the problem below). These jars reference classes in org.apache.catalina.* ('ServerFac

Re: Shared/WebApp ClassLoaders

2005-11-18 Thread Andrés Glez .
ember 18, 2005 11:04 AM Subject: Shared/WebApp ClassLoaders Something strange happened to my tomcat yesterday: I have two webApps which use some shared jars that i put in $TOMCAT_HOME/shared/lib Yesterday i decided to remove the log4j.jar from shared/lib and put it on each webApp WEB-INF/lib dir.

Shared/WebApp ClassLoaders

2005-11-18 Thread Andrés Glez .
Something strange happened to my tomcat yesterday: I have two webApps which use some shared jars that i put in $TOMCAT_HOME/shared/lib Yesterday i decided to remove the log4j.jar from shared/lib and put it on each webApp WEB-INF/lib dir. Log4j works great now, and one of the WebApps also ru