The problem is only the configuration of the scanner. If it doesn't find the annotated .class files and the META-INF/persistence.xml in the build/classes/ directory, it won't deploy the persistence unit.
Hence no automatic schema export and "EntityManager not found".
Please everyone: Edit your src/etc/testsuite-integration-ejb3.xml file and use this:
Code:
<!-- Location to scan for META-INF/persistence.xml and @Entity classes -->
<parameter name="scan_classpath" value="build/classes"/>
Remove the old scan_classpath configuration. Try a backslash "build\classes" on Windoze.
If neither works, I have no idea what could be wrong. Do that next:
Code:
// Deploy all EJBs found on classpath (fast, scans only build directory)
// This is a relative location, matching the substring end of one of java.class.path locations!
// Print out System.getProperty("java.class.path") to understand this...
EJB3StandaloneBootstrap.scanClasspath(scanClasspath);
You should see the directory name you have configured as the end of a line of the system classpath configuration. Just print out System.getProperty()....