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: Client side configuration problem
Date Fri, 04 Jul 2003 14:30:52 GMT
> >    <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
I know :-).. I was experimenting with the ant files generated by JDeveloper,
and this is JDev's doing. 
> 

[snip] 
> 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
I did that. But when I run the tests, I get the following error:

     [java] java.lang.NoClassDefFoundError:
org/apache/cactus/ServletTestCase
     [java]     at java.lang.ClassLoader.defineClass0(Native Method)
     [java]     at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
     [java]     at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
     [java]     at
java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
     [java]     at
java.net.URLClassLoader.access$100(URLClassLoader.java:54)
     [java]     at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
     [java]     at java.security.AccessController.doPrivileged(Native
Method)
     [java]     at
java.net.URLClassLoader.findClass(URLClassLoader.java:186)
     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
     [java]     at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)

Reproduced below is the ant java task for running the tests:

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

Perhaps, I need to modify this in any way as well?

Cheers,
M

Mime
View raw message