Are you using arquillian 1.1.11, if so try with .10

El 23 ago. 2016 10:47 p. m., "Ivan St. Ivanov" <ivan.st.iva...@gmail.com>
escribió:

> Hi folks,
>
> I have an issue when I run Arquillian test in the TomEE embedded
> container, version 7.0.1. Originally I wanted to run a test as client
> (@RunAsClient) that checks a RESTful web service's response [1]. However,
> during the deployment of the ShrinkWrap archive I get the following
> exception:
>
> javax.el.ELException: Provider com.sun.el.ExpressionFactoryImpl not found
> at javax.el.FactoryFinder.newInstance(FactoryFinder.java:101)
> at javax.el.FactoryFinder.find(FactoryFinder.java:197)
> at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:197)
> at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:168)
> at org.apache.jasper.runtime.JspApplicationContextImpl.<init>(
> JspApplicationContextImpl.java:46)
> at org.apache.jasper.runtime.JspApplicationContextImpl.getInstance(
> JspApplicationContextImpl.java:76)
> at org.apache.jasper.runtime.JspFactoryImpl.getJspApplicationContext(
> JspFactoryImpl.java:217)
> at org.apache.openejb.cdi.OpenEJBLifecycle.setJspELFactory(
> OpenEJBLifecycle.java:416)
> at org.apache.openejb.cdi.OpenEJBLifecycle.initializeServletContext(
> OpenEJBLifecycle.java:387)
> at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
> TomcatWebAppBuilder.java:1423)
>
> The whole exception trace is attached to this emal.
>
> I wondered what the problem is, so I added a dummy resource [2] that
> doesn't involve CDI. And then ran a test [3] as client and it went fine.
> Then I added a test that doesn't run as client and involves a class that
> uses CDI [4]. And I got the same exception as above.
>
> Do you know what is the reason for the failure? The same tests run
> successfully on the WildFly 10 managed container. And they keep failing on
> TomEE embedded even with an empty beans.xml added to the ShrinkWrap web
> archive.
>
> The app under test is runnable under TomEE 7 Plume as well as via the
> Maven plugin.
>
> Thank you,
> Ivan
>
> [1] https://github.com/ivannov/javaee-actuator/blob/
> arquillian/javaee-actuator/src/test/java/io/github/
> ivannov/actuator/resources/MetricsResourceTest.java
> [2] https://github.com/ivannov/javaee-actuator/blob/
> arquillian/javaee-actuator/src/main/java/io/github/
> ivannov/actuator/resources/HelloResource.java
> [3] https://github.com/ivannov/javaee-actuator/blob/
> arquillian/javaee-actuator/src/test/java/io/github/
> ivannov/actuator/resources/HelloResourceTest.java
> [4] https://github.com/ivannov/javaee-actuator/blob/
> arquillian/javaee-actuator/src/test/java/io/github/
> ivannov/actuator/resources/BeansResourceTest.java
>

Reply via email to