ianlee-dev / facebook-java-api

Automatically exported from code.google.com/p/facebook-java-api
0 stars 0 forks source link

JAXB / ObjectFactory.class problem #107

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. user the 1.8-final.jar
2.
3.

So, two issues.

1) the current facebook-api-1.8-final.jar on here doesn'te ven have
ObjectFactory.class in it.

I have a copy of the jar from a few weeks ago that does have it.

Even so, when I try to use this codebase, I get this error when I try to
instantiate the FacebookJSONRestClient

Could not get JAXB context:  "com.facebook.api.schema" doesnt contain
ObjectFactory.class or jaxb.index
javax.xml.bind.JAXBException: "com.facebook.api.schema" doesnt contain
ObjectFactory.class or jaxb.index
    at
com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:14
7)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:133)
    at javax.xml.bind.ContextFinder.find(ContextFinder.java:299)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
    at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
    at com.facebook.api.ExtensibleClient.<clinit>(ExtensibleClient.java:85)

Original issue reported on code.google.com by oreofer...@gmail.com on 23 Sep 2008 at 7:02

GoogleCodeExporter commented 8 years ago
could you please try out the 1.8.1 build and see how that works?

in the download zip file you'll see various dependencies ( or use Maven )

Original comment by fern...@gmail.com on 30 Sep 2008 at 4:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I had similar problem with Jetty. Problem has gone when following 'java' 
argument
been added:
-cp
lib/jaxb-api-2.1.jar:lib/jaxb-api-2.1.jar:lib/facebook-java-api-1.8.1.jar:lib/js
on-1.0.jar

PS: listed jar's must be removed from applications

Original comment by aleksey....@gmail.com on 8 Oct 2008 at 7:11