• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Running cactus test cases in WSAD 5

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am trying to run cactus test cases in WSAD 5.0 as a java application. I am trying to use Junit Swing Test Runner to run the client side test cases.
Initially i was getting a LogConfigurationException concerning commons.logging package.
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassCastException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:505)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:340)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)

Since i did'nt want logging to be enabled, I have amended the excluded.properties in the JUnit.jar file to reflect as follows.
excluded.0=sun.*
excluded.1=com.sun.*
excluded.2=org.omg.*
excluded.3=javax.*
excluded.4=sunw.*
excluded.5=org.apache.commons.logging.*
excluded.6=java.*
This has now introduced the following error while running the test runner.
Error:java.lang.SecurityException Prohibited package name java.lang
I have removed the last line in the excluded.properties file (excluded.6=java.*) but this does not get reflected and i am still getting the same error.
I have replaced the WSAD junit .jar with the amended junit.jar file. Also i have added this file to my java client project.
What am i doing wrong. Why are my cactus test not running?
Thanks in advance,
Priya
 
author
Posts: 181
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WAS ships with common-logging. There is probably a version difference. Remove the common-loggings jar from your app. If that does not work, use the PARENTLAST option for classloading policy.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic