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

2002-03-10 Thread Mikael Eriksson

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 --
>   
>   
>
>   
>   
>-- snip --
>
>I have the following mappings (among others) in my struts-config.xml
>file:
>
>-- snip --
>..
>
> ype="com.dceg.webapps.messaging.PlayerMessageForm" />
>
>..
>type="com.dceg.webapps.messaging.MessageTypeAction"
>name="playerMessageForm"
>scope="request"
>parameter="POST"
>validate="false">
>   
>   
>   
>
>
>type="com.dceg.webapps.messaging.PlayerListAction"
>name="playerMessageForm"
>scope="request"
>validate="false"
>parameter="PRE">
>
>
>
>-- 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:   
>For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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

2002-03-10 Thread Chuck Cavaness

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:   
For additional commands, e-mail: 




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

2002-03-10 Thread Kevin J. Turner

On Sun, 10 Mar 2002 13:29:01 -0600, Chris Means wrote:
>Is this a typo or maybe the problem:
>
>-- snip --
>..
>
>ype="com.dceg.webapps.messaging.PlayerMessageForm" />
>
>..
>
>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:   
For additional commands, e-mail: 




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

2002-03-10 Thread Chris Means

Is this a typo or maybe the problem:

-- snip --
..

  

..

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 --
>   
>   
>
>   
>   
> -- snip --
>
> I have the following mappings (among others) in my struts-config.xml
> file:
>
> -- snip --
> ..
> 
> ype="com.dceg.webapps.messaging.PlayerMessageForm" />
> 
> ..
> type="com.dceg.webapps.messaging.MessageTypeAction"
>name="playerMessageForm"
>scope="request"
>parameter="POST"
>validate="false">
>   
>   
>   
> 
>
> type="com.dceg.webapps.messaging.PlayerListAction"
>name="playerMessageForm"
>scope="request"
>validate="false"
>parameter="PRE">
>
> 
>
> -- 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]>




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

2002-03-10 Thread Kevin J. Turner

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 --
  
  

  
  
-- snip --

I have the following mappings (among others) in my struts-config.xml
file:

-- snip --
..

  

..

  
  
  



   


-- 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:   
For additional commands, e-mail: