"[EMAIL PROTECTED]" wrote : Why do you think the message is related to that 
component? Seems to be some other component is the source of the problem.

Hmm. OK. Sorry. But every component in my project uses this way to provide a 
list which is displayed by the tomahawk dataTable. And every such component 
causes this error:

Console wrote : 08:45:10,546 INFO  [Component] Component: searchTestaction, 
scope: SESSION, type: STATEFUL_SESSION_BEAN, class: 
com.idsscheer.ares.sessions.SearchTestactionAction, JNDI: 
ares/SearchTestactionAction/local
  | 08:45:10,562 ERROR [[/ares]] Exception sending context initialized event to 
listener instance of class org.jboss.seam.servlet.SeamListener
  | java.lang.IllegalStateException: Multiple @DataModelSelection fields for: 
foundTestactions

Which component causes the error is only a matter of which component is loaded 
first.

But here is the component which is mentioned in the first error message:
@Stateful
  | @Scope(ScopeType.SESSION)
  | @LoggedIn
  | @Name("testactionValidator")
  | public class TestactionValidatorAction extends TestactionHandling 
implements Serializable,  TestactionValidator {
  |     @In(required=false)
  |     private Release selectedRelease;
  |     
  |     private Long lastSelectedReleaseID;
  |     
  |     @Factory("testactionsForValidator")
  |     public void initTestactions() {
  |             // start a query to put some data into testactions
  |             Collections.sort(testactions, new TestactionComparator(column, 
ascending));
  |     }
  | 
  |     @DataModel(scope=ScopeType.PAGE)
  |     public List<Testaction> getTestactionsForValidator() {
  |             initTestactions();
  |             return testactions;
  |     }
  | 
  |     // ... omitted ... //
  | }

and its superclass:
//has no annotations
  | public class TestactionHandling {
  |     @PersistenceContext(unitName = "aresDatabase")
  |     protected EntityManager em;
  |     
  |     @In @Valid
  |     protected User user;
  |     
  |     @In
  |     protected FacesContext facesContext;
  |     
  |     protected List<Testaction> testactions;
  |     @DataModelSelectionIndex
  |     protected int testactionIndex;
  |     @DataModelSelection
  |     protected Testaction testaction;
  |     
  |     @In(required=false)
  |     @Out(required=false, scope=ScopeType.SESSION)
  |     protected Testaction currentTestaction;
  |     
  |     protected List<Testaction> currentTestactions;
  |     protected int currentTestactionIndex;
  |     
  |     protected String column = "id";
  |     protected boolean ascending = true;
  |     
  |     private ResourceBundle resourceBundle;
  |     
  |     private long lastRefreshTime;
  |     private final long REFRESH_PERIOD = 60000; //1 Minute
  |     
  |     // ... omitted ... //
  | 
  |     public boolean isAscending() {
  |             return ascending;
  |     }
  |     
  |     public void setAscending(boolean ascending) {
  |             if(ascending != this.ascending) {
  |                     testactions = null;
  |             }
  |             this.ascending = ascending;
  |     }
  |     
  |     public String getColumn() {
  |             return column;
  |     }
  |     
  |     public void setColumn(String column) {
  |             if(!column.equals(this.column)) {
  |                     testactions = null;
  |             }
  |             this.column = column;
  |     }
  |     
  |     // ... omitted ... //
  |     
  |     @Remove @Destroy
  |     public void destroy() {
  |     }
  |     
  |     // ... omitted ... //
  | }

I didn't post the error causing component, because it's a subclass and its 
superclass holds the @DataModelSelection and the @DataModelSelectionIndex, but 
the inheritance doesn't cause the error. So I wanted to prevent any posts which 
tell me not to use inheritance ;)

If there are further questions, just ask.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947939#3947939

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947939


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to