On Tue, 2003-07-01 at 09:42, Vincent Massol wrote: > Sorry, could you explain what the reason was and what you've done to fix > it? Is it the stuff about the root classloader? > > If so, can you please explain to me why it solves it (I'm curious to > know the reason). > > Personally I don't believe we should put anything from the plugin in the > root classloader.
I agree. The 'feature' was solely added as a means to work around the nasty AntClassLoader and it's only necssary with Ant tasks. > If you had to do it, it means that another > incompatible jar was already in the root classloader. Do you know which > one? Maybe it should not have been there? > > Anyway, it's good it is fixed. > Thanks > -Vincent > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: 01 July 2003 15:10 > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED]; > > [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Subject: [jira] Closed: (MAVEN-489) Checkstyle Error - "Got an > exception - > > java.lang.ClassCastException " > > > > Message: > > > > The following issue has been closed. > > > > Resolver: Emmanuel Venisse > > Date: Tue, 1 Jul 2003 8:08 AM > > > > Done. > > --------------------------------------------------------------------- > > View the issue: > > > > http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-489 > > > > > > Here is an overview of the issue: > > --------------------------------------------------------------------- > > Key: MAVEN-489 > > Summary: Checkstyle Error - "Got an exception - > > java.lang.ClassCastException " > > Type: New Feature > > > > Status: Closed > > Priority: Major > > Resolution: FIXED > > > > Time Spent: Unknown > > Estimate: 0 minutes > > > > Project: maven > > Components: > > plugin-other > > Fix Fors: > > 1.0-beta-10 > > Versions: > > 1.0-beta-10 > > > > Assignee: Emmanuel Venisse > > Reporter: Nick Minutello > > > > Created: Sat, 14 Jun 2003 6:05 AM > > Updated: Tue, 1 Jul 2003 8:08 AM > > Environment: JDK1.4.1_01 on Win2K > > > > Description: > > > > I have the latest HEAD build of Maven (built late 13th June GMT) and I > am > > seeing this error 100s of times over in the checkstyle report. > > > > > > Error Line > > Got an exception - java.lang.ClassCastException 0 > > > > > > Mailing list conversations: > > > > On Fri, Jun 13, 2003 at 04:40:44PM +0800, Willie Vu wrote: > > >> > Vincent, > > >> > > > >> > After I changed antlr plugin to use 2.7.2, I run into this > problem: > > >> > > > >> > XXX.java: 0: Got an exception - java.lang.ClassCastException > > >> > > > >> > What is the problem? > > >> > > > >> > Willie > > >> > > > >> > > > >> I think, I've ran into the same problem - and nothing to do with > > >> the new checkstyle jar in my case. You cab check this by looking at > > >> the checkstyle reports in target - they are all right at me. > > >> > > >> The problem is that in my project.xml I'm using the > > >> > > >> <sourceDirectory>${basedir}/src/java</sourceDirectory> > > >> > > >> convention, and in the checkstyle jsl, that formats the raw > checkstyle > > >> report expects the sourceDirectory as a ${baseDir} relative value > (line > > 56): > > >> > > >> <j:set var="fullSrcDir" > > value="${basedir}/${pom.build.sourceDirectory}"/> > > > > >> And the whole jsl processing is went wrog from this, as the > > transformer > > >> would be working with a ${basedir}/ > > ${basedir}/<basedir_relative_filename> > > >> from here. Sometimes it causes exception, sometimes simply wrong. > > >> > > >> A dirty/quick cure to modify project.xml not to use ${basedir} > (altough > > >> if you use reactor you may get troubles with that). I'm thinking > how to > > >> patch the jsl script, just wrote this, maybe more knowledgeable > > jelliers > > >> are faster at fix than I am. > > >> > > >> incze > > > > > > However, my Project.xml uses relative "src/java" and I still have the > same > > problem. > > > > > > > > > > --------------------------------------------------------------------- > > JIRA INFORMATION: > > This message is automatically generated by JIRA. > > > > If you think it was sent incorrectly contact one of the > administrators: > > http://jira.codehaus.org/Administrators.jspa > > > > If you want more information on JIRA, or have a bug to report see: > > http://www.atlassian.com/software/jira > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- jvz. Jason van Zyl [EMAIL PROTECTED] http://tambora.zenplex.org In short, man creates for himself a new religion of a rational and technical order to justify his work and to be justified in it. -- Jacques Ellul, The Technological Society --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
