Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.1
-
None
-
None
-
Windows 7 x64, jdk1.7.0_07 32 bit
apache-tomee-1.5.1-20121015.041312-39-webprofile.zip
Description
Using SNAPSHOT: apache-tomee-1.5.1-20121015.041312-39-webprofile.zip
1. Create EJB bean:
@Named
@Stateful
@ConversationScoped
public class ConversationBean {
@PostConstruct
private void init()
@PreDestroy
private void die()
public String getDate()
{ return "" + new Date(); }}
2. Create JSF page:
<h:body>
Current date: #
</h:body>
3. Run the application - browser correctly displays current date
4. Refresh the browser page several times and observe Tomee log:
INFO: Activation failed: file not found E:\Java\apache-tomee-webprofile-1.5.1-SNAPSHOT\temp\9949eaf8234cf0f7=2646a3b1=13a63cda2b0=-7ffb
beans.ConversationBean@183817e INIT
beans.ConversationBean@183817e DIE
Spa 15, 2012 12:49:27 PM org.apache.openejb.core.stateful.SimplePassivater activate
INFO: Activation failed: file not found E:\Java\apache-tomee-webprofile-1.5.1-SNAPSHOT\temp\9949eaf8234cf0f7=2646a3b1=13a63cda2b0=-7ffa
beans.ConversationBean@1a94702 INIT
beans.ConversationBean@1a94702 DIE
beans.ConversationBean@1d418a9 INIT
beans.ConversationBean@1d418a9 DIE
Spa 15, 2012 12:49:34 PM org.apache.openejb.core.stateful.SimplePassivater activate
INFO: Activation failed: file not found E:\Java\apache-tomee-webprofile-1.5.1-SNAPSHOT\temp\9949eaf8234cf0f7=2646a3b1=13a63cda2b0=-7ff9
@ConversationScoped bean is being activated though it should not (conversation.begin() was never called, it should act as @RequestScoped and thus die forever).