javaeetutorial
  1. javaeetutorial
  2. JAVAEETUTORIAL-266

Java EE tutorial 7 error.build the hello1 Web Module‏

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Works as designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      netbeans IDE 8.0

      Description

      Hi in the Java EE tutorial 7 at page:103
      6.3.2.1 To Build and Package the hello1 Web Module Using NetBeans IDE.
      1. Start the GlassFish Server as described in To Start the GlassFish Server Using
      NetBeans IDE, if you have not already done so.
      2. From the Filemenu, select Open Project.
      3. In the Open Project dialog box, navigate to:
      tut-install/examples/web/jsf
      4. Select the hello1folder.
      5. Click Open Project.
      6. In the Projectstab, right-click the hello1project and select Build. This command
      deploys the project to the server.

      it is imposible to Build the hello1 example. If i click on the hello1 project and click Build an error is occured.

      " Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) on project hello2: Execution deploy of goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy failed: Cannot find the GlassFish admin CLI JAR: admin-cli.jar -> [Help 1]

      To see the full stack trace of the errors, re-run Maven with the -e switch.
      Re-run Maven using the -X switch to enable full debug logging.

      For more information about the errors and possible solutions, please read the following articles:
      [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException "
      If i go at the webpage: http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
      no solution is available at the page above.

        Activity

        pinostudente created issue -
        Hide
        jendrock added a comment -

        The error message that you passed along indicates a problem with your environment, more specifically the location in which you installed GlassFish Server (as opposed to the Java EE 7 SDK).

        If you followed the instructions in Chapter 2, "Using the Tutorial Examples," you installed the SDK, which includes GlassFish Server and the Java EE 7 Tutorial. If you did not follow the aforementioned instructions and installed GlassFish Server as part of your NetBeans 8.0 installation or if you installed GlassFish Server by itself, you would encounter path problems similar in nature to the one that you did encounter.

        Please reread the instructions for setting everything up: http://docs.oracle.com/javaee/7/tutorial/doc/usingexamples001.htm#GEXAB

        Ensure that NetBeans IDE points to GlassFish Server in the SDK, not in the location that NetBeans installs GlassFish Server. If you still encounter the same issue, please use a comment to add more information to this issue. That information would include the location of your SDK, GlassFish Server, and tutorial examples. The tutorial (and its examples) should be in a location that is relative to GlassFish Server, as it is in the SDK.

        Show
        jendrock added a comment - The error message that you passed along indicates a problem with your environment, more specifically the location in which you installed GlassFish Server (as opposed to the Java EE 7 SDK). If you followed the instructions in Chapter 2, "Using the Tutorial Examples," you installed the SDK, which includes GlassFish Server and the Java EE 7 Tutorial. If you did not follow the aforementioned instructions and installed GlassFish Server as part of your NetBeans 8.0 installation or if you installed GlassFish Server by itself, you would encounter path problems similar in nature to the one that you did encounter. Please reread the instructions for setting everything up: http://docs.oracle.com/javaee/7/tutorial/doc/usingexamples001.htm#GEXAB Ensure that NetBeans IDE points to GlassFish Server in the SDK, not in the location that NetBeans installs GlassFish Server. If you still encounter the same issue, please use a comment to add more information to this issue. That information would include the location of your SDK, GlassFish Server, and tutorial examples. The tutorial (and its examples) should be in a location that is relative to GlassFish Server, as it is in the SDK.
        Hide
        pinostudente added a comment - - edited

        Thanks. Now it works! I just looked at the page like you said: http://docs.oracle.com/javaee/7/tutorial/doc/usingexamples001.htm#GEXAB
        and changed the installation directory from galssfish4 server and following step by step the description of the link you sent to me. Now it works perfectly!

        Show
        pinostudente added a comment - - edited Thanks. Now it works! I just looked at the page like you said: http://docs.oracle.com/javaee/7/tutorial/doc/usingexamples001.htm#GEXAB and changed the installation directory from galssfish4 server and following step by step the description of the link you sent to me. Now it works perfectly!
        Hide
        saimir added a comment -

        The response provided above works when the glassfish installation process is followed as per oracle documentation. However, the configuration can be adapted as per user preferences. The problem that one must know is where to change, create or update the admin password for the existing glassfish server. And it can be achieved by making changes to the configuration file, named 'password.properties' which is under the glassfish_root/glassfish/domains directory.

        Show
        saimir added a comment - The response provided above works when the glassfish installation process is followed as per oracle documentation. However, the configuration can be adapted as per user preferences. The problem that one must know is where to change, create or update the admin password for the existing glassfish server. And it can be achieved by making changes to the configuration file, named 'password.properties' which is under the glassfish_root/glassfish/domains directory.
        Kim Haase made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Assignee jendrock [ jendrock ]
        Resolution Works as designed [ 7 ]

          People

          • Assignee:
            jendrock
            Reporter:
            pinostudente
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: