error message - java.lang.SecurityException

80 views
Skip to first unread message

kellygreer1

unread,
Dec 27, 2007, 2:18:31 AM12/27/07
to Groovy Users of Minnesota
Trying to setup Groovy 1.5 on laptop. Had previously done Groovy 1.0
on another machine with no issue. But now on this laptop I'm getting
an error while trying to run any script.

java.lang.SecurityException: Prohibited package name: java.lang

Any ideas on how to troubleshoot?
The rest of the error below.

Kelly Greer
kelly...@nospam.com
change nospam to yahoo


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:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:
260)
at java.net.URLClassLoader.access$000(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.oldFindClass(RootLoader.java:142
)
at
org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:114)
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:12
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:
260)
at java.net.URLClassLoader.access$000(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.oldFindClass(RootLoader.java:142
)
at
org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:114)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java
:91)
at
org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)

Scott Vlaminck

unread,
Dec 27, 2007, 9:15:02 AM12/27/07
to groo...@googlegroups.com
This is a search from the groovy mailing list:

http://www.nabble.com/forum/Search.jtp?forum=11866&local=y&query=java.lang.SecurityException


Most of the posts are older, but they seem to have the same issue you
have. Are you on OSX? Try this:
http://www.nabble.com/Re%3A-SecurityException%3A-Prohibited-package-name-p5170145.html


Scott


--
-------------------------------------------------
Scott Vlaminck // sc...@refactr.com
Refactr LLC // http://refactr.com
mobile // 612-386-9382
-------------------------------------------------

kellygreer1

unread,
Dec 27, 2007, 7:34:22 PM12/27/07
to Groovy Users of Minnesota
Guess I will uninstall Groovy and reinstall it.

Verified all my Path, ClassPath, JAVA_HOME, GROOVY_HOME.
Seems good.

By the way I'm on Windows XP SP2

Thanks for all your help, Scott

Kelly

On Dec 27, 9:15 am, "Scott Vlaminck" <sc...@refactr.com> wrote:
> This is a search from the groovy mailing list:
>
> http://www.nabble.com/forum/Search.jtp?forum=11866&local=y&query=java...
>
> Most of the posts are older, but they seem to have the same issue you
> have. Are you on OSX? Try this:http://www.nabble.com/Re%3A-SecurityException%3A-Prohibited-package-n...
>
> Scott
>
> On 12/27/07, kellygreer1 <kellygre...@yahoo.com> wrote:
>
>
>
>
>
>
>
> > Trying to setup Groovy 1.5 on laptop.  Had previously done Groovy 1.0
> > on another machine with no issue.  But now on this laptop I'm getting
> > an error while trying to run any script.
>
> > java.lang.SecurityException: Prohibited package name: java.lang
>
> > Any ideas on how to troubleshoot?
> > The rest of the error below.
>
> > Kelly Greer
> > kellygre...@nospam.com
> -------------------------------------------------- Hide quoted text -
>
> - Show quoted text -

kellygreer1

unread,
Dec 27, 2007, 8:03:41 PM12/27/07
to Groovy Users of Minnesota
I ended up uninstalling / reinstalling groovy with no luck.
I tester groovysh and groovyc and these seemed to work.

so... I guessed that maybe it is just the launcher/handler that was
screwing up.
i noticed that this now part of the groovy 1.5 setup.

but i just went and created a reg file based on this:
http://adaptivein.blogspot.com/2005/11/run-groovy-in-windows-exploer-directly.html
A guy named Dave helped me on this one under Groovy 1.0 on a previous
post.
This worked!!!! yeah!

I'm working on a .vbs file that finishes configuration of Groovy ...
i'm adding these reg steps to it now.

Kelly

On Dec 27, 7:34 pm, kellygreer1 <kellygre...@yahoo.com> wrote:
> Guess I will uninstall Groovy and reinstall it.
>
> Verified all my Path, ClassPath, JAVA_HOME, GROOVY_HOME.
> Seems good.
>
> By the way I'm on Windows XP SP2
>
> Thanks for all your help, Scott
>
> Kelly
>
> On Dec 27, 9:15 am, "Scott Vlaminck" <sc...@refactr.com> wrote:
>
>
>
> > This is a search from the groovy mailing list:
>
> >http://www.nabble.com/forum/Search.jtp?forum=11866&local=y&query=java...
>
> > Most of the posts are older, but they seem to have the same issue you
> > have. Are you on OSX? Try this:http://www.nabble.com/Re%3A-SecurityException%3A-Prohibited-package-n...
>
> > Scott
>
> > - Show quoted text -- Hide quoted text -

kellygreer1

unread,
Jan 4, 2008, 2:32:34 PM1/4/08
to Groovy Users of Minnesota
new info. SOLUTION

This launcher error stuff I was talking about happens when you have
rt.jar in the classpath

Kelly

On Dec 27 2007, 8:03 pm, kellygreer1 <kellygre...@yahoo.com> wrote:
> I ended up uninstalling / reinstalling groovy with no luck.
> I tester groovysh and groovyc and these seemed to work.
>
> so... I guessed that maybe it is just the launcher/handler that was
> screwing up.
> i noticed that this now part of the groovy 1.5 setup.
>
> but i just went and created a reg file based on this:http://adaptivein.blogspot.com/2005/11/run-groovy-in-windows-exploer-...
Reply all
Reply to author
Forward
0 new messages