Help

Built with Seam

You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.

FAQ Category:

You really have to understand how Seam works to understand this message. You see this issue most often during development when using the hot deploy classloader. When Seam dumps and reloads the hot deployable classes, instances of those classes may still existing in an active long-running conversation. When you attempt to use that conversation, worlds collide. You just need to flush the session.

Here's what the exception actually means. When Seam looks for an existing instance of a component, it checks for a context variable equivalent to the component name. It's expecting to find an instance of the component. If it finds a value of a different type, then it throws this exception. The context variable was basically used for a different purpose, which is illegal (or you have the hot deployment classloader scenario described above).

2 comments:
 
16. Nov 2008, 01:41 America/New_York | Link
John Ament

I can understand why conceptually this behavior exists, but I don't think it really should. For example, I iterate over an object bound to the page scope. The target var for the ui:repeat that I use to iterate should then be bound to the same PAGE scope. As a result, if the same name for the var attribute is used somewhere else, it should be fine, unless it appears inside the same view.

 
20. May 2009, 01:01 America/New_York | Link
jose miguel loor | jmiguel77.AT.hotmail.com

The problem is not undertanding this problem, but fixing it. I don't want to restart the jboss instance every time i change something in my app; that is just ridiculous