Thanks Vincent, 1/ Tomcat 4.0.3 2/ I have .jar in three places: tomcat/common/lib: aspectjrt-1.0.5.jar cactus-1.4.1.jar cactus-ant-1.4.1.jar commons-httpclient-2.0alpha1-200206 commons-logging.jar httpunit-1.4.1.jar junit.jar servletapi-2.3.jar Tidy.jar xerces.jar xml-apis.jar
[testingdirectory]/WEB-INF/lib: aspectjrt-1.0.5.jar cactus-1.4.1.jar cactus-ant-1.4.1.jar commons-httpclient-2.0alpha1-200206 commons-logging.jar httpunit-1.4.1.jar junit.jar servletapi-2.3.jar Tidy.jar xerces.jar xml-apis.jar the [testingdirectory] only contains the build.xml and it has to contain the .jar files even if they are in the tomcat/common/lib (it is not very clear to me why this is necessary as I don't refer to this lib in my build.xml) [applicationtotest]/WEB-INF/lib: ([applicationtotest]/WEB-INF/classes contains the classes to test and the testing classes I write) appian-asl.jar appian-client.jar classes12.jar commons-beanutils.jar commons-collections.jar commons-digester.jar commons-pool.jar commons-loggin.jar cos.jar i18n.jar jakarta-poi-1.5.1-final-2002061 JTurbo.jar log4j-1.2.6.jar struts.jar xalan.jar xalanservlet.jar xercesImpl.jar xml-apis.jar Now, the PROBLEM DISAPPEARS WHEN I remove the commons-loggin.jar, but this is not an option for me. I hope I was clear enough. Thanks!!! marco <>-----Original Message----- <>From: Vincent Massol [mailto:[EMAIL PROTECTED]] <>Sent: Tuesday, October 15, 2002 5:50 AM <>To: 'Cactus Users List' <>Subject: RE: java.lang.ClassCastException: <>org.apache.commons.logging.impl.LogFactoryImpl: cannot fix it <> <> <>Marco, <> <>1/ What version of Tomcat are you using? <>2/ Where are all your jars located? In tomcat/common/lib? Do you have <>jars in your webapp WEB-INF/lib directory? If so, which ones? <> <>Thanks <>-Vincent <> <>> -----Original Message----- <>> From: Marco Barcella [mailto:[EMAIL PROTECTED]] <>> Sent: 14 October 2002 17:06 <>> To: Cactus Users List <>> Subject: RE: java.lang.ClassCastException: <>> org.apache.commons.logging.impl.LogFactoryImpl: cannot fix it <>> <>> Thanks again, <>> <>> unfortunately I have the same problem. <>> Maybe I am missing some other detail ? <>> Any idea would be very welcome, <>> thanks, <>> marco <>> <>> <>-----Original Message----- <>> <>From: Larry Tambascio [mailto:[EMAIL PROTECTED]] <>> <>Sent: Sunday, October 13, 2002 9:58 PM <>> <>To: 'Cactus Users List' <>> <>Subject: RE: java.lang.ClassCastException: <>> <>org.apache.commons.logging.impl.LogFactoryImpl: cannot fix it <>> <> <>> <> <>> <>Hi Marco, <>> <> <>> <>In your original message, you said that you had the <>commons-logging.jar <>> in <>> <>front of the log4j.jar file. I presume you meant in terms of order. <>> <> <>> <>In my environment, I have the log4j.jar file ahead of commons- <>> logging.jar. <>> <>Could it be that simple?? I noticed in the classpath "how to" on <>> <>the cactus <>> <>web site that log4j is listed after commons-logging. Not sure if <>that's <>> <>intentional. <>> <> <>> <>Try moving the commons-logging.jar file after the log4j.jar file in <>your <>> <>classpath. See if that works, and let's hope there's no strange <>> <>compatibility issue between the commons-logging your project is <>using <>> and <>> <>the one distributed with cactus. <>> <> <>> <>Later, <>> <>-Larry <>> <> <>> <>-----Original Message----- <>> <>From: Marco Barcella [mailto:[EMAIL PROTECTED]] <>> <>Sent: Sunday, October 13, 2002 2:35 PM <>> <>To: Cactus Users List <>> <>Subject: RE: java.lang.ClassCastException: <>> <>org.apache.commons.logging.impl.LogFactoryImpl: cannot fix it <>> <> <>> <> <>> <>Thanks, <>> <> <>> <>I got the new 4.1 .jar files and replaced the 1.4 ones <>> <>in my tomcat/common/lib directory and in the application <>> <>lib. I still get the same exception. Any new thoughts? <>> <>thanks, <>> <>marco <>> <> <>> <><>-----Original Message----- <>> <><>From: Vincent Massol [mailto:[EMAIL PROTECTED]] <>> <><>Sent: Saturday, October 12, 2002 3:59 PM <>> <><>To: 'Cactus Users List' <>> <><>Subject: RE: java.lang.ClassCastException: <>> <><>org.apache.commons.logging.impl.LogFactoryImpl: cannot fix it <>> <><> <>> <><> <>> <><>Hi Marco, <>> <><> <>> <><>Which version of Cactus are you running? I seem to remember there <>was <>> an <>> <><>issue with Cactus 1.4 that was fixed in 1.4.1 WRT to a commons <>logging <>> <><>class cast exception. Could that be it? <>> <><> <>> <><>-Vincent <>> <><> <>> <><>> -----Original Message----- <>> <><>> From: Marco Barcella [mailto:[EMAIL PROTECTED]] <>> <><>> Sent: 11 October 2002 19:12 <>> <><>> To: Cactus Users List <>> <><>> Subject: java.lang.ClassCastException: <>> <><>> org.apache.commons.logging.impl.LogFactoryImpl: cannot fix it <>> <><>> <>> <><>> Hi, <>> <><>> <>> <><>> I had everything running then the application I am testing added <>> <><>> commons-logging.jar <>> <><>> on top of <>> <><>> log4j-1.2.6.jar <>> <><>> I get: <>> <><>> java.lang.ClassCastException: <>> <><>> org.apache.commons.logging.impl.LogFactoryImpl <>> <><>> <>> <><>> I read that I should exclude the package from junit view, so I <>added <>> <><>to <>> <><>> excluded.properties in junit-3.7.jar the following: <>> <><>> <>> <><>> excluded.6=org.apache.commons.logging.* <>> <><>> excluded.7=org.apache.commons.logging.LogFactory.* <>> <><>> <>> <><>> I renamed the file to junit.jar and I replaced junit-3.7.jar <>> <><>everywhere: <>> <><>> tomcat/common/lib <>> <><>> tomcat-ant/lib <>> <><>> application/lib <>> <><>> <>> <><>> I still get the same error!! <>> <><>> <>> <><>> What am I doing wrong, should I do something else? <>> <><>> <>> <><>> Thanks a lot in advance, <>> <><>> marco <>> <><>> <> <>[snip] <> <> <>-- <>To unsubscribe, e-mail: <><mailto:[EMAIL PROTECTED]> <>For additional commands, e-mail: <><mailto:[EMAIL PROTECTED]> <> <> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
