You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Jeff Barrett <jb...@finaplex.com> on 2004/08/19 22:06:03 UTC

Re: "Failed to load test suite" SOLVED

Problem was I was loading the cactus stuff on the commandline java 
invocation of the weblogic server.  It was able to find the 
ServletTestRunner but because it wasn't loaded form within the webapp it 
broke the java security policy by trying to call a method inside a 
webapp from a class outside the webapp.  Duh.

Jeff Barrett wrote:
> Anyone seen this exception before?:
> 
> javax.servlet.ServletException: Failed to load test suite 
> [com.finaplex.fwm.tax.TaxTestCase], Reason is [Failed to invoke 
> suite():java.lang.IllegalAccessException: Class 
> junit.runner.BaseTestRunner can not access a member of class 
> com.finaplex.fwm.tax.TaxTestCase with modifiers "public static"]
>      at 
> org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java:309) 
> 
>      at 
> org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(ServletTestRunner.java:193) 
> 
>      at 
> org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice(ServletTestRunner.java:124) 
> 
>      at 
> org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java) 
> 
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 
> 
> I'm using the latest jars from cactus, 1.6.1.  I'm in weblogic w/ 
> jdk1.4.2.  I'm extending ServletTestCase and hitting it from a browser. 
>  TaxTestCase is a public class.
> 
> Thanks.