Re: ClassNotFoundException: While running the test case using <cactus> task

Nandan <[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <[email protected]>
This issue has been resolved, I have used <classpath> attribute to specify
the local test classes.


Nandan wrote:
> 
> Hi 
>  I am facing the following issues while testing a Portal application - At
> present i have created a Servlet test case to test one of the servlet in
> the application 
>  
> First i have manually modified the application and I could run the cactus
> test case from the browser using the following url,
>   
>  
> http://localhost:7001/<<AppName>>/ServletTestRunner?suite=<<TestCase>>
> &transform=yes
>  
>  But I need to automate the entire test. For that I have decided to use
> <cactus> ant task.  First I cactified the ear and called the <cactus> task
> to run the tests. I have used <containerset> and  <batchtest> to invoke
> the weblogic container and run the test cases respectively.
>  The error which I have got is as follows,
>  test:
>     [cactus] Testsuite: BTrackingTestCase
>     [cactus] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>  
>     [cactus] Null Test:  Caused an ERROR
>     [cactus] BTrackingTestCase
>     [cactus] java.lang.ClassNotFoundException: BTrackingTestCase
>     [cactus]     at
>  java.net.URLClassLoader$1.run(URLClassLoader.java:199)
>     [cactus]     at java.security.AccessController.doPrivileged(Native
>  Method)
>     [cactus]     at
>  java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>     [cactus]     at
>  java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>     [cactus]     at
>  java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>     [cactus]     at
>  java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>     [cactus]     at
>  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>  
>     [cactus]     at java.lang.Class.forName0(Native Method)
>     [cactus]     at java.lang.Class.forName(Class.java:219)
>     [cactus]     at
>  org.apache.cactus.integration.ant.CactusTask.execute(CactusTa
>  sk.java:148)
>     [cactus] TEST BTrackingTestCase FAILED
>  [junitreport] Using Xalan version: Xalan Java 2.4.1
>  [junitreport] Transform time: 328ms
>  
>  BUILD FAILED
>  Then , I have manually deployed the cactyfied ear and set the
> 'cactus.contextURL' in the system classpath and removed <containerset>
> from the build.xml . Still I am getting the same error. 
> 
>  Could you please give some suggestion to resolve this issue. -Thanks
>  Many Thanks,
> 

-- 
View this message in context: http://www.nabble.com/ClassNotFoundException%3A-While-running-the-test-case-using-%3Ccactus%3E-task-tf2891982.html#a8088421
Sent from the Cactus - User mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.