Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.12
    • Fix Version/s: 2.1.12
    • Component/s: Blocks: Batik, Blocks: FOP
    • Labels:
      None
    • Other Info:
      Patch available
    • Affects version (Component):
      Blocks: FOP - 1.0.0

      Description

      Here are instructions for updating the current FOP-0.95 serializer in Cocoon-2.1.12-dev (see https://issues.apache.org/jira/browse/COCOON-2289):

      1. checkout http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X
      2. download (and build) FOP-1.0 from http://xmlgraphics.apache.org/fop/download.html
      3. update jars in %COCOON_HOME%\lib\*:
          -replace %COCOON_HOME%\lib\optional\batik-all-1.6.jar with %FOP_HOME%\lib\batik-all-1.7.jar
          -replace %COCOON_HOME%\lib\optional\fop-0.95.jar with %FOP_HOME%\build\fop.jar
          -replace %COCOON_HOME%\lib\optional\xmlgraphics-commons-1.3.1.jar with %FOP_HOME%\lib\xmlgraphics-commons-1.4.jar
          -copy %FOP_HOME%\lib\xml-apis-ext-1.3.04.jar to %COCOON_HOME%\lib\endorsed
          -copy %FOP_HOME%\lib\serializer-2.7.0.jar to %COCOON_HOME%\lib\optional
      4. update references to these jars in %COCOON_HOME%\lib\jars.xml (see attached file)
      5. build Cocoon
      1. jars.xml
        44 kB
        ron van den branden
      2. jars.patch
        2 kB
        ron van den branden
      3. COCOON-2295-FOP_1_1.patch
        25 kB
        Francesco Chicchiriccò
      4. COCOON-2295.patch
        20 kB
        Francesco Chicchiriccò

        Issue Links

          Activity

          Hide
          ron van den branden added a comment -
          Updates for %COCOON_HOME%\lib\jars.xml for integration of FOP-1.0.
          2 versions:
            -jars.patch: patch against current trunk (rev. 932704)
            -jars.xml: full updated file
          Show
          ron van den branden added a comment - Updates for %COCOON_HOME%\lib\jars.xml for integration of FOP-1 .0. 2 versions:   -jars.patch: patch against current trunk (rev. 932704)   -jars.xml: full updated file
          Hide
          Jasha Joachimsthal added a comment -
          The FOP upgrade works fine for the FOP block but it breaks the SVGSerializer in the Batik block. See the JPEG and PNG examples at http://localhost:8888/samples/blocks/batik/welcome (local build)
          Show
          Jasha Joachimsthal added a comment - The FOP upgrade works fine for the FOP block but it breaks the SVGSerializer in the Batik block. See the JPEG and PNG examples at http://localhost:8888/samples/blocks/batik/welcome (local build)
          Hide
          Jasha Joachimsthal added a comment -
          Can't make the Batik block to work for JPEG/PNG serialization so won't apply this patch.
          Show
          Jasha Joachimsthal added a comment - Can't make the Batik block to work for JPEG/PNG serialization so won't apply this patch.
          Hide
          ron van den branden added a comment -
          deleted duplicate line
          Show
          ron van den branden added a comment - deleted duplicate line
          Hide
          Francesco Chicchiriccò added a comment -
          This patch updates
                lib/optional/batik-all-1.6.jar
                lib/optional/fop-0.95.jar
                lib/optional/xmlgraphics-commons-1.3.1.jar

          to
                lib/optional/batik-all-1.7.jar
                lib/optional/fop-1.0.jar
                lib/optional/xmlgraphics-commons-1.5.jar

          and adds
                lib/endorsed/xml-apis-ext-1.4.01.jar

          The compatibility problem of SVGSerializer with batik 1.7 (mentioned in previous comments) has been solved with fixes from [1].

          [1] http://markmail.org/message/mf75oaj6ncgpep7a
          Show
          Francesco Chicchiriccò added a comment - This patch updates       lib/optional/batik-all-1.6.jar       lib/optional/fop-0.95.jar       lib/optional/xmlgraphics-commons-1.3.1.jar to       lib/optional/batik-all-1.7.jar       lib/optional/fop-1.0.jar       lib/optional/xmlgraphics-commons-1.5.jar and adds       lib/endorsed/xml-apis-ext-1.4.01.jar The compatibility problem of SVGSerializer with batik 1.7 (mentioned in previous comments) has been solved with fixes from [1]. [1] http://markmail.org/message/mf75oaj6ncgpep7a
          Hide
          Francesco Chicchiriccò added a comment -
          Another patch for upgrade to FOP 1.1
          Show
          Francesco Chicchiriccò added a comment - Another patch for upgrade to FOP 1.1
          Hide
          David Crossley added a comment - - edited
          According to the notes related to COCOON-2333, then FOP 1.0 is the last release for Java 1.4 (our required version). I hope that is wrong and we can move to FOP 1.1
          Show
          David Crossley added a comment - - edited According to the notes related to COCOON-2333 , then FOP 1.0 is the last release for Java 1.4 (our required version). I hope that is wrong and we can move to FOP 1.1
          Hide
          Francesco Chicchiriccò added a comment -
          According to [1] FOP 1.1 still requires JDK 1.4.

          If the patch looks fine, I'd commit and close this issue.

          [1] http://xmlgraphics.apache.org/fop/1.1/running.html
          Show
          Francesco Chicchiriccò added a comment - According to [1] FOP 1.1 still requires JDK 1.4. If the patch looks fine, I'd commit and close this issue. [1] http://xmlgraphics.apache.org/fop/1.1/running.html
          Hide
          Francesco Chicchiriccò added a comment -
          Not receiving any feedback in the last days, committing provided patch and closing issue.
          http://svn.apache.org/r1450774
          Show
          Francesco Chicchiriccò added a comment - Not receiving any feedback in the last days, committing provided patch and closing issue. http://svn.apache.org/r1450774
          Hide
          Hudson added a comment -
          Integrated in Cocoon 2.1.X #83 (See [https://builds.apache.org/job/Cocoon%202.1.X/83/])
              [COCOON-2295] #resolve (Revision 1450774)

               Result = SUCCESS
          ilgrosso : http://svn.apache.org/viewvc/?view=rev&rev=1450774
          Files :
          * /cocoon/branches/BRANCH_2_1_X
          * /cocoon/branches/BRANCH_2_1_X/lib/endorsed/xml-apis-ext-1.4.01.jar
          * /cocoon/branches/BRANCH_2_1_X/lib/jars.xml
          * /cocoon/branches/BRANCH_2_1_X/lib/optional/batik-all-1.6.jar
          * /cocoon/branches/BRANCH_2_1_X/lib/optional/batik-all-1.7.jar
          * /cocoon/branches/BRANCH_2_1_X/lib/optional/fop-0.95.jar
          * /cocoon/branches/BRANCH_2_1_X/lib/optional/fop-1.1.jar
          * /cocoon/branches/BRANCH_2_1_X/lib/optional/xmlgraphics-commons-1.3.1.jar
          * /cocoon/branches/BRANCH_2_1_X/lib/optional/xmlgraphics-commons-1.5.jar
          * /cocoon/branches/BRANCH_2_1_X/misc/notes/review-jars.txt
          * /cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/serialization/AbstractDOMSerializer.java
          * /cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/serialization/SVGSerializer.java
          * /cocoon/branches/BRANCH_2_1_X/src/blocks/fop/java/org/apache/cocoon/components
          Show
          Hudson added a comment - Integrated in Cocoon 2.1.X #83 (See [ https://builds.apache.org/job/Cocoon%202.1.X/83/ ])     [ COCOON-2295 ] #resolve (Revision 1450774)      Result = SUCCESS ilgrosso : http://svn.apache.org/viewvc/?view=rev&rev=1450774 Files : * /cocoon/branches/BRANCH_2_1_X * /cocoon/branches/BRANCH_2_1_X/lib/endorsed/xml-apis-ext-1.4.01.jar * /cocoon/branches/BRANCH_2_1_X/lib/jars.xml * /cocoon/branches/BRANCH_2_1_X/lib/optional/batik-all-1.6.jar * /cocoon/branches/BRANCH_2_1_X/lib/optional/batik-all-1.7.jar * /cocoon/branches/BRANCH_2_1_X/lib/optional/fop-0.95.jar * /cocoon/branches/BRANCH_2_1_X/lib/optional/fop-1.1.jar * /cocoon/branches/BRANCH_2_1_X/lib/optional/xmlgraphics-commons-1.3.1.jar * /cocoon/branches/BRANCH_2_1_X/lib/optional/xmlgraphics-commons-1.5.jar * /cocoon/branches/BRANCH_2_1_X/misc/notes/review-jars.txt * /cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/serialization/AbstractDOMSerializer.java * /cocoon/branches/BRANCH_2_1_X/src/blocks/batik/java/org/apache/cocoon/serialization/SVGSerializer.java * /cocoon/branches/BRANCH_2_1_X/src/blocks/fop/java/org/apache/cocoon/components
          Hide
          Francesco Chicchiriccò added a comment -
          As per recent discussion [1], FOP 1.1 actually requires JDK 1.5: need to move back to FOP 1.0.

          [1] http://markmail.org/message/kwtsv42rzynvigdc
          Show
          Francesco Chicchiriccò added a comment - As per recent discussion [1], FOP 1.1 actually requires JDK 1.5: need to move back to FOP 1.0. [1] http://markmail.org/message/kwtsv42rzynvigdc
          Show
          Francesco Chicchiriccò added a comment - http://svn.apache.org/r1452275
          Hide
          Hudson added a comment -
          Integrated in Cocoon 2.1.X #85 (See [https://builds.apache.org/job/Cocoon%202.1.X/85/])
              [COCOON-2295] Back to FOP 1.0 (Revision 1452275)

               Result = SUCCESS
          ilgrosso : http://svn.apache.org/viewvc/?view=rev&rev=1452275
          Files :
          * /cocoon/branches/BRANCH_2_1_X/lib/jars.xml
          * /cocoon/branches/BRANCH_2_1_X/lib/optional/fop-1.0.jar
          * /cocoon/branches/BRANCH_2_1_X/lib/optional/fop-1.1.jar
          * /cocoon/branches/BRANCH_2_1_X/misc/notes/review-jars.txt
          * /cocoon/branches/BRANCH_2_1_X/src/blocks/fop/java/org/apache/cocoon/components
          * /cocoon/branches/BRANCH_2_1_X/src/blocks/fop/java/org/apache/cocoon/components/renderer
          * /cocoon/branches/BRANCH_2_1_X/src/blocks/fop/java/org/apache/cocoon/components/renderer/ExtendableRendererFactory.java
          * /cocoon/branches/BRANCH_2_1_X/src/blocks/fop/java/org/apache/cocoon/components/renderer/RendererFactory.java
          Show
          Hudson added a comment - Integrated in Cocoon 2.1.X #85 (See [ https://builds.apache.org/job/Cocoon%202.1.X/85/ ])     [ COCOON-2295 ] Back to FOP 1.0 (Revision 1452275)      Result = SUCCESS ilgrosso : http://svn.apache.org/viewvc/?view=rev&rev=1452275 Files : * /cocoon/branches/BRANCH_2_1_X/lib/jars.xml * /cocoon/branches/BRANCH_2_1_X/lib/optional/fop-1.0.jar * /cocoon/branches/BRANCH_2_1_X/lib/optional/fop-1.1.jar * /cocoon/branches/BRANCH_2_1_X/misc/notes/review-jars.txt * /cocoon/branches/BRANCH_2_1_X/src/blocks/fop/java/org/apache/cocoon/components * /cocoon/branches/BRANCH_2_1_X/src/blocks/fop/java/org/apache/cocoon/components/renderer * /cocoon/branches/BRANCH_2_1_X/src/blocks/fop/java/org/apache/cocoon/components/renderer/ExtendableRendererFactory.java * /cocoon/branches/BRANCH_2_1_X/src/blocks/fop/java/org/apache/cocoon/components/renderer/RendererFactory.java
          Hide
          Francesco Chicchiriccò added a comment -
          FYI, as per FOP-2218 the document [1] has been updated.

          [1] http://xmlgraphics.apache.org/fop/1.1/running.html
          Show
          Francesco Chicchiriccò added a comment - FYI, as per FOP-2218 the document [1] has been updated. [1] http://xmlgraphics.apache.org/fop/1.1/running.html

            People

            • Assignee:
              Francesco Chicchiriccò
              Reporter:
              ron van den branden
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development