ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "venkata prasad" <prasadeceonl...@gmail.com>
Subject java.lang.ClassNotFoundException" when running junit task
Date Wed, 05 Dec 2007 08:46:34 GMT
Hi All,

I am getting the below error while execting junit task.



Testsuite: BaseServiceCommunicationManagerTest

Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec



           Caused an ERROR

BaseServiceCommunicationManagerTest

java.lang.ClassNotFoundException: BaseServiceCommunicationManagerTest

           at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

           at java.security.AccessController.doPrivileged(Native Method)

           at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

           at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)

           at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

           at java.lang.Class.forName0(Native Method)

           at java.lang.Class.forName(Class.java:164)



Below is the build script.





<project name="testing" default="junit.tool" basedir=".">





 <path id="depends.jar.path">

       <fileset dir="C:\ccviews\build_dynapp-1111\vbocig-dynapp"
includes="**/*.jar"/>

       <fileset dir="./output" includes="DAWS.ear"/>

       <fileset dir="./output" includes="Dynapps.war"/>

       <fileset dir="D:/ERA/tools/junit4.4" includes="junit-4.4.jar"/>



       <fileset dir="D:\bea\weblogic92\server\lib" includes="weblogic.jar
"/>

 </path>



<target name="junit.tool">

<junit  printsummary="yes" showoutput="yes" haltonfailure="true" fork="yes">



  <classpath refid="depends.jar.path"/>

  <formatter type="plain"/>



<batchtest fork="yes" todir="./junit">

           <fileset
dir="./output/DynappsEar/WEB-INF/classes/com/cig/dynapp/test">

                       <include name="
BaseServiceCommunicationManagerTest.class"/>

           </fileset>

  </batchtest>



 </junit>

</target>

</project>



I am running at ant-1.7 and junit-4.4.





Thanks,

Prasad

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message