You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Lasantha Ranaweera <la...@opensource.lk> on 2009/09/15 13:43:37 UTC

Geronimo Trunk compilation error with JDK5

Folks,

Just noticed that G source cannot be build using JDK5 anymore due to the 
following error. This error will not happen with JDK6. Is this is the 
expected behavior?

Regards,
Lasantha

[INFO] 
------------------------------------------------------------------------
[INFO] 
Trace                                                                   
org.apache.maven.BuildFailureException: Compilation 
failure                    
/home/hd2/work/geronimo/server/plugins/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/connector/HTTPSocketConnector.java:[25,-1] 
cannot access org.eclipse.jetty.server.bio.SocketConnector
bad class file: 
/home/lasantha/.m2/repository/org/eclipse/jetty/jetty-server/8.0.0.M0-SNAPSHOT/jetty-server-8.0.0.M0-SNAPSHOT.jar(org/eclipse/jetty/server/bio/SocketConnector.class)
class file has wrong version 50.0, should be 49.0


        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:580)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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:301)
        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.CompilationFailureException: 
Compilation failure
/home/hd2/work/geronimo/server/plugins/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/connector/HTTPSocketConnector.java:[25,-1] 
cannot access org.eclipse.jetty.server.bio.SocketConnector
bad class file: 
/home/lasantha/.m2/repository/org/eclipse/jetty/jetty-server/8.0.0.M0-SNAPSHOT/jetty-server-8.0.0.M0-SNAPSHOT.jar(org/eclipse/jetty/server/bio/SocketConnector.class)
class file has wrong version 50.0, should be 49.0


Re: Geronimo Trunk compilation error with JDK5

Posted by Jack Cai <gr...@gmail.com>.
Yes, right now we have to use Java 6 to compile trunk.

-Jack

On Tue, Sep 15, 2009 at 7:43 PM, Lasantha Ranaweera
<la...@opensource.lk>wrote:

> Folks,
>
> Just noticed that G source cannot be build using JDK5 anymore due to the
> following error. This error will not happen with JDK6. Is this is the
> expected behavior?
>
> Regards,
> Lasantha
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
>     org.apache.maven.BuildFailureException: Compilation failure
>
>  /home/hd2/work/geronimo/server/plugins/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/connector/HTTPSocketConnector.java:[25,-1]
> cannot access org.eclipse.jetty.server.bio.SocketConnector
> bad class file:
> /home/lasantha/.m2/repository/org/eclipse/jetty/jetty-server/8.0.0.M0-SNAPSHOT/jetty-server-8.0.0.M0-SNAPSHOT.jar(org/eclipse/jetty/server/bio/SocketConnector.class)
> class file has wrong version 50.0, should be 49.0
>
>
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:580)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:500)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:479)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
>       at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.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:301)
>       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.CompilationFailureException: Compilation
> failure
> /home/hd2/work/geronimo/server/plugins/jetty7/geronimo-jetty7/src/main/java/org/apache/geronimo/jetty7/connector/HTTPSocketConnector.java:[25,-1]
> cannot access org.eclipse.jetty.server.bio.SocketConnector
> bad class file:
> /home/lasantha/.m2/repository/org/eclipse/jetty/jetty-server/8.0.0.M0-SNAPSHOT/jetty-server-8.0.0.M0-SNAPSHOT.jar(org/eclipse/jetty/server/bio/SocketConnector.class)
> class file has wrong version 50.0, should be 49.0
>
>