javaserverfaces
  1. javaserverfaces
  2. JAVASERVERFACES-2145

A bug in the 2.1.2 source makes it ipossible to build the project.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.1.2, 2.2.0-m01
    • Component/s: None
    • Labels:
      None
    • Environment:

      Any environment

      Description

      A project file "mojarra-2.1.2-FCS-source\jsf-tools\pom.xml" declares version 2.1.1-SNAPSHOT of jsf-tools component, but the main project looks for 2.1.2-SNAPSHOT version. This makes ant to throw the following exception while building Mojarra 2.1.2:

      BUILD FAILED
      ...\mojarra-2.1.2-FCS-source\build.xml:113: The following error occurred while executing this line:
      ...\mojarra-2.1.2-FCS-source\build.xml:81: The following error occurred while executing this line:
      ...\mojarra-2.1.2-FCS-source\jsf-api\build.xml:202: taskdef class com.sun.faces.ant.ComponentGenTask cannot be found

      Changing the declaration to 2.1.2-SNAPSHOT allows to build the project successfully.

      BTW: Another issue, constantly faced by everybody trying to build Mojarra, is broken maven repository. This time: tlddoc-1.3.jar cannot be found in $

      {maven2.mirror}. This can be resolved by changing:

      ${maven2.mirror}

      /taglibrarydoc/tlddoc/$

      {taglibdoc.version}/tlddoc-${taglibdoc.version}

      .jar

      to:

      $

      {central.maven2}

      /taglibrarydoc/tlddoc/$

      {taglibdoc.version}/tlddoc-${taglibdoc.version}

      .jar

      in "mojarra-2.1.2-FCS-source/common/ant/dependencies.xml".

        Activity

        Hide
        Sreekanth added a comment -

        Even Now I am facing the issue

        When I run ant clean main, I get this error.

        update:
        [patch] patching file /space/Sreekanth/dev-workspace/JSF-Sources/trunk/dependencies/xs3p-1.1.5/xs3p.xsl
        [patch] Reversed (or previously applied) patch detected! Assume -R? [n]
        [patch] Apply anyway? [n]
        [patch] Skipping patch.
        [patch] 1 out of 1 hunk ignored – saving rejects to file /space/Sreekanth/dev-workspace/JSF-Sources/trunk/dependencies/xs3p-1.1.5/xs3p.xsl.rej
        [patch] 'patch' failed with exit code 1

        prepare:
        [mkdir] Created dir: /space/Sreekanth/dev-workspace/JSF-Sources/trunk/jsf-api/build/generate

        check.generation.necessity:

        generate:
        [delete] Deleting directory /space/Sreekanth/dev-workspace/JSF-Sources/trunk/jsf-api/build/generate

        tools.javac:

        BUILD FAILED
        /space/Sreekanth/dev-workspace/JSF-Sources/trunk/build.xml:103: The following error occurred while executing this line:
        /space/Sreekanth/dev-workspace/JSF-Sources/trunk/jsf-test/build.xml:105: The following error occurred while executing this line:
        /space/Sreekanth/dev-workspace/JSF-Sources/trunk/jsf-api/build.xml:201: taskdef class com.sun.faces.ant.ComponentGenTask cannot be found
        using the classloader AntClassLoader[/space/Sreekanth/MavenRepo/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar:/space/Sreekanth/MavenRepo/commons-digester/commons-digester/1.5/commons-digester-1.5.jar:/space/Sreekanth/MavenRepo/commons-beanutils/commons-beanutils/1.6.1/commons-beanutils-1.6.1.jar:/space/Sreekanth/MavenRepo/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar:/space/Sreekanth/MavenRepo/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/space/Sreekanth/dev-workspace/JSF-Sources/trunk/jsf-tools/build/classes]

        Show
        Sreekanth added a comment - Even Now I am facing the issue When I run ant clean main, I get this error. update: [patch] patching file /space/Sreekanth/dev-workspace/JSF-Sources/trunk/dependencies/xs3p-1.1.5/xs3p.xsl [patch] Reversed (or previously applied) patch detected! Assume -R? [n] [patch] Apply anyway? [n] [patch] Skipping patch. [patch] 1 out of 1 hunk ignored – saving rejects to file /space/Sreekanth/dev-workspace/JSF-Sources/trunk/dependencies/xs3p-1.1.5/xs3p.xsl.rej [patch] 'patch' failed with exit code 1 prepare: [mkdir] Created dir: /space/Sreekanth/dev-workspace/JSF-Sources/trunk/jsf-api/build/generate check.generation.necessity: generate: [delete] Deleting directory /space/Sreekanth/dev-workspace/JSF-Sources/trunk/jsf-api/build/generate tools.javac: BUILD FAILED /space/Sreekanth/dev-workspace/JSF-Sources/trunk/build.xml:103: The following error occurred while executing this line: /space/Sreekanth/dev-workspace/JSF-Sources/trunk/jsf-test/build.xml:105: The following error occurred while executing this line: /space/Sreekanth/dev-workspace/JSF-Sources/trunk/jsf-api/build.xml:201: taskdef class com.sun.faces.ant.ComponentGenTask cannot be found using the classloader AntClassLoader [/space/Sreekanth/MavenRepo/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar:/space/Sreekanth/MavenRepo/commons-digester/commons-digester/1.5/commons-digester-1.5.jar:/space/Sreekanth/MavenRepo/commons-beanutils/commons-beanutils/1.6.1/commons-beanutils-1.6.1.jar:/space/Sreekanth/MavenRepo/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar:/space/Sreekanth/MavenRepo/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:/space/Sreekanth/dev-workspace/JSF-Sources/trunk/jsf-tools/build/classes]
        Hide
        Sreekanth added a comment -

        One more issue is when we want to run the tests against glassfish, I copied build.properties.glassfish to build.properties, maven tries to look for dependencies in ~/.m2 home directory. The property "maven.repo.local" is missing in the <JSF-Sources>/trunk/build.properties.glassfish file.

        Show
        Sreekanth added a comment - One more issue is when we want to run the tests against glassfish, I copied build.properties.glassfish to build.properties, maven tries to look for dependencies in ~/.m2 home directory. The property "maven.repo.local" is missing in the <JSF-Sources>/trunk/build.properties.glassfish file.
        Hide
        Sreekanth added a comment -

        Re-opening the issue. See my comments in the issue.

        Thanks,
        Sreekanth

        Show
        Sreekanth added a comment - Re-opening the issue. See my comments in the issue. Thanks, Sreekanth
        Hide
        Manfred Riem added a comment -

        Please do ant main clean main the first time you run it.

        Show
        Manfred Riem added a comment - Please do ant main clean main the first time you run it.
        Hide
        sono99 added a comment -

        On the installation instructions of how to build Mojarra, it should also be mentioned that each release my have a required dependency on the JDK used to build it.

        E.g, 2.1.25 branch can only be branch with JDK 6 due tools.jar
        https://wikis.oracle.com/display/GlassFish/JavaServerFacesRI#JavaServerFacesRI-Workingwiththesourcecode

        <profiles>
        <profile>
        <id>default-tools.jar</id>
        <activation>
        <property>
        <name>java.vendor</name>
        <value>Sun Microsystems Inc.</value>
        </property>
        </activation>
        <dependencies>
        <dependency>
        <groupId>com.sun</groupId>
        <artifactId>tools</artifactId>
        <version>1.6.0</version>
        <scope>system</scope>
        <systemPath>$

        {java.home}

        /../lib/tools.jar</systemPath>
        </dependency>
        </dependencies>
        </profile>
        </profiles>

        When I had java_home pointing to JDK7 i was unable to build jsf-tools due to compilation errors.

        Thanks.

        Show
        sono99 added a comment - On the installation instructions of how to build Mojarra, it should also be mentioned that each release my have a required dependency on the JDK used to build it. E.g, 2.1.25 branch can only be branch with JDK 6 due tools.jar https://wikis.oracle.com/display/GlassFish/JavaServerFacesRI#JavaServerFacesRI-Workingwiththesourcecode <profiles> <profile> <id>default-tools.jar</id> <activation> <property> <name>java.vendor</name> <value>Sun Microsystems Inc.</value> </property> </activation> <dependencies> <dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.6.0</version> <scope>system</scope> <systemPath>$ {java.home} /../lib/tools.jar</systemPath> </dependency> </dependencies> </profile> </profiles> When I had java_home pointing to JDK7 i was unable to build jsf-tools due to compilation errors. Thanks.

          People

          • Assignee:
            rogerk
            Reporter:
            pablo53
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: