jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelly C. Goedert" <kelly.goed...@nexxera.com>
Subject Re: Error instantiating class
Date Thu, 26 Aug 2004 14:14:38 GMT
Problem solved....


Kelly C. Goedert wrote:

> I'm trying to run some tests using maven and when I try maven 
> cactus:test I get this error:
>
> Testcase: testFirst took 0.302 sec
>    [cactus]    Caused an ERROR
>    [cactus] Error instantiating class 
> [org.apache.cactus.ServletTestCase([testFirst], 
> [br.com.rgarquivo.persistence.TestSqlMapsConfig])]
>    [cactus] javax.servlet.ServletException: Error instantiating class 
> [org.apache.cactus.ServletTestCase([testFirst], 
> [br.com.rgarquivo.persistence.TestSqlMapsConfig])]
>    [cactus]    at 
> org.apache.cactus.internal.server.AbstractWebTestCaller.getTestClassInstance(AbstractWebTestCaller.java:442)

>
>    [cactus]    at 
> org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:109)

>
>    [cactus]    at 
> org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody0(AbstractWebTestController.java:93)

>
>    [cactus]    at 
> org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_aroundBody1$advice(AbstractWebTestController.java:124)

>
>    [cactus]    at 
> org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(AbstractWebTestController.java)

>
>    [cactus]    at 
> org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(ServletTestRedirector.java:101)

>
>    [cactus]    at 
> org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(ServletTestRedirector.java:124)

>
>    [cactus]    at 
> org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java) 
>
>    [cactus]    at 
> org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletTestRedirector.java:72)

>
>    [cactus]    at 
> org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(ServletTestRedirector.java:124)

>
>    [cactus]    at 
> org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirector.java) 
>
>    [cactus]    at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>    [cactus]    at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>    [cactus]    at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

>
>    [cactus]    at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

>
>    [cactus]    at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 
>
>    [cactus]    at 
> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

>
>
>
> My test class is a JUnit class like this:
>
> public class TestSqlMapsConfig extends TestCase{
>
>    /**
>     * Constructor for SqlMapsConfigTest.
>     * @param name
>     */
>    public TestSqlMapsConfig(String name) {
>        super(name);
>    }
>      public static Test suite(){
>        ServletTestSuite suite = new ServletTestSuite();
>        suite.addTestSuite(TestSqlMapsConfig.class);
>        return suite;
>    }
>      public void testFirst(){
>        assertTrue(true);
>    }
> }
>
> Any ideas?
>
> Kelly
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>


Mime
View raw message