[JAVAEETUTORIAL-236] roster-ejb compile errors Created: 15/Aug/13 Updated: 15/Aug/13 Resolved: 15/Aug/13
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
In the roster example (examples/persistence/roster), roster-ejb does not compile because of the absence of the classes javaeetutorial.roster.entity.League_ , javaeetutorial.roster.entity.Player_ and javaeetutorial.roster.entity.Team_ (note the underscores).
|Comment by Ian Evans [ 15/Aug/13 ]|
The files with trailing underscores are generated static metamodel classes, and they will be generated before the compile process when you build the application.
If you look in roster-ejb's pom.xml file, you'll see that it's set up to generate these files during the generate-sources phase by the maven-processor-plugin. This will occur in both NetBeans and when using mvn from the command-line.
|Comment by DLambers [ 15/Aug/13 ]|
I see it indeed in the pom.xml. But both building by Netbeans and Maven command line give errors related to the roster-ejb jar. There must be something else going wrong then. I'll continue the search. Thank you for your help.
|Comment by Kim Haase [ 15/Aug/13 ]|
One thing I've noticed is that the tutorial instructions for running the project – right-click the roster-ear project and select Run – result in a hang here:
NetBeans: Deploying on GlassFish Server
The way that works for running it is to right-click the parent project, roster, and select Build.