Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 7.0.1
    • Fix Version/s: None
    • Component/s: examples
    • Labels:
      None

      Description

      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).

        Activity

        Hide
        Ian Evans added a comment -

        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.

        Show
        Ian Evans added a comment - 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.
        Hide
        DLambers added a comment -

        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.

        Show
        DLambers added a comment - 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.
        Hide
        Kim Haase added a comment -

        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]
        Initializing...

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

        Show
        Kim Haase added a comment - 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] Initializing... The way that works for running it is to right-click the parent project, roster, and select Build.

          People

          • Assignee:
            Ian Evans
            Reporter:
            DLambers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: