You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chuck Cavaness <ch...@mediaone.net> on 2002/03/10 21:23:39 UTC

Re: I'm bagging my head on the keyboard on this one: Cannot retrieve definition for form bean PlayerMessageForm

The exception gets thrown from the FormTag in the following code:

  // Look up the form bean definition
  FormBeanConfig formBeanConfig = 
appConfig.findFormBeanConfig(mapping.getName());
  if (formBeanConfig == null) {
        JspException e = new JspException
             (messages.getMessage("formTag.formBean", mapping.getName()));
       pageContext.setAttribute(Action.EXCEPTION_KEY, 
e,  PageContext.REQUEST_SCOPE);
       throw e;
  }

If you look at the code, it seems like the only reason this exception is 
thrown is if it can't find a FormBeanConfig with the name returned by 
mapping.getName(). I would suggest that you turn your debugging levels up 
high and look at the log output. It could be something as simple as a 
ClassPath issue or for some reason, the framework is not able to find or 
load the .class file. I'm sure that you have ruled out a typo between the 
form-bean definition and the value used in the action?

You could also put a few print lines in the FormTag class and recompile. 
That would for sure tell you what's going on.

Just a few thoughts,
Chuck


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