Spring Roo
  1. Spring Roo
  2. ROO-106

Unable to create project from petclinic sample script due to XPath exception

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0.M2
    • Fix Version/s: 1.0.0.RC1
    • Component/s: PERSISTENCE
    • Labels:
      None
    • Environment:

      Description

      Running the clinic.roo script fails with: "org.apache.xpath.domapi.XPathStylesheetDOM3Exception: Prefix must resolve to a namespace: tx"

      Attached log from the run.

      1. clinic_fail_xpath_exception.txt
        1 kB
        Robert Roland
      2. error.txt
        8 kB
        Robert Roland

        Issue Links

          Activity

          Hide
          Ben Alex added a comment -

          Robert, would you mind assisting us understand the root cause of this issue by loading the Roo shell, typing "development mode" and pressing enter, then running the script again. Would you then please paste the full exception message and stack trace that follows? Thanks very much.

          Show
          Ben Alex added a comment - Robert, would you mind assisting us understand the root cause of this issue by loading the Roo shell, typing "development mode" and pressing enter, then running the script again. Would you then please paste the full exception message and stack trace that follows? Thanks very much.
          Hide
          Robert Roland added a comment -

          Hi Ben,

          The output from "development mode" is attached.

          Thanks!

          Show
          Robert Roland added a comment - Hi Ben, The output from "development mode" is attached. Thanks!
          Hide
          Stefan Schmidt added a comment -

          It seems that the XPath parser in the IBM J9 JVM requires more strict n namespace awareness. This might potentially require major refactoring in many add-ons. I will review this further.

          Show
          Stefan Schmidt added a comment - It seems that the XPath parser in the IBM J9 JVM requires more strict n namespace awareness. This might potentially require major refactoring in many add-ons. I will review this further.
          Hide
          Stefan Schmidt added a comment -

          Roo should work with the IBM JDK 6 as of revision 163. This was tested in the following environment.

          java -version
          java version "1.6.0"
          Java(TM) SE Runtime Environment (build pxi3260sr5-20090529_04(SR5))
          IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr5-20090519_35743 (JIT enabled, AOT enabled)
          J9VM - 20090519_035743_lHdSMr
          JIT - r9_20090518_2017
          GC - 20090417_AA)
          JCL - 20090529_01

          I will leave this ticket open pending further testing against other JDKs.

          Any feedback about testing on other JDKs is appreciated .

          -Stefan

          Show
          Stefan Schmidt added a comment - Roo should work with the IBM JDK 6 as of revision 163. This was tested in the following environment. java -version java version "1.6.0" Java(TM) SE Runtime Environment (build pxi3260sr5-20090529_04(SR5)) IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr5-20090519_35743 (JIT enabled, AOT enabled) J9VM - 20090519_035743_lHdSMr JIT - r9_20090518_2017 GC - 20090417_AA) JCL - 20090529_01 I will leave this ticket open pending further testing against other JDKs. Any feedback about testing on other JDKs is appreciated . -Stefan
          Hide
          Stefan Schmidt added a comment -

          Status update on JDK tests.

          The following JDKs have been tested on a 32bit Linux:

          vendor: SUN
          java version "1.6.0_10"
          Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
          Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode)

          vendor: IBM
          java version "1.6.0"
          Java(TM) SE Runtime Environment (build pxi3260sr5-20090529_04(SR5))
          IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr5-20090519_35743 (JIT enabled, AOT enabled)
          J9VM - 20090519_035743_lHdSMr
          JIT - r9_20090518_2017
          GC - 20090417_AA)
          JCL - 20090529_01

          vendor: ORACLE
          java version "1.6.0_11"
          Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
          BEA JRockit(R) (build R27.6.3-40_o-112056-1.6.0_11-20090318-2103-linux-ia32, compiled mode)

          vendor: ASF
          Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
          java version "1.5.0"
          pre-alpha : not complete or compatible
          svn = r533000, (Apr 27 2007), Linux/ia32/gcc 3.3.3, release build
          http://incubator.apache.org/harmony

          The SUN, IBM and ORACLE JDKs pass tests without problems now (after some adjustments). The ASF Harmony JDK fails, however, it is still in pre-alpha status.

          Next I will test the Java JDKs for these vendors.

          Show
          Stefan Schmidt added a comment - Status update on JDK tests. The following JDKs have been tested on a 32bit Linux: vendor: SUN java version "1.6.0_10" Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode) vendor: IBM java version "1.6.0" Java(TM) SE Runtime Environment (build pxi3260sr5-20090529_04(SR5)) IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr5-20090519_35743 (JIT enabled, AOT enabled) J9VM - 20090519_035743_lHdSMr JIT - r9_20090518_2017 GC - 20090417_AA) JCL - 20090529_01 vendor: ORACLE java version "1.6.0_11" Java(TM) SE Runtime Environment (build 1.6.0_11-b03) BEA JRockit(R) (build R27.6.3-40_o-112056-1.6.0_11-20090318-2103-linux-ia32, compiled mode) vendor: ASF Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable. java version "1.5.0" pre-alpha : not complete or compatible svn = r533000, (Apr 27 2007), Linux/ia32/gcc 3.3.3, release build http://incubator.apache.org/harmony The SUN, IBM and ORACLE JDKs pass tests without problems now (after some adjustments). The ASF Harmony JDK fails, however, it is still in pre-alpha status. Next I will test the Java JDKs for these vendors.
          Hide
          Stefan Schmidt added a comment -

          Tested against JDK 5 versions of all vendors:

          java version "1.5.0_17"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04)
          BEA JRockit(R) (build R27.6.3-40_o-112056-1.5.0_17-20090318-2103-linux-ia32, compiled mode)

          java version "1.5.0_17"
          Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04)
          Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode)

          Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable.
          java version "1.5.0"
          pre-alpha : not complete or compatible
          svn = r782693, (Jun 12 2009), Linux/ia32/gcc 4.1.2, release build
          http://harmony.apache.org

          Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable.
          java version "1.5.0"
          pre-alpha : not complete or compatible
          svn = r782693, (Jun 12 2009), Linux/ia32/gcc 4.1.2, release build
          http://harmony.apache.org

          All JDK 5 versions work (including Harmony).

          Closing ticket, concluding that Roo now supports all major JDKs (excluding pre-alpha of Harmony JDK 6).

          Show
          Stefan Schmidt added a comment - Tested against JDK 5 versions of all vendors: java version "1.5.0_17" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04) BEA JRockit(R) (build R27.6.3-40_o-112056-1.5.0_17-20090318-2103-linux-ia32, compiled mode) java version "1.5.0_17" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_17-b04) Java HotSpot(TM) Server VM (build 1.5.0_17-b04, mixed mode) Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable. java version "1.5.0" pre-alpha : not complete or compatible svn = r782693, (Jun 12 2009), Linux/ia32/gcc 4.1.2, release build http://harmony.apache.org Apache Harmony Launcher : (c) Copyright 1991, 2009 The Apache Software Foundation or its licensors, as applicable. java version "1.5.0" pre-alpha : not complete or compatible svn = r782693, (Jun 12 2009), Linux/ia32/gcc 4.1.2, release build http://harmony.apache.org All JDK 5 versions work (including Harmony). Closing ticket, concluding that Roo now supports all major JDKs (excluding pre-alpha of Harmony JDK 6).

            People

            • Assignee:
              Stefan Schmidt
              Reporter:
              Robert Roland
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: