glassfish
  1. glassfish
  2. GLASSFISH-19904

4.0 SDK: Build failure and errors when executing EL Sample

    Details

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

      Description

      Using the Sample instructions, the el3.0 sample fails to run. The instructions say to run "mvn clean compile exec:java" as it does not need a container to run. The exacts steps followed were:

      o cd $HOME/glassfish4/samples/el
      o mvn clean
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------

      o mvn compile
      [INFO] Building Java EE 7 Expression Language Samples 4.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] — maven-enforcer-plugin:1.0:enforce (enforce-maven) @ el-samples —
      [INFO]
      [INFO] — maven-resources-plugin:2.5:resources (default-resources) @ el-samples —
      [debug] execute contextualize
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/agpineda/workspace/glassfish4/samples/el/src/main/resources
      [INFO]
      [INFO] — maven-compiler-plugin:2.4:compile (default-compile) @ el-samples —
      [INFO] Compiling 1 source file to /home/agpineda/workspace/glassfish4/samples/el/target/classes
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------

      o mvn exec:java
      [INFO] Building Java EE 7 Expression Language Samples 4.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] >>> exec-maven-plugin:1.1:java (default-cli) @ el-samples >>>
      [INFO]
      [INFO] — maven-enforcer-plugin:1.0:enforce (enforce-maven) @ el-samples —
      [INFO]
      [INFO] <<< exec-maven-plugin:1.1:java (default-cli) @ el-samples <<<
      [INFO]
      [INFO] — exec-maven-plugin:1.1:java (default-cli) @ el-samples —

      ====
      Input EL string: 'Hello, world!'
      Output Value: Hello, world!

      ====
      Input EL string: Boolean.TRUE
      Output Value: true

      ====
      Input EL string: Integer.numberOfTrailingZeros(16)
      Output Value: 4

      ====
      Input EL string: 10 cat 11
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.299s
      [INFO] Finished at: Fri Mar 15 22:07:15 PDT 2013
      [INFO] Final Memory: 7M/149M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.1:java (default-cli) on project el-samples: An exception occured while executing the Java class. null: InvocationTargetException: Error Parsing: $

      {10 cat 11}

      : Encountered "cat" at line 1, column 6.
      [ERROR] Was expecting one of:
      [ERROR] "}" ...
      [ERROR] "." ...
      [ERROR] "[" ...
      [ERROR] ";" ...
      [ERROR] ">" ...
      [ERROR] "gt" ...
      [ERROR] "<" ...
      [ERROR] "lt" ...
      [ERROR] ">=" ...
      [ERROR] "ge" ...
      [ERROR] "<=" ...
      [ERROR] "le" ...
      [ERROR] "==" ...
      [ERROR] "eq" ...
      [ERROR] "!=" ...
      [ERROR] "ne" ...
      [ERROR] "&&" ...
      [ERROR] "and" ...
      [ERROR] "||" ...
      [ERROR] "or" ...
      [ERROR] "*" ...
      [ERROR] "+" ...
      [ERROR] "-" ...
      [ERROR] "?" ...
      [ERROR] "/" ...
      [ERROR] "div" ...
      [ERROR] "%" ...
      [ERROR] "mod" ...
      [ERROR] "+=" ...
      [ERROR] "=" ...
      [ERROR] -> [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/MojoExecutionException

        Activity

        Hide
        Alex Pineda added a comment -

        Still see the problem on build 80 (MS6)

        Show
        Alex Pineda added a comment - Still see the problem on build 80 (MS6)
        Hide
        Alex Pineda added a comment -

        The problem appears resolved in SDK build 81. Just tried it and it works.

        Show
        Alex Pineda added a comment - The problem appears resolved in SDK build 81. Just tried it and it works.
        Hide
        Dhiru Pandey added a comment -

        Confirmed by reporter that it works in build 81

        Show
        Dhiru Pandey added a comment - Confirmed by reporter that it works in build 81

          People

          • Assignee:
            Dhiru Pandey
            Reporter:
            Alex Pineda
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: