Embedded testing: glassfish-resources.xml causes error?
Since @Remote EJB testing doesn't work with
javax.ejb.embeddable.EJBContainer, and since
http://java.net/jira/browse/GLASSFISH-15775 is preventing me from using
Glassfish embedded directly, I looked into using
In order to do this, I need to be able to set up an H2 data source. When I
was using the EJBContainer and the embedded Glassfish approaches, this was
easy: I just hacked up a domain.xml and added my data source in there.
With the maven plugin, I don't see an obvious way to do this, and frankly
that's probably a good thing. OK, I thought, time to finally put together a
So I did.
The plugin barfs because it now cannot find a local copy of the DTD (I'm
developing on a Mac, hence the rather confusing temp directories):
SEVERE: Failue while processing glassfish-resources.xml(s) in the archive