/rpc/RemoteService : Unsupported major.minor version 51.0

61 views
Skip to first unread message

Kumarasamy R

unread,
Jan 1, 2017, 3:17:00 AM1/1/17
to GWT Users
Hi all,

Trying to migrate to 2.8 from 2.7. Resolved all the build issues and successfully done. When I deploy my war into weblogic getting folloing error. 
I verified gwt-servlet jar is in war\WEB-INF\lib\gwt-servlet-2.8.0.jar
Any idea what might cause this issue ?

appreciate your help.

<Jan 1, 2017 2:32:32 AM EST> <Warning> <HTTP> <BEA-101162> <User defined listener weblogic.wsee.deploy.ServletDeployListener failed: java.lang.NoClassDefFoundError: com/google/gwt/user/client/rpc/RemoteService.
java.lang.NoClassDefFoundError: com/google/gwt/user/client/rpc/RemoteService
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)
        Truncated. see log file for complete stacktrace

Caused By: java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.google.gwt.user.client.rpc.RemoteService'
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:275)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:56)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177)
        Truncated. see log file for complete stacktrace

Caused By: java.lang.UnsupportedClassVersionError: com/google/gwt/user/client/rpc/RemoteService : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericClassLoader.java:344)
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:301)
        Truncated. see log file for complete stacktrace
>

Lars

unread,
Jan 1, 2017, 3:26:57 AM1/1/17
to GWT Users
I guess you are using Java 6, but you need Java 7 or higher (https://en.m.wikipedia.org/wiki/Java_class_file)...

Kumarasamy R

unread,
Jan 1, 2017, 3:40:21 AM1/1/17
to GWT Users
I just noticed that weblogic is still running at JDK 1.6. That might be the reason. It will be very hard for now to upgrade sdk on weblogic since other legacy applications are in same server.

Is there any alternate solution ?

Thanks
Kumar

Lars

unread,
Jan 1, 2017, 1:00:54 PM1/1/17
to GWT Users
You could try to run the 2.7 gwt servlet jar in the production env and the 2.8 in the development env... this is for sure 100% not a supported solution, but it worked for me to get the 2.8 speed (in times until it was final) together with a 2.7 env :-)

Juan Pablo Gardella

unread,
Jan 2, 2017, 7:21:03 AM1/2/17
to GWT Users

On Sun, 1 Jan 2017 at 15:01 Lars <lars.gem...@gmail.com> wrote:
You could try to run the 2.7 gwt servlet jar in the production env and the 2.8 in the development env... this is for sure 100% not a supported solution, but it worked for me to get the 2.8 speed (in times until it was final) together with a 2.7 env :-)

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages