HI Vincent,
I feel like hitting myself. Of course, it works after that change :-)
Another problem though :-s and this one doesn't seem to make any sense to
me. I now get the following exception:
org.apache.cactus.util.ChainedRuntimeException: Missing Cactus property
[cactus.contextURL]
at
org.apache.cactus.util.Configuration.getContextURL(Configuration.java:185)
at
org.apache.cactus.util.ServletConfiguration.getServletRedirectorURL(ServletC
onfiguration.java:94)
at
org.apache.cactus.client.ServletHttpClient.getRedirectorURL(ServletHttpClien
t.java:87)
at
org.apache.cactus.client.AbstractHttpClient.callRunTest(AbstractHttpClient.j
ava;org/apache/cactus/util/log/LogAspect.aj(1k):184)
at
org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest(AbstractHttpCli
ent.java;org/apache/cactus/util/log/LogAspect.aj(1k):109)
at
org.apache.cactus.client.AbstractHttpClient.around2_doTest(AbstractHttpClien
t.java;org/apache/cactus/util/log/LogAspect.aj(1k):1218)
at
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java;o
rg/apache/cactus/util/log/LogAspect.aj(1k):104)
at
org.apache.cactus.AbstractWebTestCase.runGenericTest(AbstractWebTestCase.jav
a:260)
at
org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133)
at
org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:195)
So, of course I have to have a 'cactus.properties' file in my classpath,
that should have that property defined, right? Here is what I have in my
classpath in Ant:
<path id="classpath">
<pathelement location="C:\j2sdk1.4.1_02\jre\lib\rt.jar"/>
<pathelement location="C:\j2sdk1.4.1_02\jre\lib\i18n.jar"/>
<pathelement location="C:\j2sdk1.4.1_02\jre\lib\sunrsasign.jar"/>
<pathelement location="C:\j2sdk1.4.1_02\jre\lib\jsse.jar"/>
<pathelement location="C:\j2sdk1.4.1_02\jre\lib\jce.jar"/>
<pathelement location="C:\j2sdk1.4.1_02\jre\lib\charsets.jar"/>
<pathelement location="C:\j2sdk1.4.1_02\jre\classes"/>
<pathelement location="${compile.outdir}"/>
<pathelement location="${jdev.home}/jdev/lib/jdev-rt.jar"/>
<pathelement location="${junit.dir}/${junit.jar}"/>
<pathelement location="${cactus.lib.dir}/${servletapi-2.3.jar}"/>
<pathelement location="${basedir}/cactus.properties"/>
<pathelement location="${cactus.lib.dir}/${cactus.jar}"/>
<pathelement location="${cactus.lib.dir}/${aspectjrt.jar}"/>
<pathelement location="${cactus.lib.dir}/${commons.logging.jar}"/>
<pathelement location="${cactus.lib.dir}/${log4j.jar}"/>
<pathelement location="${basedir}/${log4j.prop}"/>
<pathelement location="${cactus.lib.dir}/${commons.httpclient.jar}"/>
</path>
There, its sitting right there in the classpath. And this is how i'm calling
it in the Ant target:
<target
name="runtests">
<echo message="using cactus.properties =
${basedir}/cactus.properties"/>
<java classname="testcases.TestSampleServlet" dir="${basedir}/classes"
fork="yes">
<classpath refid="classpath"/>
</java>
</target>
And this is what the cactus.properties contains:
cactus.contextURL = http://localhost:8080/testSuite
What am i missing now? :-s
Thanks,
M
> -----Original Message-----
> From: Vincent Massol [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 03, 2003 7:27 PM
> To: 'Cactus Users List'
> Subject: RE: Client side configuration problem
>
>
> Hi Manav,
>
> You failed to look in the most common place of all... the FAQ... :-)
>
> http://jakarta.apache.org/cactus/faq.html#faq8
>
> -Vincent
>
> > -----Original Message-----
> > From: Manav Gupta [mailto:[EMAIL PROTECTED]
> > Sent: 03 July 2003 18:55
> > To: '[EMAIL PROTECTED]'
> > Subject: Client side configuration problem
> >
> > 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\cactus
> \log4j.pro
> pe
> > rt
> > 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\jakarta-
> > cactus-1
> > 3-1.
> >
> 4.1\lib\log4j-1.2.5.jar;D:\jakarta\jakarta-cactus-13-1.4.1\lib
> \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_getTestCas
> eName(JUni
> tV
> > er
> > sionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1k):1170)
> > at
> >
> org.apache.cactus.util.JUnitVersionHelper.getTestCaseName(JUni
> tVersionHe
> lp
> > er
> > .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>(AbstractWebTestCa
> se.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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> _____________________________________________________________________
> 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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]