junit batch mode problem

I have an issue that arises running junit in batch mode from idea. When I select a class and run all the tests in that class, life is good. When I select a package and run all the tests in that package, I get the following errors in the SAME class that just ran fine.

  • java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager.<init>()V from class ...


This one is strange as CacheManager() is a public method.

  • org.springframework.beans.factory.BeanDefinitionStoreException: Line 10 in XML document from file is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".


This is strange as it runs just fine when you invoke junit by clicking on the class instead of the package.

This leads me to wonder how is running junit in a package different from running junit for just a class and how might I work around these issues?

Any thoughts on how I can get these tests to work?

Thanks!

Matt

-


my setup -



iMac Mini (Intel Core Duo)
IDEA 5.1.1
JDK 1.5.0_06

Please sign in to leave a comment.