Commits

tmjee  committed 3f16b9f

Issue number: ww-990

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@682e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits e57fc21

Comments (0)

Files changed (3)

File src/java/com/opensymphony/xwork/config/providers/XmlConfigurationProvider.java

         try {
             return ObjectFactory.getObjectFactory().getClassInstance(className);
         } catch (ClassNotFoundException e) {
-            LOG.error("Result class [" + className + "] doesn't exist (ClassNotFoundException), ignoring");
+            LOG.error("Result class [" + className + "] doesn't exist (ClassNotFoundException), ignoring", e);
         } catch (NoClassDefFoundError e) {
-            LOG.error("Result class [" + className + "] doesn't exist (NoClassDefFoundError), ignoring");
+            LOG.error("Result class [" + className + "] doesn't exist (NoClassDefFoundError), ignoring", e);
         }
 
         return null;

File src/java/com/opensymphony/xwork/xwork-messages.properties

 xwork.error.action.execution=Error during Action invocation
-xwork.exception.missing-action=There is no Action mapped for action name {0}
-xwork.exception.missing-package-action=There is no Action mapped for namespace {0} and action name {1}
+xwork.exception.missing-action=There is no Action mapped for action name {0}. Check if there is such an action name defined in xwork.xml and also if the such an action class exists. Check also the log to see if the action class is successfully loaded.
+xwork.exception.missing-package-action=There is no Action mapped for namespace {0} and action name {1}. Check if there is such an action name with such namespace defined in the xwork.xml and also if such an action class exists. Check also the log to see if the action class is successfully loaded.
 xwork.default.invalid.fieldvalue=Invalid field value for field "{0}".
 

File src/test/com/opensymphony/xwork/util/LocalizedTextUtilTest.java

             String message = LocalizedTextUtil.findDefaultText(XWorkMessages.MISSING_ACTION_EXCEPTION, Locale.getDefault(), new String[]{
                     "AddUser"
             });
-            assertEquals("There is no Action mapped for action name AddUser", message);
+            assertEquals("There is no Action mapped for action name AddUser. Check if there is such an action name defined in xwork.xml and also if the such an action class exists. Check also the log to see if the action class is successfully loaded.", message);
         } catch (MissingResourceException e) {
             e.printStackTrace();
             fail();
             String message = LocalizedTextUtil.findDefaultText(XWorkMessages.MISSING_PACKAGE_ACTION_EXCEPTION, Locale.getDefault(), new String[]{
                     "blah", "AddUser"
             });
-            assertEquals("There is no Action mapped for namespace blah and action name AddUser", message);
+            assertEquals("There is no Action mapped for namespace blah and action name AddUser. Check if there is such an action name with such namespace defined in the xwork.xml and also if such an action class exists. Check also the log to see if the action class is successfully loaded.", message);
         } catch (MissingResourceException e) {
             e.printStackTrace();
             fail();