6 Replies Latest reply on Jan 10, 2011 10:59 PM by derek lee

    mvn jbpm5  jbpm-docs error

    derek lee Newbie

      Hi, all

       

      i mvn jbpm-docs in fedora13. it throwed the following exception:

       

      --------------------------------

       

      [ERROR] Failed to execute goal org.jboss.maven.plugins:maven-jdocbook-plugin:2.2.3:generate (default-generate) on project jbpm-docs-flow: XSLT problem: error rendering [org.xml.sax.SAXParseException: InvalidCharInLiteral] on master.xml -> [Help 1]

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jboss.maven.plugins:maven-jdocbook-plugin:2.2.3:generate (default-generate) on project jbpm-docs-flow: XSLT problem

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)

       

       

       

      --------------------------------

       

      anyone can help? thanks in advance!!

       

      derek lee.

       

       

       

      [ERROR] Failed to execute goal org.jboss.maven.plugins:maven-jdocbook-plugin:2.2.3:generate (default-generate) on project jbpm-docs-flow: XSLT problem: error rendering [org.xml.sax.SAXParseException: InvalidCharInLiteral] on master.xml -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jboss.maven.plugins:maven-jdocbook-plugin:2.2.3:generate (default-generate) on project jbpm-docs-flow: XSLT problem
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:203)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
      at org.

        • 1. Re: mvn jbpm5  jbpm-docs error
          Kris Verlaenen Master

          How exactly did you get this exception?  Did you do "mvn install" install the jbpm-docs folder?

           

          Would be useful if you could paste the entire output of this command, and the version of maven you're using, as I haven't seen this issue before.

           

          Kris

          • 2. Re: mvn jbpm5  jbpm-docs error
            derek lee Newbie

            hi, kris

            thank you for your reply.

            i did it again in window os.my mvn version is 2.0.9,  and i got the error like this:

            ----------------------------------

            F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs>mvn package

             

            F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs>set MAVEN_OPTS= -Xms256m -Xmx768m

            [INFO] Scanning for projects...

            [INFO] Reactor build order:

            [INFO]   jBPM :: Documentation

            [INFO]   jBPM :: Documentation :: Flow

            [INFO] ------------------------------------------------------------------------

            [INFO] Building jBPM :: Documentation

            [INFO]    task-segment: [package]

            [INFO] ------------------------------------------------------------------------

            [INFO] [site:attach-descriptor]

            [INFO] Preparing source:jar

            [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

            [INFO] No goals needed for project - skipping

            [INFO] [source:jar {execution: default}]

            [INFO] Preparing source:test-jar

            [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

            [WARNING] Removing: test-jar from forked lifecycle, to prevent recursive invocat

            ion.

            [INFO] No goals needed for project - skipping

            [INFO] [source:test-jar {execution: default}]

            [INFO] ------------------------------------------------------------------------

            [INFO] Building jBPM :: Documentation :: Flow

            [INFO]    task-segment: [package]

            [INFO] ------------------------------------------------------------------------

            [INFO] [jdocbook:resources]

            [INFO] Expanding: C:\Documents and Settings\Administrator\.m2\repository\org\jbo

            ss\jbossorg-jdocbook-style\1.1.1\jbossorg-jdocbook-style-1.1.1.jdocbook-style in

            to F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs\jbpm-docs-flow\target\docbook\stagin

            g

            [INFO] [jdocbook:generate]

            [INFO] Processing en-US -> html_single

            redirecting output to file [F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs\jbpm-docs-f

            low\target\docbook\work\log\console-en-US-html_single.log]

            Error on line 4 column 17 of file:/F:/JAVA/jbpm5/jbpm-5.0-CR1-src/jbpm-docs/jbpm

            -docs-flow/src/main/docbook/en-US/master.xml:

              Error reported by XML parser: InvalidCharInLiteral

            [INFO] ------------------------------------------------------------------------

            [ERROR] BUILD ERROR

            [INFO] ------------------------------------------------------------------------

            [INFO] XSLT problem

             

            Embedded error: error rendering [org.xml.sax.SAXParseException: InvalidCharInLit

            eral] on master.xml

            [INFO] ------------------------------------------------------------------------

            [INFO] For more information, run Maven with the -e switch

            [INFO] ------------------------------------------------------------------------

            [INFO] Total time: 10 seconds

            [INFO] Finished at: Thu Jan 06 13:37:48 CST 2011

            [INFO] Final Memory: 22M/247M

            [INFO] ------------------------------------------------------------------------

             

            F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs>

             

             

            ----------------------------------------

             

            thanks

            F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs>mvn package
            F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs>set MAVEN_OPTS= -Xms256m -Xmx768m
            [INFO] Scanning for projects...
            [INFO] Reactor build order:
            [INFO]   jBPM :: Documentation
            [INFO]   jBPM :: Documentation :: Flow
            [INFO] ------------------------------------------------------------------------
            [INFO] Building jBPM :: Documentation
            [INFO]    task-segment: [package]
            [INFO] ------------------------------------------------------------------------
            [INFO] [site:attach-descriptor]
            [INFO] Preparing source:jar
            [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
            [INFO] No goals needed for project - skipping
            [INFO] [source:jar {execution: default}]
            [INFO] Preparing source:test-jar
            [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.
            [WARNING] Removing: test-jar from forked lifecycle, to prevent recursive invocat
            ion.
            [INFO] No goals needed for project - skipping
            [INFO] [source:test-jar {execution: default}]
            [INFO] ------------------------------------------------------------------------
            [INFO] Building jBPM :: Documentation :: Flow
            [INFO]    task-segment: [package]
            [INFO] ------------------------------------------------------------------------
            [INFO] [jdocbook:resources]
            [INFO] Expanding: C:\Documents and Settings\Administrator\.m2\repository\org\jbo
            ss\jbossorg-jdocbook-style\1.1.1\jbossorg-jdocbook-style-1.1.1.jdocbook-style in
            to F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs\jbpm-docs-flow\target\docbook\stagin
            g
            [INFO] [jdocbook:generate]
            [INFO] Processing en-US -> html_single
            redirecting output to file [F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs\jbpm-docs-f
            low\target\docbook\work\log\console-en-US-html_single.log]
            Error on line 4 column 17 of file:/F:/JAVA/jbpm5/jbpm-5.0-CR1-src/jbpm-docs/jbpm
            -docs-flow/src/main/docbook/en-US/master.xml:
              Error reported by XML parser: InvalidCharInLiteral
            [INFO] ------------------------------------------------------------------------
            [ERROR] BUILD ERROR
            [INFO] ------------------------------------------------------------------------
            [INFO] XSLT problem
            Embedded error: error rendering [org.xml.sax.SAXParseException: InvalidCharInLit
            eral] on master.xml
            [INFO] ------------------------------------------------------------------------
            [INFO] For more information, run Maven with the -e switch
            [INFO] ------------------------------------------------------------------------
            [INFO] Total time: 10 seconds
            [INFO] Finished at: Thu Jan 06 13:37:48 CST 2011
            [INFO] Final Memory: 22M/247M
            [INFO] ------------------------------------------------------------------------
            F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs>

            • 3. mvn jbpm5  jbpm-docs error
              Kris Verlaenen Master

              Could you try with maven 2.2.1 or 3.x?  Not sure why it's not complaining because I set minimal maven version to 2.2.1

              To be honest, I haven't seen this error before, so not sure what's causing it, but updating maven might help.

              If not, let me know.

               

              Kris

              • 4. mvn jbpm5  jbpm-docs error
                derek lee Newbie

                still error.

                 

                i update my mvn to 2.2.1.

                 

                by the way , the source code was downloaded from http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-5.0-CR1/jbpm-5.0-CR1-src.zip/download.

                not checked form svn.

                 

                ------------------------------------------------

                 

                 

                F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs>mvn -version

                Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)

                Java version: 1.6.0_18

                Java home: C:\Program Files\Java\jdk1.6.0_18\jre

                Default locale: zh_CN, platform encoding: GBK

                OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

                F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs>mvn install

                [INFO] Scanning for projects...

                [INFO] Reactor build order:

                [INFO]   jBPM :: Documentation

                [INFO]   jBPM :: Documentation :: Flow

                [INFO] ------------------------------------------------------------------------

                [INFO] Building jBPM :: Documentation

                [INFO]    task-segment: [install]

                [INFO] ------------------------------------------------------------------------

                [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]

                [INFO] Preparing source:jar

                [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

                [INFO] No goals needed for project - skipping

                [INFO] [source:jar {execution: default}]

                [INFO] Preparing source:test-jar

                [WARNING] Removing: jar from forked lifecycle, to prevent recursive invocation.

                [WARNING] Removing: test-jar from forked lifecycle, to prevent recursive invocat

                ion.

                [INFO] No goals needed for project - skipping

                [INFO] [source:test-jar {execution: default}]

                [INFO] [install:install {execution: default-install}]

                [INFO] Installing F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs\pom.xml to C:\Documen

                ts and Settings\Administrator\.m2\repository\org\jbpm\jbpm-docs\5.0-CR1\jbpm-doc

                s-5.0-CR1.pom

                [INFO] ------------------------------------------------------------------------

                [INFO] Building jBPM :: Documentation :: Flow

                [INFO]    task-segment: [install]

                [INFO] ------------------------------------------------------------------------

                [INFO] [jdocbook:resources {execution: default-resources}]

                [INFO] Expanding: C:\Documents and Settings\Administrator\.m2\repository\org\jbo

                ss\jbossorg-jdocbook-style\1.1.1\jbossorg-jdocbook-style-1.1.1.jdocbook-style in

                to F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs\jbpm-docs-flow\target\docbook\stagin

                g

                [INFO] [jdocbook:generate {execution: default-generate}]

                [INFO] Processing en-US -> html_single

                redirecting output to file [F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs\jbpm-docs-f

                low\target\docbook\work\log\console-en-US-html_single.log]

                Error on line 4 column 17 of file:/F:/JAVA/jbpm5/jbpm-5.0-CR1-src/jbpm-docs/jbpm

                -docs-flow/src/main/docbook/en-US/master.xml:

                  Error reported by XML parser: InvalidCharInLiteral

                [INFO] ------------------------------------------------------------------------

                [ERROR] BUILD ERROR

                [INFO] ------------------------------------------------------------------------

                [INFO] XSLT problem

                 

                 

                Embedded error: error rendering [org.xml.sax.SAXParseException: InvalidCharInLit

                eral] on master.xml

                [INFO] ------------------------------------------------------------------------

                [INFO] For more information, run Maven with the -e switch

                [INFO] ------------------------------------------------------------------------

                [INFO] Total time: 20 seconds

                [INFO] Finished at: Tue Jan 11 09:52:24 CST 2011

                [INFO] Final Memory: 24M/53M

                [INFO] ------------------------------------------------------------------------

                F:\JAVA\jbpm5\jbpm-5.0-CR1-src\jbpm-docs>

                • 5. mvn jbpm5  jbpm-docs error
                  Kris Verlaenen Master

                  Alright, this seemed to be a locale issue.  After I changed my locale to yours, I got the same error.  Apparently, the current data is written out and in some languages this might include characters which aren't accepted by the XML parser.  So I changed the output data to dd/MM/yyy and now it seems to work.  I committed this so it will be included in the future, but if you want to try it out locally, simply do this change to your source code:

                   

                  https://github.com/krisv/jbpm/commit/c7bef4e9914efcdebff3a649fd80714a1600d3eb

                   

                  Kris