plutext / jaxb-2_2_5_1

Other
13 stars 9 forks source link

Q: is it enought to work with CXF? #3

Open 4ntoine opened 9 years ago

4ntoine commented 9 years ago

Apache CXF uses JAXB as default xml binding. I need to make cx websevice to make running on Android. At the moment i'm having jaxb-api-2.2.11.jar and jaxb-impl-2.2.10.jar in 'libs' folder of android project. However i'm getting javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: Didn't find class "com.sun.xml.internal.bind.v2.ContextFactory" on path: DexPathList[[zip file "/data/app/com.company.streaming-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.company.streaming-1, /vendor/lib, /system/lib]]] error.

Will it work with this repo sources instead of jaxb-impl.jar that i'm currently using?

4ntoine commented 9 years ago

I've build it with Ant, packed runtime/build/classes into jar and copied it to libs folder (jab-api.jar from maven repo is already in my libs).

For some reason i'm getting javax.xml.bind.JAXBException - with linked exception: [java.lang.ClassNotFoundException: Didn't find class "com.sun.xml.internal.bind.v2.ContextFactory" on path: ... Exception is raised in JAXBContext.java (from jaxb-api.jar) in public static JAXBContext newInstance(Class[] classesToBeBound, Map<String, ?> properties)