tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Masini (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TOMEE-1013) ContextNotActiveException using TomEE embedded into Arquillian
Date Fri, 09 Aug 2013 13:37:48 GMT

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

Luca Masini commented on TOMEE-1013:
------------------------------------

I also updated the snapshot, now I try to delete them all and download from
scratch.


2013/8/9 Romain Manni-Bucau (JIRA) <jira@apache.org>




-- 
****************************************
http://www.lucamasini.net
http://twitter.com/lmasini
http://www.linkedin.com/pub/luca-masini/7/10/2b9
****************************************

                
> ContextNotActiveException using TomEE embedded into Arquillian
> --------------------------------------------------------------
>
>                 Key: TOMEE-1013
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1013
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Arquillian Adapters
>    Affects Versions: 1.5.2
>         Environment: Mac OS, Java 1.7.0_10
>            Reporter: Luca Masini
>            Assignee: Romain Manni-Bucau
>             Fix For: 1.6.0
>
>         Attachments: testcase-cdi-stateful.zip, testcase-cdi-stateful.zip
>
>
> You cannot use a transactional event listener from a Stateful EJB to a business method
of the same bean:
> @Stateful
> public class MySFEJB {
> ....
>     public void sender() {
>         transactionListener.fire(new Payload());
>     }
>     public void receiver(@Observes(during = TransactionPhase.AFTER_SUCCESS) Payload payload)
{
> // code omitted
>     }
> into the log you can read:
> INFO: Cannot send event to bean in non-active context : [ExtendedEntityManagerService,
Name:null, WebBeans Type:ENTERPRISE, API Types:[java.io.Serializable,java.lang.Object,net.lucamasini.synch.mobile.boundary.ExtendedEntityManagerService],
Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]]
> then inside the container this Exception is raised (BeanManagerImpl.java:351):
>             throw new ContextNotActiveException("WebBeans context with scope type annotation
@"
>                                                 + scopeType.getSimpleName() + " does
not exist within current thread");
> Everything works fine using the same code inside TomEE as a normal container and not
for Integration Tests.

--
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

Mime
View raw message