5 Replies Latest reply on Sep 25, 2007 8:40 AM by alesj

    docbook build error

    starksm64

      After I introduced some chapter tags to fix the broken formatting of the book, I started seeing this error:

      [INFO] [jdocbook:generate]
      [INFO] building formatting result [/home/svn/JBossMC/jbossmc/docs/gettingstarted/en-US/target/docbook/pdf/gettingstarted.pdf]
      Sep 11, 2007 3:51:33 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree
      SEVERE: Couldn't find hyphenation pattern en
      Sep 11, 2007 3:51:34 PM org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm updateData2
      WARNING: Line 1 of a paragraph overflows the available area. (fo:block, location: -1/-1)
      Error at fo:static-content on line 1601 of jar:file:/home/svn/repository.jboss.com/maven2/net/sf/docbook/docbook/1.72.0/docbook-1.72.0.jar!/fo/pagesetup.xsl:
       org.apache.fop.fo.ValidationException: Error(-1/-1): fo:page-sequence is not a valid child element of fo:flow.
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] XSLT problem
      
      Embedded error: error performing translation [; SystemID: jar:file:/home/svn/repository.jboss.com/maven2/net/sf/docbook/docbook/1.72.0/docbook-1.72.0.jar!/fo/pagesetup.xsl; Line#: 1601; Column#: -1] : org.apache.fop.fo.ValidationException: Error(-1/-1): fo:page-sequence is not a valid child element of fo:flow.
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 8 seconds
      [INFO] Finished at: Tue Sep 11 15:51:34 PDT 2007
      [INFO] Final Memory: 26M/302M
      [INFO] ------------------------------------------------------------------------
      [starksm@succubus gettingstarted]$
      




        • 1. Re: docbook build error
          pgier

          The javabeans, spring, and basics pages are included in core.xml. I think the problem is that core already has a chapter id. So the chapters in the other three are nesting chapters.

          • 2. Re: docbook build error
            starksm64

            Ok, that was it. The pdf is generating again and now the structure looks with the latest checkin.

            • 3. Re: docbook build error
              alesj

              This is what I currently get ...


              C:\Java\jdk1.5.0_11\bin\java.exe -classpath C:\java_lib\maven-2.0.7\boot\classworlds-1.1.jar -Dclassworlds.conf=C:\java_lib\maven-2.0.7\bin\m2.conf -Dmaven.home=C:\java_lib\maven-2.0.7 org.codehaus.classworlds.Launcher -f C:/projects/microcontainer/docs/pom.xml generate-sources


              [INFO] Scanning for projects...
              [INFO] Reactor build order:
              [INFO] JBossMC Getting Started Guide (en_US)
              [INFO] JBossMC Getting Started Guide (aggregator)
              [INFO] JBossMC Reference Guide (en_US)
              [INFO] JBossMC Reference Guide (aggregator)
              [INFO] JBoss Microcontainer Docs
              Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jdocbook-plugin/2.0.0/maven-jdocbook-plugin-2.0.0.pom
              Downloading: http://repo1.maven.org/maven2/org/jboss/maven/plugins/maven-jdocbook-plugin/2.0.0/maven-jdocbook-plugin-2.0.0.pom
              [INFO] ------------------------------------------------------------------------
              [ERROR] BUILD ERROR
              [INFO] ------------------------------------------------------------------------
              [INFO] Failed to resolve artifact.

              GroupId: org.jboss.maven.plugins
              ArtifactId: maven-jdocbook-plugin
              Version: 2.0.0

              Reason: Unable to download the artifact from any repository

              org.jboss.maven.plugins:maven-jdocbook-plugin:pom:2.0.0

              from the specified remote repositories:
              central (http://repo1.maven.org/maven2)


              [INFO] ------------------------------------------------------------------------
              [INFO] For more information, run Maven with the -e switch
              [INFO] ------------------------------------------------------------------------
              [INFO] Total time: 1 second
              [INFO] Finished at: Thu Sep 13 21:40:33 CEST 2007
              [INFO] Final Memory: 1M/2M
              [INFO] ------------------------------------------------------------------------

              Process terminated abnormally! Exit code 1

              What am I missing (or how to get this plugin)?


              • 4. Re: docbook build error
                pgier

                Looks like it's not finding the jboss repository.
                I use a profile like this in my local settings.xml:

                 <profile>
                 <id>jboss.repository</id>
                 <activation>
                 <property>
                 <name>!jboss.repository.off</name>
                 </property>
                 </activation>
                 <repositories>
                 <repository>
                 <id>snapshots.jboss.org</id>
                 <url>http://snapshots.jboss.org/maven2</url>
                 <snapshots>
                 <enabled>true</enabled>
                 </snapshots>
                 </repository>
                 <repository>
                 <id>repository.jboss.org</id>
                 <url>http://repository.jboss.org/maven2</url>
                 </repository>
                 </repositories>
                 <pluginRepositories>
                 <pluginRepository>
                 <id>repository.jboss.org</id>
                 <url>http://repository.jboss.org/maven2</url>
                 </pluginRepository>
                 <pluginRepository>
                 <id>snapshots.jboss.org</id>
                 <url>http://snapshots.jboss.org/maven2</url>
                 <snapshots>
                 <enabled>true</enabled>
                 </snapshots>
                 </pluginRepository>
                 </pluginRepositories>
                 </profile>
                 </profiles>
                


                The profile will be on by default, but you can turn it off by using the system property:
                mvn -Djboss.repository.off
                


                Once we get synching with the main maven repo, this won't be a problem anymore.

                • 5. Re: docbook build error
                  alesj

                  Added that to settings, but now my docs build hangs at 18K of pdf file being produced.

                  [INFO] Scanning for projects...
                  [INFO] Reactor build order:
                  [INFO] JBossMC Getting Started Guide (en_US)
                  [INFO] JBossMC Getting Started Guide (aggregator)
                  [INFO] JBossMC Reference Guide (en_US)
                  [INFO] JBossMC Reference Guide (aggregator)
                  [INFO] JBoss Microcontainer Docs
                  WAGON_VERSION: 1.0-beta-2
                  [INFO] ----------------------------------------------------------------------------
                  [INFO] Building JBossMC Getting Started Guide (en_US)
                  [INFO] task-segment: [install]
                  [INFO] ----------------------------------------------------------------------------
                  [INFO] [jdocbook:resources]
                  [INFO] [jdocbook:generate]
                  [INFO] building formatting result [C:\projects\microcontainer\docs\gettingstarted\en-US\target\docbook\pdf\gettingstarted.pdf]