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.
        <servlet>
                <servlet-name>adapter</servlet-name>
                <!--  
<servlet-class>org.restlet.ext.gwt.GwtShellServletWrapper</
servlet-class> -->
                
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
                <init-param>
                        <param-name>org.restlet.application</param-name>
                        <param-
value>org.restlet.example.gae.serialization.server.TestServerApplication</
param-value>
                </init-param>
        </servlet>

And then it worked.

RB


On Dec 6, 5:57 pm, dadada <ytbr...@gmail.com> 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.process(AbstractCompiler.java:254)
>         at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
> 444)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:175)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:288)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
> $400(AbstractCompiler.java:145)
>         at
> com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
> 632)
>         at
> com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations( 
> BasicWebModeCompiler.java:
> 124)
>         at
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio 
> ns(WebModeCompilerFrontEnd.java:
> 54)
>         at
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript 
> Compiler.java:
> 484)
>         at
> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a:
> 32)
>         at com.google.gwt.dev.Precompile.precompile(Precompile.java:545)
>         at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:205)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:177)
>         at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
>         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 87)
>         at
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu 
> nner.java:
> 81)
>         at com.google.gwt.dev.Compiler.main(Compiler.java:156)
>
> [ERROR] Unexpected
> 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.process(AbstractCompiler.java:254)
>         at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
> 444)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:175)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:288)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
> $400(AbstractCompiler.java:145)
>         at
> com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:
> 632)
>         at
> com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations( 
> BasicWebModeCompiler.java:
> 124)
>         at
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio 
> ns(WebModeCompilerFrontEnd.java:
> 54)
>         at
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScript 
> Compiler.java:
> 484)
>         at
> com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.jav a:
> 32)
>         at com.google.gwt.dev.Precompile.precompile(Precompile.java:545)
>         at com.google.gwt.dev.Precompile.precompile(Precompile.java:466)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:205)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:177)
>         at com.google.gwt.dev.Compiler$1.run(Compiler.java:149)
>         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 87)
>         at
> com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRu 
> nner.java:
> 81)
>         at com.google.gwt.dev.Compiler.main(Compiler.java:156)
>
> On Dec 7, 3:29 am, dadada <ytbr...@gmail.com> wrote:
>
>
>
>
>
>
>
> > hi all,
>
> > i deployed the restlet gae version (http://wiki.restlet.org/
> > docs_2.0/304-restlet/version/default/part/AttachmentData/data/
> > serializationFullSource.zip)
>
> > it works when i deploy it for the first time.
>
> > I then edited the code.
> > trying to deploy it again, return the following:
>
> > eclipse.buildId=unknown
> > java.version=1.6.0_22
> > java.vendor=Apple Inc.
> > BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
> > Framework arguments:  -product org.eclipse.epp.package.jee.product -
> > keyring /Users/ytbryan/.eclipse_keyring -showlocation
> > Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product
> > org.eclipse.epp.package.jee.product -keyring /Users/
> > ytbryan/.eclipse_keyring -showlocation
>
> > Error
> > Tue Dec 07 03:20:06 SGT 2010
> > GWT compilation failed
>
> > can someone advice?
>
> > thanks,
> > Bryan

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to