GAE Studio Getting started doc really not clear
Issue #10
resolved
Hi,
I'm settuping GAE Studio in my GWT, GAE, Objectify, maven project and I got this error:
[ERROR] WARNING: Failed startup of context com.google.appengine.tools.development.DevAppEngineWebAppContext@714c7f58{/,/Users/fboucher/Dev/workspace/LearnKeeper/target/LearnKeeper-0.0.1-SNAPSHOT}
[ERROR] java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate MessageBodyReader
[ERROR] at org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:35)
[ERROR] at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:221)
[ERROR] at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:112)
[ERROR] at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.init(FilterDispatcher.java:42)
[ERROR] at com.arcbees.gaestudio.server.guice.GuiceRestEasyFilterDispatcher.init(GuiceRestEasyFilterDispatcher.java:37)
[ERROR] at com.google.inject.servlet.FilterDefinition.init(FilterDefinition.java:114)
[ERROR] at com.google.inject.servlet.ManagedFilterPipeline.initPipeline(ManagedFilterPipeline.java:98)
[ERROR] at com.google.inject.servlet.GuiceFilter.init(GuiceFilter.java:172)
[ERROR] at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
[ERROR] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[ERROR] at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
[ERROR] at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
[ERROR] at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
[ERROR] at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
[ERROR] at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
[ERROR] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[ERROR] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
[ERROR] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[ERROR] at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
[ERROR] at org.mortbay.jetty.Server.doStart(Server.java:224)
[ERROR] at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
[ERROR] at com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:249)
[ERROR] at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:306)
[ERROR] at com.google.appengine.tools.development.AutomaticInstanceHolder.startUp(AutomaticInstanceHolder.java:26)
[ERROR] at com.google.appengine.tools.development.AbstractModule.startup(AbstractModule.java:79)
[ERROR] at com.google.appengine.tools.development.Modules.startup(Modules.java:88)
[ERROR] at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:241)
[ERROR] at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97)
[ERROR] at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
[ERROR] at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093)
[ERROR] at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
[ERROR] at com.google.gwt.dev.DevMode.main(DevMode.java:311)
[ERROR] Caused by: java.lang.RuntimeException: Unable to instantiate MessageBodyReader
[ERROR] at org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:1371)
[ERROR] at org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:1310)
[ERROR] at org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(RegisterBuiltin.java:70)
[ERROR] at org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:31)
[ERROR] ... 31 more
[ERROR] Caused by: java.lang.RuntimeException: Failed to construct public org.jboss.resteasy.plugins.providers.DocumentProvider(org.jboss.resteasy.spi.ResteasyConfiguration)
[ERROR] at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:160)
[ERROR] at org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2175)
[ERROR] at org.jboss.resteasy.spi.ResteasyProviderFactory.addMessageBodyReader(ResteasyProviderFactory.java:748)
[ERROR] at org.jboss.resteasy.spi.ResteasyProviderFactory.registerProvider(ResteasyProviderFactory.java:1366)
[ERROR] ... 34 more
[ERROR] Caused by: javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found
[ERROR] at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory.java:108)
[ERROR] at org.jboss.resteasy.plugins.providers.DocumentProvider.<init>(DocumentProvider.java:48)
[ERROR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[ERROR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[ERROR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[ERROR] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
[ERROR] at org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:148)
[ERROR] ... 37 more
I don't use Google Guice, neither RESTeasy in my project.
So following your doc I added in my pom.xml:
<dependency>
<groupId>com.arcbees.gaestudio</groupId>
<artifactId>gae-studio-webapp</artifactId>
<version>0.4</version>
</dependency>
then in my web.xml:
<listener>
<listener-class>com.arcbees.gaestudio.server.guice.GaeStudioServletConfig</listener-class>
</listener>
<context-param>
<param-name>resteasy.servlet.mapping.prefix</param-name>
<param-value>/rest</param-value>
</context-param>
<filter>
<filter-name>guiceFilter</filter-name>
<filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>guiceFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
And in appengine-web.xml:
<sessions-enabled>true</sessions-enabled>
Then I tried by adding in my pom.xml:
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jackson-provider</artifactId>
<version>3.0.2.Final</version>
</dependency>
But I got the exact same stack.
THX
Comments (4)
-
Account Deleted -
@olafleur I think Maxime already fixed something related to the jackson provider, right?
-
Account Deleted Yes, I'll close the issue. ;-)
-
Account Deleted - changed status to resolved
- Log in to comment
Did you manage to solve your problem with the new GAE-Studio version?