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

command line tools fail with SecurityException on OSX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.0-JSR-6
    • 1.0-RC-1
    • None
    • None
    • mac os x 10.4.7, java 1.5.0_06

    Description

      running groovy, groovysh or groovyc results in
      java.lang.SecurityException: Prohibited package name: java.lang
      at java.lang.ClassLoader.preDefineClass(ClassLoader.java:479)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:143)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:143)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:121)
      at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:160)

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            afyfe Andy Fyfe
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: