RE: I'm bagging my head on the keyboard on this one: Cannot retrieve definition for form bean PlayerMessageForm
Is this a typo or maybe the problem: -- snip -- .. form-beans type=org.apache.struts.action.ActionFormBean form-bean name=playerMessageForm ype=com.dceg.webapps.messaging.PlayerMessageForm / /form-beans .. You'll notice that you have ype not type. My names' not Syntax Error for nothing! -Original Message- From: Kevin J. Turner [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 10, 2002 12:57 PM To: Struts Users Mailing List Subject: I'm bagging my head on the keyboard on this one: Cannot retrieve definition for form bean PlayerMessageForm I'm getting this error message: Cannot retrieve definition for form bean PlayerMessageForm (PlayerMessageForm is a form bean in my project) Here is that path I am following (struts-config entries to follow: 1) (other actions.. omitted for brevity) 2) /messageTypePRE.do, which forwards to... 3) /messaging/start.jsp, which submits to 4) /messageTypePOST.do, which forwards to... 5) /playerListPRE.do, which forwards to... 6) /messaging/playerList.jsp, where I get the error message I know for a fact that the action playerListPRE.do does complete its processing. I verified this with the debugger and also with System.out statements. Its when it tries to load the JSP page, player_list.jsp. that it craps out. Even with the following bare- bones version of player_list.jsp: -- snip -- body html:form action=/editMessage.do /html:form /body -- snip -- I have the following mappings (among others) in my struts-config.xml file: -- snip -- .. form-beans type=org.apache.struts.action.ActionFormBean form-bean name=playerMessageForm ype=com.dceg.webapps.messaging.PlayerMessageForm / /form-beans .. action path=/messageTypesPOST type=com.dceg.webapps.messaging.MessageTypeAction name=playerMessageForm scope=request parameter=POST validate=false forward name=allPlayers path=/allPlayers.do / forward name=playerList path=/playerListPRE.do / forward name=gameTypes path=/gameTypesPRE.do / /action action path=/playerListPRE type=com.dceg.webapps.messaging.PlayerListAction name=playerMessageForm scope=request validate=false parameter=PRE forward name=next path=/messaging/player_list.jsp/ /action -- snip -- So what is causing Cannot retrieve definition for form bean PlayerMessageForm error??? Anyone? -- Kevin J. Turner / dot com Entertainment Group 150 Randall Street, Oakville, Ontario L6J 1P4 telephone: 905.337.8524 fax: 905.337.8630 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: I'm bagging my head on the keyboard on this one: Cannot retrieve definition for form bean PlayerMessageForm
On Sun, 10 Mar 2002 13:29:01 -0600, Chris Means wrote: Is this a typo or maybe the problem: -- snip -- .. form-beans type=org.apache.struts.action.ActionFormBean form-bean name=playerMessageForm ype=com.dceg.webapps.messaging.PlayerMessageForm / /form-beans .. You'll notice that you have ype not type. My names' not Syntax Error for nothing! No that was just from evidently bad cutting-n-pasting. It *does* have type :P -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: I'm bagging my head on the keyboard on this one: Cannot retrieve definition for form bean PlayerMessageForm
Hi The problem should be in your mapping for the editMessage action, since that is what the form refers to. Since the error message has PlayerMessageForm with a capital 'P' and the name in the struts-config for the bean is playerMessageForm with a 'p', you might have that misspelling in the editMessage mapping. Regards. At 13:57 2002-03-10 -0500, you wrote: I'm getting this error message: Cannot retrieve definition for form bean PlayerMessageForm (PlayerMessageForm is a form bean in my project) Here is that path I am following (struts-config entries to follow: 1) (other actions.. omitted for brevity) 2) /messageTypePRE.do, which forwards to... 3) /messaging/start.jsp, which submits to 4) /messageTypePOST.do, which forwards to... 5) /playerListPRE.do, which forwards to... 6) /messaging/playerList.jsp, where I get the error message I know for a fact that the action playerListPRE.do does complete its processing. I verified this with the debugger and also with System.out statements. Its when it tries to load the JSP page, player_list.jsp. that it craps out. Even with the following bare- bones version of player_list.jsp: -- snip -- body html:form action=/editMessage.do /html:form /body -- snip -- I have the following mappings (among others) in my struts-config.xml file: -- snip -- .. form-beans type=org.apache.struts.action.ActionFormBean form-bean name=playerMessageForm ype=com.dceg.webapps.messaging.PlayerMessageForm / /form-beans .. action path=/messageTypesPOST type=com.dceg.webapps.messaging.MessageTypeAction name=playerMessageForm scope=request parameter=POST validate=false forward name=allPlayers path=/allPlayers.do / forward name=playerList path=/playerListPRE.do / forward name=gameTypes path=/gameTypesPRE.do / /action action path=/playerListPRE type=com.dceg.webapps.messaging.PlayerListAction name=playerMessageForm scope=request validate=false parameter=PRE forward name=next path=/messaging/player_list.jsp/ /action -- snip -- So what is causing Cannot retrieve definition for form bean PlayerMessageForm error??? Anyone? -- Kevin J. Turner / dot com Entertainment Group 150 Randall Street, Oakville, Ontario L6J 1P4 telephone: 905.337.8524 fax: 905.337.8630 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]