Re: [appengine-java] JAXB Support

2010-04-02 Thread L. Kirven
Brian,

I am doing exactly the same thing.  I followed the blog below and didn't
have any problems.  I hope that this helps.

http://tugdualgrall.blogspot.com/2010/02/create-and-deploy-jax-rs-rest-service.html


On Fri, Apr 2, 2010 at 9:55 AM, Brian hannawaybr...@googlemail.com wrote:

 Hi,
 I've run into an issue with JAXB on GAE. I have set up a simple
 project using Jersey to expose a RESTful web service and am using JAXB
 for marshalling/unmarshalling. The project runs fine in my local
 eclipse environment but when I upload to GAE and send a request to the
 web service I am getting a JAXB exception (see stack trace below). I
 am using the latest version of JAXB and the latest version of GAE SDK.
 According to the white list JAXB should now be supported so I'm not
 sure what's going on. Any help to resolve this issue would be greatly
 appreciated.

 Uncaught exception from servlet
 java.lang.ExceptionInInitializerError
at

 com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:
 79)
at

 com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:
 165)
at com.sun.xml.bind.v2.runtime.reflect.Accessor
 $FieldReflection.optimize(Accessor.java:256)
at

 com.sun.xml.bind.v2.runtime.property.ArrayProperty.init(ArrayProperty.java:
 65)
at

 com.sun.xml.bind.v2.runtime.property.ArrayERProperty.init(ArrayERProperty.java:
 84)
at

 com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.init(ArrayElementProperty.java:
 96)
at

 com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.init(ArrayElementNodeProperty.java:
 58)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
 Source)
at java.lang.reflect.Constructor.newInstance(Constructor.java:33)
at

 com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:
 124)
at

 com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.init(ClassBeanInfoImpl.java:
 179)
at

 com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:
 515)
at
 com.sun.xml.bind.v2.runtime.JAXBContextImpl.init(JAXBContextImpl.java:
 330)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl
 $JAXBContextBuilder.build(JAXBContextImpl.java:1140)
at
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
 154)
at
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
 121)
at
 com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
 202)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:159)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:311)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at

 com.sun.jersey.server.impl.wadl.WadlApplicationContextImpl.init(WadlApplicationContextImpl.java:
 66)
at
 com.sun.jersey.server.impl.wadl.WadlFactory.init(WadlFactory.java:
 94)
at

 com.sun.jersey.server.impl.application.WebApplicationImpl.initWadl(WebApplicationImpl.java:
 1207)
at

 com.sun.jersey.server.impl.application.WebApplicationImpl.processRootResources(WebApplicationImpl.java:
 1106)
at

 com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:
 912)
at

 com.sun.jersey.server.impl.application.WebApplicationImpl.initiate(WebApplicationImpl.java:
 589)
at

 com.sun.jersey.spi.container.servlet.ServletContainer.initiate(ServletContainer.java:
 403)
at com.sun.jersey.spi.container.servlet.ServletContainer
 $InternalWebComponent.initiate(ServletContainer.java:252)
at
 com.sun.jersey.spi.container.servlet.WebComponent.load(WebComponent.java:
 550)
at
 com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:
 201)
at

 com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:
 307)
at

 com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:
 470)
at javax.servlet.GenericServlet.init(GenericServlet.java:215)
at
 org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:
 440)
at
 org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
 263)
at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 50)
at
 

Re: [appengine-java] Re: Intregrating GAE on Google Marketplace

2010-03-25 Thread L. Kirven
Roberto,

I thought the same thing, but that does not seem to be the case.

Lazar
On Thu, Mar 25, 2010 at 12:32 PM, Roberto Saccon rsac...@gmail.com wrote:

 I am also interested in this. But I have to admit that I did not even
 got that far, to analyze out the incompatibilities, I was assuming
 that step2 just runs on GAE, because the step2 example code contains
 some stuff which looks to me like it is meant to be deployed on GAE.

 On Mar 25, 10:49 am, lrkirven lrkir...@gmail.com wrote:
  I was just curious if anyone has tried to integrate their GAE app into
  Google Marketplace using the Java Step2 OpenId Library.  It seems that
  GAE does not support the following classes:
  javax.net.ssl.TrustManagerFactory, javax.net.ssl.X509TrustManager,
  javax.net.ssl.TrustManager. The Java Step2 library includes these
  classes to implement Google's OpenID IdP for hosted domains. I am
  using Google App Engine SDK 1.3.1 and JDK 1.6. Has anyone discovered a
  workaround to get passed this issue?

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




-- 
Lazar Kirven
http://www.linkedin.com/in/lrkirven

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