[google-appengine] Re: deploy restlet onto gae with error

2010-12-16 Thread Richard Berger
Ran into the same problem.  Am running restlet M1.  Just wondering if
you already solved it - was about to start working on this.

Thanks,
RB

On Dec 6, 5:57 pm, dadada  wrote:
> this is the console log.
>
> ompiling module org.restlet.example.gae.serialization.Serialization
>    Validating newly compiled units
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/logging/impl/
> DevModeLoggingFixes.java'
>          [ERROR] Line 58: The method getName() is undefined for the
> type Logger
>          [ERROR] Line 59: The method getName() is undefined for the
> type Logger
>          [ERROR] Line 76: The method setUseParentHandlers(boolean) is
> undefined for the type Logger
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/logging/impl/
> LoggerImplRegular.java'
>          [ERROR] Line 73: The method getLevel() is undefined for the
> type Logger
>          [ERROR] Line 109: The method intValue() is undefined for the
> type Level
>          [ERROR] Line 109: The method intValue() is undefined for the
> type Level
>          [ERROR] Line 131: The method log(Level, String) in the type
> Logger is not applicable for the arguments (LogRecord)
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/user/client/rpc/core/
> java/util/logging/Level_CustomFieldSerializer.java'
>          [ERROR] Line 38: The method parse(String) is undefined for
> the type Level
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/user/client/rpc/core/
> java/util/logging/LogRecord_CustomFieldSerializer.java'
>          [ERROR] Line 50: The method parse(String) is undefined for
> the type Level
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/emul/java/util/logging/
> Handler.java'
>          [ERROR] Line 43: The method intValue() is undefined for the
> type Level
>          [ERROR] Line 43: The method intValue() is undefined for the
> type Level
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/emul/java/util/logging/
> LogManager.java'
>          [ERROR] Line 34: The method setLevel(Level) is undefined for
> the type LogManager.RootLogger
>          [ERROR] Line 57: The method getName() is undefined for the
> type Logger
>          [ERROR] Line 77: The method getName() is undefined for the
> type Logger
>          [ERROR] Line 80: The method getName() is undefined for the
> type Logger
>          [ERROR] Line 81: The method setParent(Logger) is undefined
> for the type Logger
>       [ERROR] Errors in 'file:/Users/ytbryan/Documents/workspace/
> evogaws/src/org/restlet/example/common/ContactResource.java'
>          [ERROR] Line 3: The import org.restlet.resource cannot be
> resolved
>          [ERROR] Line 4: The import org.restlet.resource cannot be
> resolved
>          [ERROR] Line 5: The import org.restlet.resource cannot be
> resolved
>          [ERROR] Line 12: Get cannot be resolved to a type
>          [ERROR] Line 15: Put cannot be resolved to a type
>          [ERROR] Line 18: Delete cannot be resolved to a type
>    [ERROR] Errors in 'file:/Users/ytbryan/Documents/workspace/evogaws/
> src/org/restlet/example/gae/serialization/client/Serialization.java'
>       [ERROR]  Internal compiler error
> java.lang.NoSuchMethodError:
> com.google.gwt.user.rebind.rpc.SerializableTypeOracleBuilder.setLogOutputSt 
> ream(Ljava/
> io/OutputStream;)V
>         at
> org.restlet.rebind.ClientProxyGenerator.generateSerializers(ClientProxyGene 
> rator.java:
> 563)
>         at
> org.restlet.rebind.ClientProxyGenerator.generateProxy(ClientProxyGenerator. 
> java:
> 429)
>         at
> org.restlet.rebind.ClientProxyGenerator.generate(ClientProxyGenerator.java:
> 208)
>         at
> com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGene 
> ratorContext.java:
> 427)
>         at
> com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
> 39)
>         at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.tryRebind(StandardRebindOracle.java:115)
>         at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.rebind(StandardRebindOracle.java:58)
>         at
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j 
> ava:
> 161)
>         at
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j 
> ava:
> 150)
>         at com.google.gwt.dev.Precompile
> $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(Precompile.ja 
> va:
> 345)
>         at
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe 
> binds(WebModeCompilerFrontEnd.java:
> 106)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.p

[google-appengine] Re: deploy restlet onto gae with error

2010-12-16 Thread Richard Berger
I was able to solve this problem.  There were a few steps, but
basically it comes down to updating libraries and modifying the
web.xml file.

Phase 1...
1. Replace the 7 jar files in WEB-INF/lib
(org.codehaus.jackson.core.jar, org.codehause.jackson.mapper.jar,
org.restlet.ext.gwt.jar, org.restlet.ext.jackson.jar,
org.restlet.ext.servlet.jar, org.restlet.ext.xml.jar, org.restlet.jar)
with newer versions I used the ones in restlet version 2.1 Milestone
1.  (If in Eclipse make sure the build path gets updated to use the
new jars).  These jars are available in the GAE download.
2. Replace the one jar in the lib directory (org.restlet.jar) with the
2.1 Milestone 1 version.  This jar is in the GWT download.

Phase 2
1. Change the web.xml file, as it currently refers to a class that no
longer exists (GwtShellServletWrapper).  Here's the relevant snippet.

adapter


org.restlet.ext.servlet.ServerServlet

org.restlet.application
org.restlet.example.gae.serialization.server.TestServerApplication



And then it worked.

RB


On Dec 6, 5:57 pm, dadada  wrote:
> this is the console log.
>
> ompiling module org.restlet.example.gae.serialization.Serialization
>    Validating newly compiled units
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/logging/impl/
> DevModeLoggingFixes.java'
>          [ERROR] Line 58: The method getName() is undefined for the
> type Logger
>          [ERROR] Line 59: The method getName() is undefined for the
> type Logger
>          [ERROR] Line 76: The method setUseParentHandlers(boolean) is
> undefined for the type Logger
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/logging/impl/
> LoggerImplRegular.java'
>          [ERROR] Line 73: The method getLevel() is undefined for the
> type Logger
>          [ERROR] Line 109: The method intValue() is undefined for the
> type Level
>          [ERROR] Line 109: The method intValue() is undefined for the
> type Level
>          [ERROR] Line 131: The method log(Level, String) in the type
> Logger is not applicable for the arguments (LogRecord)
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/user/client/rpc/core/
> java/util/logging/Level_CustomFieldSerializer.java'
>          [ERROR] Line 38: The method parse(String) is undefined for
> the type Level
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/user/client/rpc/core/
> java/util/logging/LogRecord_CustomFieldSerializer.java'
>          [ERROR] Line 50: The method parse(String) is undefined for
> the type Level
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/emul/java/util/logging/
> Handler.java'
>          [ERROR] Line 43: The method intValue() is undefined for the
> type Level
>          [ERROR] Line 43: The method intValue() is undefined for the
> type Level
>       [ERROR] Errors in 'jar:file:/Users/ytbryan/Documents/workspace/
> google/gwt-2.1.0/gwt-user.jar!/com/google/gwt/emul/java/util/logging/
> LogManager.java'
>          [ERROR] Line 34: The method setLevel(Level) is undefined for
> the type LogManager.RootLogger
>          [ERROR] Line 57: The method getName() is undefined for the
> type Logger
>          [ERROR] Line 77: The method getName() is undefined for the
> type Logger
>          [ERROR] Line 80: The method getName() is undefined for the
> type Logger
>          [ERROR] Line 81: The method setParent(Logger) is undefined
> for the type Logger
>       [ERROR] Errors in 'file:/Users/ytbryan/Documents/workspace/
> evogaws/src/org/restlet/example/common/ContactResource.java'
>          [ERROR] Line 3: The import org.restlet.resource cannot be
> resolved
>          [ERROR] Line 4: The import org.restlet.resource cannot be
> resolved
>          [ERROR] Line 5: The import org.restlet.resource cannot be
> resolved
>          [ERROR] Line 12: Get cannot be resolved to a type
>          [ERROR] Line 15: Put cannot be resolved to a type
>          [ERROR] Line 18: Delete cannot be resolved to a type
>    [ERROR] Errors in 'file:/Users/ytbryan/Documents/workspace/evogaws/
> src/org/restlet/example/gae/serialization/client/Serialization.java'
>       [ERROR]  Internal compiler error
> java.lang.NoSuchMethodError:
> com.google.gwt.user.rebind.rpc.SerializableTypeOracleBuilder.setLogOutputSt 
> ream(Ljava/
> io/OutputStream;)V
>         at
> org.restlet.rebind.ClientProxyGenerator.generateSerializers(ClientProxyGene 
> rator.java:
> 563)
>         at
> org.restlet.rebind.ClientProxyGenerator.generateProxy(ClientProxyGenerator. 
> java:
> 429)
>         at
> org.restlet.rebind.ClientProxyGenerator.ge