[jboss-user] [EJB 3.0] - Re: ant failed.

samwan809 do-not-reply at jboss.com
Sat Jul 18 10:14:52 EDT 2009


I read through Ant Documentation, and come up wtih the followoing solution:


  |   <target name="compile-test">
  |     <javac srcdir="${tst-dir}"
  |            verbose="${TALK}"
  |            includes="/usr/liferay-portal-5.2.3/dev/portlets/calling_card_reg/docroot/WEB-INF/src/com/ip6networks/calling_card_registration/struts/action/*.java"
  |            >
  |       <classpath refid="classpath.test"/>
  |     </javac>
  |   </target>
  | 
  |   <target name="test" depends="compile-test">
  |     <junit>
  |       <classpath refid="classpath.test" />
  |       <formatter type="brief" usefile="false" />
  |       <test name="com.ip6networks.calling_card_registration.test.Client" />
  |     </junit>
  |   </target>
  | 
  |   <target name="clean-compile-test">
  |     <delete verbose="${TALK}">
  |       <fileset dir="${tst-dir}" includes="**/*.class" />
  |     </delete>
  |   </target>
  |   <target name="clean-test" depends="clean-compile-test" />
  | 

But I got the following error again:

  | calling_card_reg # ant test
  | Buildfile: build.xml
  | 
  | compile-test:
  | 
  | test:
  |     [junit] Testsuite: com.ip6networks.calling_card_registration.test.Client
  |     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
  |     [junit] 
  |     [junit] Null Test:  Caused an ERROR
  |     [junit] com.ip6networks.calling_card_registration.test.Client
  |     [junit] java.lang.ClassNotFoundException: com.ip6networks.calling_card_registration.test.Client
  |     [junit]     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  |     [junit]     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  |     [junit]     at java.lang.Class.forName0(Native Method)
  |     [junit]     at java.lang.Class.forName(Class.java:247)
  |     [junit] 
  |     [junit] 
  |     [junit] Test com.ip6networks.calling_card_registration.test.Client FAILED
  | 
  | BUILD SUCCESSFUL
  | Total time: 1 second
  | 
  | 

Thanks
Sam,

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244471#4244471

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244471



More information about the jboss-user mailing list