I have written a simple service (provides a Person resource), and want to
run it in Google App Engine. I downloaded the 1.0 version of Wink and
happily found an appendix about how to run in AppEngine. I followed all of
the suggestions. I understand that AppEngine does not support JAXB so I
wrote my own Provider to format my resource (class Person) as JSON. JSON is
the only media type supported for this resource.

Before trying to run on AppEngine, I tested my service on Tomcat - worked as
expected. I then used the Google emulation of AppEngine to run on my local
machine before uploading - again, worked as expected. After uploading my
service to AppEngine and testing it, I receive a service error. Upon
examining the AppEngine log file I see that the problem is a class not found
exception for javax.xml.bind.JAXBException. I am not using JAXB in my
application. I did not include JAXB jars in my war file. Looking further, it
looks like all of the providers shipped with Wink are being loaded,
eventually causing the CNF exception.

To work around this failure, I tried a few things:
- include the JAXB jars in the GAE upload
- Add <load-on-startup>;0<;/...> to the servlet entry in my web.xml file
(this is not documented well)
- Add wink.loadApplications=false to my configuration.properties file (this
is not documented well)

None of these changed the exception I received when a request is sent to the
service.

Question: Is there something I can change in my configuration to prevent the
automatic loading of the Wink supplied providers?

I can send AppEngine log files and the files making up my service if it will
be helpful.

Thanks for your help,
Bryan Murray

Reply via email to