java - error to integrate restful web service with spring and gdata api -


short version: restful spring web service crashes when include dependency: com.google.gdata: core: 1.47.1

long version:

i trying make restfull web service consume information spreadsheet in google drive

this sequence of steps:

preparing classes made connection , data obtained drive (not web, backend classes, unit , integration tests included): ok

prepare restfull web service spring, download spring tutorial (http://spring.io/guides/tutorials/rest/3/) , execute: ok

then remove tutorial's business classes , include components, change controllers invoke components, plus add gdata dependence in file graddle.build, try execute: houston have problem

it's strange, when start app context, log print this:

 

c:\users\grubhart\documents\proyectos\error_rest_gdata\complete\src\main\java\com\yummynoodlebar\config\webappinitializer.java:39: error: can not find symbol       servletcontext.setinitparameter ("defaulthtmlescape", "true");                     ^       symbol: method setinitparameter (string, string)       location: variable of type servletcontext servletcontext  

but when rest app downloaded (whitout code, neither gdata dependency) works, thing did add code , google api dependence, started see cause error

remove code (but leave gdata jar) and... wait it.. same error,

remove gdata dependency: works

then add gdata dependency again , test: same error again

so think including gdata jar prevents start entire app context

i created repo on github illustrate error:

https://github.com/grubhart/error_spring_restws_gdata

the master branch has code of service works without gdata dependence

gdata_error branch can imagine has added gdata dependency (only dependency, no code) in gradle.build file:

compile 'com.google.gdata: core: 1.47.1'

and presents error

no need install (even gradle) have jdk, download code , run stated in readme file see errors

i homework, in google, stackoverflow (great site!), spring forum can't find nothing

if has experience problem, or know can found more information great if can share experiences or if know more info error

the original post doesn't contains:

yummynoodlebar\config\webappinitializer.java:39: error: cannot find symbol     servletcontext.setinitparameter("defaulthtmlescape", "true"); 

servletcontext needs import javax.servlet.*; maybe error that.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -