[ 
https://issues.apache.org/jira/browse/TOMEE-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476183#comment-13476183
 ] 

Romain Manni-Bucau commented on TOMEE-466:
------------------------------------------

should be better on trunk
                
> "Activation failed" messages for @ConversationScoped @Stateful bean
> -------------------------------------------------------------------
>
>                 Key: TOMEE-466
>                 URL: https://issues.apache.org/jira/browse/TOMEE-466
>             Project: TomEE
>          Issue Type: Bug
>    Affects Versions: 1.5.1
>         Environment: Windows 7 x64, jdk1.7.0_07 32 bit
> apache-tomee-1.5.1-20121015.041312-39-webprofile.zip
>            Reporter: Donatas Ciuksys
>
> 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() {
>         System.out.println(this + " INIT");
>     }
>     
>     @PreDestroy
>     private void die() {
>         System.out.println(this + " DIE");
>     }
>     
>     public String getDate() {
>         return "" + new Date();
>     }
> }
> 2. Create JSF page:
>    <h:body>
>         Current date: #{conversationBean.getDate()}
>     </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).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to