hi Karl,
thanks. I have found it.
For the record, the ClassDeactivator workaround works with camel-cdi as
well.
stefano
Il 17/09/2014 18:48, Karl Kildén ha scritto:
Hi,
http://deltaspike.apache.org/documentation/test-control.html#liquibase
that link should do it
On 17 September 2014 18:44, Stefano Travelli <[email protected]>
wrote:
hi Gerhard, Marcus,
The very same issue seems to happen with camel-cdi.
I'm curious about the workaround but with the ongoing documentation
refactory the link doesn't work anymore.
What could I do to see what Gerhard wrote at http://deltaspike.apache.org/
test-control.html#liquibase
Thanks
stefano
Il 08/09/2014 20:01, Gerhard Petracek ha scritto:
hi marcus,
i added the answer to [1].
regards,
gerhard
[1] http://deltaspike.apache.org/test-control.html#liquibase
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 17:03 GMT+02:00 Gerhard Petracek <[email protected]>:
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.NormalScopedBeanInterceptorHan
dler.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(MockAwareInjectionTargetWrappe
r.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.