Two Laptop Bag*
The moose likes EJB and other Java EE Technologies and the fly likes Test EJB with WASCE/OpenEJB embedded container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Test EJB with WASCE/OpenEJB embedded container" Watch "Test EJB with WASCE/OpenEJB embedded container" New topic
Author

Test EJB with WASCE/OpenEJB embedded container

Oscar G. Rodriguez
Greenhorn

Joined: Nov 05, 2011
Posts: 15
Hello,

I'm trying to test EJB with WASCE embedded container, JDK 7 and EJB 3.1, but it doesn't work for me.

I have a normal faceted EJB project, and the pom.xml with the dependency



The EJB is a simple Stateless one with annotations, and the test class (in the same project) is



When I execute this the EJBContainer is null, without errors.

I think that I miss some configuration files, but I didn't see anything in the examples that I found.

http://antoniogoncalves.org/2011/01/12/bootstrapping-cdi-in-several-environments/
http://webspherepersistence.blogspot.de/2011/03/lightweight-jpa-testing-in-jee.html
Oscar G. Rodriguez
Greenhorn

Joined: Nov 05, 2011
Posts: 15
The problam was the dependency

<groupId>org.apache.openejb</groupId>
<artifactId>openejb-ejbd</artifactId>


was the correct one.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Test EJB with WASCE/OpenEJB embedded container
 
Similar Threads
Maven dependencies
Incorrect hibernate version or maven ignore and didn't download hibernate jar file.
java.util.MissingResourceException: Can't find bundle for base name in JSF Spring Maven project
Spring Major version '3' expected
Maven web project dependencies