Re: JSF 2.1 + Google App Engine SDK 1.7

309 views
Skip to first unread message

André Pankraz

unread,
Aug 16, 2012, 5:30:04 PM8/16/12
to google-a...@googlegroups.com
Hi,

Last time I tried it (3 month ago) you couldn't deploy Java code with JVM Bytecode target = 1.7.
Havn't read something about an update yet.
Try target=1.6 or with Eclipse JDK 6 compatibility.

Gest regards,
André


Am Donnerstag, 16. August 2012 22:11:19 UTC+2 schrieb Mateus Barni:

I followed this guide to make a JSF 2.1 project and deploy it to Google App Engine:

https://sites.google.com/a/wildstartech.com/adventures-in-java/Java-Platform-Enterprise-Edition/JavaServer-Faces/javaserver-faces-21/configuring-javaserver-faces-21-to-run-on-the-google-app-engine-using-eclipse

I works perfectly when I run it locally, but when I try to deploy the app at GAE, the following error occurs:

Uncaught exception from servlet java.lang.UnsupportedClassVersionError: com/sun/faces/config/WebConfiguration at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:163) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:202) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:171) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:123) at com.google.apphosting.runtime.JavaRuntime$RequestRunnable.run(JavaRuntime.java:477) at com.google.tracing.TraceContext$TraceContextRunnable.runInContext(TraceContext.java:449) at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:455) at com.google.tracing.TraceContext.runInContext(TraceContext.java:695) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:333) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:325) at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:453) at com.google.apphosting.runtime.ThreadGroupPool$PoolEntry.run(ThreadGroupPool.java:251) at java.lang.Thread.run(Thread.java:679)

What is happening? Im thinking about this new 1.7 JDK being responsible for it. When running locally, I need the to use "-XX:-UseSplitVerifier" to build the project correctly. Maybe GAE JDK is building it with other specs and causing this. I really Dunno.

The main question is: How do I solve this?

Reply all
Reply to author
Forward
0 new messages