Hi Tim,

Thanks for the response.


On 6/1/08 8:47 AM, "Tim Kettler" <[EMAIL PROTECTED]> wrote:
> Make sure your classes aren't in the java.lang package i.e. they aren't
> like java.lang.MyClass.

Funny...I guess I could see how someone new to java might not understand
this language/security constraint.  Definitely not an issue as I use our own
domain name package structure.

> You can also try to run maven with the -X option
> to show more information about the error like the

Doing this produces this stacktrace:

org.apache.maven.lifecycle.LifecycleExecutionException: Fatal error
compiling at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:583)
    at  
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:499)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:478)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:330)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:291)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:142)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Fatal error
compiling
    at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.ja
va:498)
    at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
    at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:451)
    at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:558)
    ... 16 more
Caused by: java.lang.SecurityException: Prohibited package name: java.lang
    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:534)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:669)
    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.plexus.compiler.javac.IsolatedClassLoader.loadClass(IsolatedCla
ssLoader.java:56)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    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.plexus.compiler.javac.IsolatedClassLoader.loadClass(IsolatedCla
ssLoader.java:56)
    at 
org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompi
ler.java:398)
    at 
org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:
141)
    at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.ja
va:493)

So, it appears as though its a security/permissions thing with OS X.  I
moved the same source and the same version of Maven (2.0.9) to a Linux
server we have and it compiles fine.

I even try wiping the local repo, but still get the issue.  I guess I need
to figure what changes I need to make to Apple's "version" of the JDK in
order to get around this.

If anyone has any idea, I'd love to hear it.

Thanks again,
John



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to