hi marcus,

i'm going to check the compatibility with liquibase today.

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2014-09-08 15:58 GMT+02:00 Marcus Wallin <[email protected]>:

> Hi,
>
> I want to run integration-tests with CdiTestRunner
> using deltaspike-cdictrl-openejb 1.0.2 and org.apache.openejb:openejb-core
> 4.7.0 according to [1].
>
> This works fine until I also want to pre-load an in-memory Derby db using
> Liquibase-CDI 3.2.2 using instructions from [2].
>
> The error I get is as follows:
> Throwable occurred: javax.enterprise.context.ContextNotActiveException:
> WebBeans context with scope type annotation @RequestScoped does not exist
> within current thread
> at
> org.apache.webbeans.container.BeanManagerImpl.getContext(BeanManagerImpl.java:330)
> at
> org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:88)
> at
> org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.get(NormalScopedBeanInterceptorHandler.java:70)
> at
> org.apache.deltaspike.testcontrol.impl.mock.SimpleMockManager$$OwbNormalScopeProxy0.getMock(org/apache/deltaspike/testcontrol/impl/mock/SimpleMockManager.java)
> at
> org.apache.deltaspike.testcontrol.impl.mock.MockAwareInjectionTargetWrapper.produce(MockAwareInjectionTargetWrapper.java:59)
> at liquibase.integration.cdi.CDIBootstrap$1.create(CDIBootstrap.java:93)
> at liquibase.integration.cdi.CDIBootstrap$1.create(CDIBootstrap.java:38)
> .
> .
> .
>
> Does anyone have a clue what to do about this?
> Perhaps the error should be directed to Liquibase mailing list?
>
> Attaching a sample maven project that produces this error with $>mvn clean
> install
>
> [1] https://deltaspike.apache.org/test-control.html
> [2] http://www.liquibase.org/documentation/cdi.html
>
>
> Br
> Marcus W.
>

Reply via email to