[JAVAEETUTORIAL-236] roster-ejb compile errors Created: 15/Aug/13  Updated: 15/Aug/13  Resolved: 15/Aug/13

Status: Resolved
Project: javaeetutorial
Component/s: examples
Affects Version/s: 7.0.1
Fix Version/s: None

Type: Bug Priority: Major
Reporter: DLambers Assignee: Ian Evans
Resolution: Invalid Votes: 0
Labels: None
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
profile mode: false
debug mode: false
force redeploy: true
Distributing C:\tut-ws\trunk\examples\persistence\roster\roster-ear\target\roster-ear.ear to [GlassFish Server]

The way that works for running it is to right-click the parent project, roster, and select Build.

Generated at Sat Feb 13 20:26:23 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.