Google App Engine Annotation Scanning Error Jetty

7 views
Skip to first unread message

Derek Berube via StackOverflow

unread,
Mar 7, 2016, 3:20:08 AM3/7/16
to google-appengin...@googlegroups.com

When attempting to run a Google App Engine application using the Java 8/Jetty 9 Compatible Managed Virtual Machine on my local test machine, the application fails to start because Jetty is reporting problems scanning annotations.

The following is an example of an exception thrown.

MultiException[java.lang.RuntimeException: Error scanning file RequestIdFix.class, java.lang.RuntimeException: Error scanning file OpenIDServlet.class, java.lang.RuntimeException: Error scanning file GAEThreadFactoryWrapper.class, java.lang.RuntimeException: Error scanning file FreightDueInHandlerFreemarkerImpl.class, java.lang.RuntimeException: Error scanning file FreemarkerHandlerImpl.class, java.lang.RuntimeException: Error scanning file WorkOrderHandlerFreemarkerImpl.class, java.lang.RuntimeException: Error scanning file DataScrubber.class, java.lang.RuntimeException: Error scanning file SessionPhaseListener.class, java.lang.RuntimeException: Error scanning file QuoteHandlerFreemarkerImpl.class]
at org.eclipse.jetty.annotations.AnnotationConfiguration.scanForAnnotations(AnnotationConfiguration.java:536)
at org.eclipse.jetty.annotations.AnnotationConfiguration.configure(AnnotationConfiguration.java:447)
at org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:492)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1337)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:518)
at com.google.apphosting.vmruntime.jetty9.VmRuntimeWebAppContext.doStart(VmRuntimeWebAppContext.java:149)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at com.google.apphosting.vmruntime.jetty9.VmRuntimeWebAppDeployer.doStart(VmRuntimeWebAppDeployer.java:81)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:405)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:372)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1510)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1435)

The following is the output of running "gcloud info"

Google Cloud SDK [99.0.0]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.10 (default, Oct 23 2015, 19:19:21)  [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)]]
Python Location: [/usr/bin/python]
Site Packages: [Disabled]

Installation Root: [/Users/derekberube/google-cloud-sdk]
Installed Components:
  core: [2016.02.26]
  app-engine-python: [1.9.33]
  core-nix: [2016.02.05]
  pubsub-emulator: [2016.02.22]
  kubectl: []
  app-engine-java: [1.9.32]
  gcloud: []
  gsutil-nix: [4.15]
  app-engine-python-extras: [1.9.21]
  beta: [2016.01.12]
  gsutil: [4.17]
  bq: [2.0.18]
  alpha: [2016.01.12]
  gcd-emulator: [v1beta3-1.0.0]
  bq-nix: [2.0.18]
  kubectl-darwin-x86_64: [1.1.7]
System PATH: [/Users/derekberube/google-cloud-sdk/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin:/usr/local/apache-maven/apache-maven-3.3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin]
Cloud SDK on PATH: [True]

Installation Properties: [/Users/derekberube/google-cloud-sdk/properties]
User Config Directory: [/Users/derekberube/.config/gcloud]
User Properties: [/Users/derekberube/.config/gcloud/properties]

Account: [wildstarser...@appspot.gserviceaccount.com]
Project: [wildstarservicedesk-hrd]

Current Properties:
  [core]
    project: [wildstarservicedesk-hrd]
    account: [wildstarser...@appspot.gserviceaccount.com]
    disable_usage_reporting: [False]
  [app]
    suppress_change_warning: [true]

Logs Directory: [/Users/derekberube/.config/gcloud/logs]
Last Log File: [/Users/derekberube/.config/gcloud/logs/2016.03.07/01.12.28.616338.log]

None of the 9 classes referenced actually have any annotations.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/35839027/google-app-engine-annotation-scanning-error-jetty
Reply all
Reply to author
Forward
0 new messages