GWT RPC and GoDaddy Shared Hosting
- by Mike Apolis
Hi,
I've deployed the sample Stock Watcher app to my GoDaddy Hosting site,
and I get the error below. I've tried compiling the Project in
Eclipse with JRE 1.5 because my Host is using jre 1.5. I think the
issue is the "gwt-servlet.jar" is not compatible with jre 1.5. Can
anyone confirm this. The project runs fine on my local machine using
JRE 1.6. Unfortunately GoDaddy will not upgrade my shared hosting
account jre to 1.6.
GoDaddy Server Setup:
Tomcat Version 5.0.27
JRE 1.5_22
Error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Error allocating a servlet instance
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
117)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
535)
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:
417)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
160)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
675)
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:595)
root cause
java.lang.UnsupportedClassVersionError: Bad version number in .class
file
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:621)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
124)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:
1634)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:
860)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1307)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1189)
java.security.AccessController.doPrivileged(Native Method)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
117)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
535)
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:
417)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
160)
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
675)
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:595)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.0.27 logs.
Apache Tomcat/5.0.27