cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: WEB-INF classloading and on the fly compilation
Date Thu, 14 Sep 2000 15:32:30 GMT
Vadim Gritsenko wrote:
> 
> >
> > Now, either am I a complete MORON or JavaC resolves everything using the
> > System classloader, completely ignoring whatever classloader loaded
> > itself? NOTICE: If this is true, we have a bunch of problems basically
> > everywhere we want to do some on-the-fly compilation (tomcat people
> > read: JSP!).
> >
> 
> I took a look into Javac and found that there is no any ClassLoader's used
> or
> Class.forName. It just loads binary class data and processes it (class
> sun.tools.java.BinaryClass, static method load(Environment env,
> DataInputStream in, int mask) throws IOException).
> 
> To find class file, it uses (in this order):
> 
> 1. argument -sysclasspath (or -bootclasspath), or, if it not present, system
> property
> sun.boot.class.path. If property is absent (old java), then it uses property
> java.class.path.
> 
> 2. All .jar's from directories specified with argument -extdirs, or, if not
> present,
> system property java.ext.dirs.
> 
> 3. argument -classpath
> 
> All this take place in class sun.tools.javac.BatchEnvironment, protected
> static method classPaths(...).
> 
> So, in some sence, you are completely right: it fully ignores any
> ClassLoaders.
> 
> Sincerely,
> Vadim

We are in deep shit, then. I'm serious.

All right... need to do something about it.

Stay tuned for more soon.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message