javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-36

Issues with Ant instructions for persistence examples

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.6
    • Fix Version/s: 6.0.7
    • Component/s: doc, examples
    • Labels:
      None

      Description

      There are some problems running the persistence examples with Ant.

      order:

      The instructions say that an "all" target exists for this example, although there is none. Either the mention of the all target should be removed from the chapter, or the target should be added to build.xml.

      Using "ant" and "ant deploy" works fine.

      roster:

      The javaee.home property is hardcoded in project.properties, so the deployment fails:

      BUILD FAILED
      /export/home/chaase/tut-ws/javaeetutorial/trunk/examples/persistence/roster/build.xml:28: The following error occurred while executing this line:
      /export/home/chaase/tut-ws/javaeetutorial/trunk/examples/bp-project/app-server-ant.xml:145: The directory /export/home/chaase/tut-ws/javaeetutorial/trunk/examples/persistence/roster/c:/Sun/AppServerPE does not exist

      Total time: 19 seconds
      jdench 690 =>grep Sun /
      nbproject/project.properties:javaee.home=c:/Sun/AppServerPE

      address-book:

      The chapter has instructions for using Ant, but the build.xml file still works only with NetBeans. The file needs to be modified.

        Activity

        Hide
        Ian Evans added a comment -

        roster actually does have an all task. order and address-book do not.

        Show
        Ian Evans added a comment - roster actually does have an all task. order and address-book do not.
        Hide
        Kim Haase added a comment -

        Oops, I'm sorry that I got mixed up.

        There's an EJB example with a similar problem to address-book: ejb/interceptor, which has Ant instructions in the chapter but whose build.xml file is still NetBeans-only.

        Show
        Kim Haase added a comment - Oops, I'm sorry that I got mixed up. There's an EJB example with a similar problem to address-book: ejb/interceptor, which has Ant instructions in the chapter but whose build.xml file is still NetBeans-only.
        Hide
        Ian Evans added a comment -

        All tasks added to order and address-book.

        Show
        Ian Evans added a comment - All tasks added to order and address-book.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: