jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manav Gupta <Manav.Gu...@cramer.com>
Subject RE: FW: Client side configuration problem
Date Fri, 04 Jul 2003 13:54:05 GMT
Hi Fernando,

I modified my build.xml and passed the name of the log4j.properties as a
parameter to the JVM instead of the classpath, and that works for me. Here's
the snippet of my ant script:


<target
    name="runtests">
      <echo message="using cactus.properties =
${basedir}/cactus.properties"/>
      <java classname="testcases.TestSampleServlet" dir="${basedir}/classes"
fork="yes">
        <classpath refid="classpath"/>
        <jvmarg
value="-Dcactus.config=${basedir}/cactus.properties"></jvmarg>
      </java>
</target>

Cheers,
M

> -----Original Message-----
> From: Fernando Duarte Oliveira Castro
> [mailto:fernando@smartprice.com.br]
> Sent: Friday, July 04, 2003 2:49 PM
> To: Cactus Users List
> Subject: Re: FW: Client side configuration problem
> 
> 
> Hello,
> 
> I have the same error:
> 
> "junit.framework.AssertionFailedError: Exception in constructor:
> testConverter
> (org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassCastException"
> 
> How do you resolve it?
> 
> thanks,
> Fernando
> 
> Manav Gupta wrote:
> 
> >Apologies if its a repost, but my message don't seem to reach...
> >
> >
> >Hi,
> >
> >I believe this is one of the several problems that must have 
> been reported
> >in the past related to the classpath issues. I did search 
> archives, found an
> >answer, but am unable to resolve it.
> >
> >My client side classpath is: 
> >CLASSPATH=D:\manav\cramer\Cramer5\Prototype2\classes;c:\jdk1.
> 4.1_03\lib;D:\j
> >akar
> >ta\junit3.8.1\junit.jar;.;D:\manav\cramer\rnd\testSuite\cactu
> s\log4j.propert
> >ies;
> >D:\jakarta\junit3.8.1\junit.jar;D:\jakarta\jakarta-cactus-13-
> 1.4.1\lib\cactu
> >s-1.
> >4.1.jar;D:\jakarta\jakarta-cactus-13-1.4.1\lib\servletapi-2.3
> .jar;D:\jakarta
> >\jak
> >arta-cactus-13-1.4.1\lib\commons-logging-1.0.jar;D:\jakarta\j
> akarta-cactus-1
> >3-1.
> >4.1\lib\log4j-1.2.5.jar;D:\jakarta\jakarta-cactus-13-1.4.1\li
> b\aspectjrt-1.0
> >.5.j
> >ar;D:\jakarta\jakarta-cactus-13-1.4.1\lib\commons-httpclient-
> 2.0alpha1-20020
> >606.
> >jar;D:\manav\cramer\rnd\testSuite\cactus\cactus.properties;
> >
> >But I still get the following exception when i run the swing ui:
> >
> >junit.framework.AssertionFailedError: Exception in constructor:
> >testReadServletOutputStream
> >(org.apache.commons.logging.LogConfigurationException:
> >java.lang.ClassCastException
> >	at
> >org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:506)
> >	at
> >org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
> >	at 
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
> >	at
> >org.apache.cactus.util.JUnitVersionHelper.around146_getTestCa
> seName(JUnitVer
> >sionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1k):1170)
> >	at
> >org.apache.cactus.util.JUnitVersionHelper.getTestCaseName(JUn
> itVersionHelper
> >.java;org/apache/cactus/util/log/LogAspect.aj(1k):103)
> >	at
> >org.apache.cactus.AbstractTestCase.<init>(AbstractTestCase.java:124)
> >	at
> >org.apache.cactus.AbstractWebTestCase.<init>(AbstractWebTestC
> ase.java:86)
> >	at
> >org.apache.cactus.ServletTestCase.<init>(ServletTestCase.java:119)
> >
> >Any ideas what can be done to resolve it? 
> >
> >Thanks,
> >M
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >  
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 
> _____________________________________________________________________
> This e-mail has been scanned for viruses by MCI's Internet 
> Managed Scanning Services - powered by MessageLabs. For 
> further information visit http://www.mci.com
> 

Mime
View raw message