Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2948

classloading weird issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.5.7, 1.6-beta-2
    • Ant integration
    • None

    Description

      I have such thing working in our CI environment but couldn't figure out why is it not working when done from command line.

      download http://anonsvn.jboss.org/repos/repository.jboss.org/maven2/jboss/jbossall-client/4.2.2.GA/jbossall-client-4.2.2.GA.jar to jbossall-client.jar

      "groovy -cp jbossall-client.jar groovy_bug.groovy" works fine

      "ant -f groovy_bug.xml" throws an exception although task's classpath is set and otherwise classes from jbossall-client.jar are resolved:
      javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]

      "ant -lib . -f groovy_bug.xml" works fine.

      Attachments

        1. groovy_ant_fork.patch
          10 kB
          Paul King
        2. groovy_bug.xml
          0.5 kB
          A
        3. groovy_bug.groovy
          2 kB
          A

        Activity

          People

            paulk Paul King
            avalon A
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: