Problem running TomEE Test Case inside Intellij Community Edition


Hi guys,

there is an issue which I have no idea how to solve.

I cloned the TomEE repository and included it inside Intellij Community Edition as Maven project.

Now I let run an easy Test like org.superbiz.cdi.requestscope.RestaurantTest but the test does not run:

javax.ejb.EJBException: Provider error. No provider found

    at javax.ejb.embeddable.EJBContainer.createEJBContainer(
    at javax.ejb.embeddable.EJBContainer.createEJBContainer(
    at org.superbiz.cdi.requestscope.RestaurantTest.startContainer(

When I start it from the command line:

tomee/examples/cdi-request-scope$ mvn compile surefire:test -Dtest=org.superbiz.cdi.requestscope.RestaurantTest

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

The test runs as expected.

Now I want to know what happens under the hood. How can I found out what is different on the command line and what should I set inside the Intellij. Classpath etc. at the moment I have no idea.

Has somebody an idea what steps should I do next to get it to run? Or does it work only with an Ultimate edition?




1 comment

Hi Markus Hofmann You can try running your test using Maven Run/Debug configuration:

If the problem remains, please prepare and provide a small project sample. The files can be uploaded at (do not forget to specify the UploadID here)


Please sign in to leave a comment.