glassfish
  1. glassfish
  2. GLASSFISH-20276

[SDK]Java EE 7 sample-The Stateless Bean EJB Sample Application (Test Client)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_b83
    • Fix Version/s: 4.0_b83
    • Component/s: ejb_container
    • Labels:
      None
    • Environment:

      ee7 sdk build83

      Description

      Operations:
      1 move to 'glassfish4-b83/samples/ejb/hello-stateless-ejb'
      2 'mvn clean verify exec:java'

      Errors:
      [INFO] Reactor Summary:
      [INFO]
      [INFO] hello-stateless-ejb ............................... FAILURE [0.357s]
      [INFO] The EJB 3.2 Stateless Session Bean Sample Application SKIPPED
      [INFO] hello-stateless-ejb-client ........................ SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.025s
      [INFO] Finished at: Wed Apr 10 14:29:54 PDT 2013
      [INFO] Final Memory: 8M/148M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project hello-stateless-ejb: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java are missing or invalid -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginParameterException

        Activity

        Hide
        xiaojun.wu added a comment -

        I'm sure you executed mvn in a wrong path.
        This example has two modules:
        client(/samples/ejb/hello-stateless-ejb/hello-stateless-ejb-client),
        server(/samples/ejb/hello-stateless-ejb/hello-stateless-ejb-bean).
        Please run mvn in the two module paths respectively.
        There're instruction files in docs directories.
        Please build and deploy server module(a stateless session bean) first, then do client module.
        Finally, you can run the client successfully.

        Show
        xiaojun.wu added a comment - I'm sure you executed mvn in a wrong path. This example has two modules: client(/samples/ejb/hello-stateless-ejb/hello-stateless-ejb-client), server(/samples/ejb/hello-stateless-ejb/hello-stateless-ejb-bean). Please run mvn in the two module paths respectively. There're instruction files in docs directories. Please build and deploy server module(a stateless session bean) first, then do client module. Finally, you can run the client successfully.

          People

          • Assignee:
            xiaojun.wu
            Reporter:
            Daniel
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: