Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@ConversationScoped

 
Markus Schmider
Ranch Hand
Posts: 130
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to implement my first ConversationScoped CDI bean. However the bean never gets instantiated.
Tried both on JBoss 6 M5 and GlassFish V3.



The conversation is supposed to be started from index.xhtml:


I get the error message:



The next page would be


I have also tried to use this bean alone with

in the constructor.
With this the bean does not get instantiated either. However I get no error message. The <h:outputText is not populated.

>
 
Markus Schmider
Ranch Hand
Posts: 130
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stupid me:

Forgot
WEB-INF/beans.xml

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic