tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schmitt, Christian" <>
Subject AW: [C2] C2 and Tomcat 4.0 CVS (Class javax/servlet/http/HttpSer vletRequest violates loader constraints)
Date Fri, 15 Dec 2000 16:59:13 GMT
Hi Craig,
I did some further testing with this strange error.
I've added some debug code to
org.apache.cocoon.components.classloader.RepositoryClassLoader to find out
when the class that's causing the error
(javax.servlet.http.HttpServletRequest) is being loaded. I did find a
difference when running under NT or Linux:

Under Linux HttpServletRequest is loaded near line 120 with the call 'c =

Under NT this call fails and HttpServletRequest gets loaded near line 130
with the call 'c = cl.loadClass(name);'.

Again, under NT everything works just fine, where under Linux I get
'java.lang.LinkageError: Class javax/servlet/http/HttpServletRequest
violates loader constraints' resulting in a major :-((

May be someone knows what's causing this.

Christian Schmitt

> -----Urspr√ľngliche Nachricht-----
> Von: Craig R. McClanahan []
> Gesendet am: Mittwoch, 13. Dezember 2000 17:59
> An:
> Cc:
> Betreff: Re: [C2] C2 and Tomcat 4.0 CVS (Class
> javax/servlet/http/HttpServletRequest violates loader constraints)
> I'm not sure what is causing this either, and the stack trace 
> starts pretty deep
> inside the Cocoon processing hierarchy.  A couple of notes 
> that might help
> investigate:
> * This particular error message appears to be generated by
>   Cocoon, not Tomcat.  I cannot find such an error message text
>   in Tomcat's message files (or Strings in the code).
> * One thing guaranteed to cause problems would be an attempt
>   to load a "javax.servlet.http.HttpServletRequest" class from a
>   JAR file underneath WEB-INF/lib (or from an unpacked class
>   under WEB-INF/classes).  Tomcat disallows such an attempt
>   to override one of the standard API classes.
> Craig McClanahan

View raw message