jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lenz <cml...@gmx.de>
Subject Re: Client side configuration problem
Date Fri, 04 Jul 2003 11:16:32 GMT
Manav Gupta wrote:
> HI Vincent, 
> 
> I feel like hitting myself. Of course, it works after that change :-)

[snip]

> 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"/>

That shouldn't be necessary

>       <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"/>

Replace that with

         <pathelement location="${basedir}"/>

>       <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}"/>

Same as above (and of course, you only need that once).

-chris

>       <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


Mime
View raw message