You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Oren Gross <og...@mercury.co.il> on 2002/07/03 19:46:48 UTC

ExceptionInInitializerError in CactusStrutsTestCase

I am extending CactusStrutsTestCase to test my action in Struts.
Without even referring to anything in my Struts, I am getting the following
errors:
In the JUnit:
java.lang.ExceptionInInitializerError: java.util.MissingResourceException:
Can't find resource for bundle java.util.PropertyResourceBundle, key
cactus.servletRedirectorURL
 
In the console
log4j:ERROR No appenders could be found for category
(com.mercury.topaz.admincenter.app.db.TestDbListAction).
log4j:ERROR Please initialize the log4j system properly.

Any ideas?
TIA

-----------------------------------------------------------------

Oren Gross Java(TM) Developer

Mercury Interactive APM TAC R&D 

+972-3-5399407 ogross@mercury.co.il

 

RE: ExceptionInInitializerError in CactusStrutsTestCase

Posted by Matt Raible <ma...@raibledesigns.com>.
Looks like you need a log4.properties file in your classpath.  See
cactus documentation.

> -----Original Message-----
> From: Oren Gross [mailto:ogross@mercury.co.il] 
> Sent: Wednesday, July 03, 2002 11:47 AM
> To: Junit Users (E-mail); Cactus Users (E-mail); Struts User (E-mail)
> Subject: ExceptionInInitializerError in CactusStrutsTestCase 
> 
> 
> I am extending CactusStrutsTestCase to test my action in 
> Struts. Without even referring to anything in my Struts, I am 
> getting the following
> errors:
> In the JUnit:
> java.lang.ExceptionInInitializerError: 
> java.util.MissingResourceException:
> Can't find resource for bundle 
> java.util.PropertyResourceBundle, key cactus.servletRedirectorURL
>  
> In the console
> log4j:ERROR No appenders could be found for category 
> (com.mercury.topaz.admincenter.app.db.TestDbListAction).
> log4j:ERROR Please initialize the log4j system properly.
> 
> Any ideas?
> TIA
> 
> -----------------------------------------------------------------
> 
> Oren Gross Java(TM) Developer
> 
> Mercury Interactive APM TAC R&D 
> 
> +972-3-5399407 ogross@mercury.co.il
> 
>  
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>