From bloritsch@infoplanning.com Mon Dec 18 15:12:15 2000 Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 16588 invoked from network); 18 Dec 2000 15:12:15 -0000 Received: from fw.infoplanning.net (HELO infoplanning.com) (@209.8.58.131) by locus.apache.org with SMTP; 18 Dec 2000 15:12:15 -0000 Received: (qmail 23422 invoked from network); 18 Dec 2000 13:27:45 -0000 Received: from unknown (HELO johnnybravo) (192.168.0.189) by inet with SMTP; 18 Dec 2000 13:27:45 -0000 Message-ID: <005401c068f5$c09a0750$bd00a8c0@infoplanning.com> From: "Berin Loritsch" To: , References: Subject: Re: [TC4] ClassCastException with HttpServletrequestWrapper Date: Mon, 18 Dec 2000 08:23:46 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "Stuart Roebuck" To: Sent: Saturday, December 16, 2000 1:34 PM Subject: Re: [TC4] ClassCastException with HttpServletrequestWrapper I've just tried the latest version and seem to have further problems with compiling. Here's a section from the log: If it is not compiling correctly, that leads me to believe that the classpath attribute is not set correctly for your ServletEngine. If you are running Tomcat vs. Catilina, the attribute is different. > ERROR 93630 [cocoon ] (Thread-3): Error compiling sitemap > org.apache.cocoon.components.language.LanguageException: Error compiling > _sitemap_xmap: > Line 22, column 7: Class org.apache.avalon.Configurable not found in import.Line 23, > column 7: Class org.apache.avalon.Configuration not found in import.Line 24, column > 7: Class org.apache.avalon.ConfigurationException not found in import.Line 25, > column 7: Class org.apache.avalon.DefaultConfiguration not found in import.Line 26, > column 7: Class org.apache.avalon.Parameters not found in import.Line 28, column 7: > Class org.apache.regexp.RE not found in import.Line 29, column 7: Class > org.apache.regexp.REProgram not found in import.Line 31, column 7: Class > org.apache.cocoon.Cocoon not found in import.Line 32, column 7: Class > org.apache.cocoon.ProcessingException not found in import.Line 33, column 7: Class > org.apache.cocoon.acting.Action not found in import.Line 34, column 7: Class > org.apache.cocoon.environment.Environment not found in import.Line 35, column 7: > Class org.apache.cocoon.matching.Matcher not found in import.Line 36, column 7: > Class org.apache.cocoon.selection.Selector not found in import.Line 37, column 7: > Class org.apache.cocoon.sitemap.AbstractSitemap not found in import.Line 38, > column 7: Class org.apache.cocoon.sitemap.ComponentHolder not found in import.Line > 39, column 7: Class org.apache.cocoon.sitemap.ResourcePipeline not found in > import.Line 40, column 7: Class org.apache.cocoon.sitemap.Sitemap not found in > import.Line 41, column 7: Class org.apache.cocoon.sitemap.ErrorNotifier not found > in import.Line 42, column 7: Class org.apache.cocoon.sitemap.Manager not found in > import.Line 51, column 35: Superclass org.apache.cocoon.sitemap.AbstractSitemap > of class > _Users._stuart._OpenSource._build._tomcat_4_0._webapps._cocoon._sitemap_xmap > not found. > This is trying to view the standard welcome page of the standard cocoon webapp, under Tomcat - latest CVS. Stuart. On Friday, December 15, 2000, at 06:00 PM, Berin Loritsch wrote: > ----- Original Message ----- > From: "Giacomo Pati" > To: "Berin Loritsch" > Sent: Friday, December 15, 2000 12:02 PM > Subject: Re: [TC4] ClassCastException with HttpServletrequestWrapper > > > > Hi Berin > > > > Berin Loritsch wrote: > > > > > > > > > > > Hi all > > > > > > > > > > > > > Oh yeah! I almost forgot: if the RepositoryClassManager is not a > > > > > child > > > > > classloader (i.e. has a parent classloader) then objects created by > > > > > the > > > > > RepositoryClassManager cannot resolve against objects created in the > > > > > other class manager. > > > > > > > > Prior to my mail I've checked the CVS and there was a change from Pier > > > > in September making the WEB-APP-Classloader the parent of > > > > Rep.Classloader in its constructor: > > > > > > > > public RepositoryClassLoader() { > > > > super(RepositoryClassLoader.class.getClassLoader()); <--- > > > > this.repositories = new Vector(); > > > > } > > > > > > > > Now I have a strange experience using a jdk 1.3 on a NT box with a C2 > > > > and a Tomcat-4 about a week old with the WildcardURIMatcher changed to > > > > cast to HttpServlerRequest instead and guess what - it runs ??!!?? > > > > > > > > Well now I have to check my jdk 1.3 on my linux box at home and also > > > > test it against the jdk 1.2.2 to see if it's might be a bug in the jdk. > > > > I must have done something wrong. It is not working. Not with jdk1.2.2 > > nor with jdk1.3 (Linux both from Sun) > > Try the latest CVS now. I committed a change to make RepositoryClassLoader > extend URLClassLoader instead of ClassLoader. It's even faster than the > former version! We don't have to worry about maintaining our different > paths etc. It is a very simple class. > > ------------------------------------------------------------------------- Stuart Roebuck stuart.roebuck@adolos.com Lead Developer Mac OS X, Java, XML, etc. ADOLOS http://www.adolos.com/=