Could not instantiate JAXBContext when using with IKVM
Vadim Bauer <[email protected]> Mon, 11 May 2015 14:52:52 +0200
| Newsgroups | gmane.comp.java.ikvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I have a situation where I get a avax.xml.bind.JAXBException : Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: javax.xml.bind.JAXBException: "myContextPath" enthält ObjectFactory.class oder jaxb.index nicht. If I use the my converted DLL inside a application(console) App.exe ---> myJarDLL then jaxb context can be created and the context path is found. Everything is fine. Now I have created some business logic in C# that uses functionality of the jardll. In the end I have this constellation: App.exe ---> BusinessDLL -->myJarDLL This is also working fine: The final situation is actually this: (Windows Service)DLL --> BusinessDLL --> myJarDLL. And this is the point where I get this exception. The next step I did was to create a NUnit testcase that tested myJarDLL NUnit --> myJarDLL. Also at this point I got an javax.xml.bind.JAXBException. This means for me that I can not use myJarDLL inside an another DLL. That only thing that is working is app.exe --> myJarDLL. Do you know why the context path is not found when I myJarDLL is used inside a dll? Context: The arrow (-->) means referencing here. ikvm Version 8.0.5449.1 best regards, v. ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Ikvm-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ikvm-developers
signature.asc
(application/pgp-signature, 496 B)
-----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJVUKYkAAoJELdzQenwcEFT/I8H/ihaNrDjW6NC7LBVMjmnKgh7 NS9dUvIu8j6ZJxsEuvlwa5OiAPnNR7vmQL0mDmHjpZVvVPwGyVTzsGnjeLwoYGtE LbRHF+SwB5lL/tZyOEtU6fYZVXLp5y4E2IgDJCeTl3MvzTwcrHpmLW0Er0ywk73Y MlhZtQdxltW4NIeS+fFgYlgw8dsrkDdcp43rdlLk+r0lZ9k+ygxGNRqkj8MjOwLi AAUnbwJpe4AzePFEQ1/m9oqCIVzuHtRI4Il2utmZWpqWTb5YqLxj2FYnmWXBlAOS RcjNiO86JaMdU1cJd1SQLkkqpoKH0LJAmoFjsQAbKJwIdt8GDvqtQN3HT4Ay85U= =7IsG -----END PGP SIGNATURE-----