cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch" <blorit...@infoplanning.com>
Subject Re: [TC4] ClassCastException with HttpServletrequestWrapper
Date Fri, 15 Dec 2000 13:49:43 GMT

----- Original Message ----- 
From: "Giacomo Pati" <pati_giacomo@yahoo.com>
To: <cocoon-dev@xml.apache.org>
Sent: Friday, December 15, 2000 3:40 AM
Subject: Re: [TC4] ClassCastException with HttpServletrequestWrapper


> 
> --- Berin Loritsch <bloritsch@infoplanning.com> wrote:
> > 
> > ----- Original Message ----- 
> > From: "Giacomo Pati" <giacomo@apache.org>
> > To: "Cocoon dev" <cocoon-dev@xml.apache.org>
> > Sent: Wednesday, December 13, 2000 6:07 PM
> > Subject: [TC4] ClassCastException with HttpServletrequestWrapper
> > 
> > 
> > > Hi all
> > > 
> > I have been messing with the RepositoryClassLoader adding in logging
> > and such to try and locate where the Sitemap is failing to load on
> > my install of Cocoon on IBM WebSphere.  I found out it is not failing
> > in the RepositoryClassLoader, and it is a mystery where it is
> > failing.
> 
> The fact that the cast from the objectModels request object to the
> servlets request type in the generated code from the
> WildcardURIMatcherFactory *was* working some time ago made me think
> that it can only be a problem with class loading and thus the only
> classloader we have is (IIRC) the RepositoryClassLoader (beside the
> ClassUtils). I'm as you no expert in classloading stuff. I've seen in
> the logs (many thanks again to you, Berin, realizing it) that there are
> many notes that classes couldn't be loaded "normally" and that they are
> loaded from the repository.  I feel that as long as all classes loaded
> by the RepositoryClassloader you are save but as soon as an other
> object steps in (HttpServletRequest in this case) you're in trouble.

Actually this is part of normal operations.  The ClassLoader tries to
load the class internally, if it fails (an exception is caught) then
it will load the class from the repository.

If that was successful, the next log entry should be the number of
bytes loaded from the repository.


Mime
View raw message