webwork/src/main/webwork/action/factory ActionFactory.java,1.17,1.18

[email protected] Sat, 01 Nov 2003 19:30:21 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/main/webwork/action/factory
In directory sc8-pr-cvs1:/tmp/cvs-serv25112/src/main/webwork/action/factory

Modified Files:
	ActionFactory.java 
Log Message:
Show stacktrace when we can't create the action factory

Index: ActionFactory.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/action/factory/ActionFactory.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- ActionFactory.java	24 Jun 2003 04:24:35 -0000	1.17
+++ ActionFactory.java	2 Nov 2003 03:30:19 -0000	1.18
@@ -39,12 +39,12 @@
             defaultActionFactory = (ActionFactory)ClassLoaderUtils.loadClass(className, ActionFactory.class).newInstance();
          } catch (Exception e)
          {
-             LogFactory.getLog(ActionFactory.class).error("Could not instantiate action factory:"+e);
+             LogFactory.getLog(ActionFactory.class).error("Could not instantiate action factory:", e);
              defaultActionFactory = new DefaultActionFactory();
          }
       } catch (IllegalArgumentException ex)
       {
-         LogFactory.getLog(ActionFactory.class).error("Could not instantiate configuration:"+ex);
+         LogFactory.getLog(ActionFactory.class).error("Could not instantiate configuration:", ex);
          defaultActionFactory = new DefaultActionFactory();
       }
 




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/