You found it :) Le 14 août 2014 01:34, "Markus F. Frisch" <[email protected]> a écrit :
> Found it: > ————— > openejb.api.javax.ws.rs.Path.validation=false > ————— > does the trick. > > Markus > > > -- > Markus Frisch > [Prokurist / Authorized Representative] > nobisCum Deutschland GmbH > > [T] +49 9302 / 987 97 - 2633 > [M] +49 173 / 91 88 058 > [@] [email protected]<mailto:[email protected]> > [URL] http://www.nobisCum.de > > [Anschrift] Ostring 2-4, 97228 Rottendorf, Germany > [Registergericht] Würzburg, HRB 5159 > [Geschäftsführer] Herbert Stieglitz, Hans-Peter Holl > > > > > Am 13.08.2014 um 23:35 schrieb Romain Manni-Bucau <[email protected] > <mailto:[email protected]>>: > > There is a hack for jersey to allow to load its classes. I dont have the > name of the property here (phone) but it is possible to use jersey even if > it is wrongly packaged. > > Property is in tomeeclassloaderenricher iirc if someone wants to have a > look. > Le 13 août 2014 23:32, "Markus F. Frisch" <[email protected] > <mailto:[email protected]>> a > écrit : > > I have an application that acts as a client for a RESTful WS. This > application uses jersey-client (1.18.1) to make the WS calls. > This application fails to load on TomEE+ 1.7.0-SNAPSHOT with the following > error: > > ——————————————————————————— > Caused by: java.lang.ClassNotFoundException: > com.sun.jersey.core.util.FeaturesAndProperties > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720) > at > > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) > at > > org.apache.tomee.catalina.LazyStopWebappClassLoader.loadClass(LazyStopWebappClassLoader.java:129) > ... 34 more > ——————————————————————————— > > I dug a little deeper into the class loading logic and it seems that TomEE > will not load the jersey-core that is required by jersey-client because > jersey-core.jar contains some classes that should not be deployed as part > of a javaEE application. > > Namely, it contains javax.ws.rs.Path, but doesn’t contain > javax.ws.rs.core.Configurable, so the jar is ignored by the > LazyStopWebappClassLoader. > > Does this mean, I am not supposed to have jersey-client as part of my web > app? If so - what would you recommend as a replacement? > Or is this just something that might be fixed on the TomEE-side? Please > advise. > > Thanks in advance, > Markus > > -- > Markus Frisch > [Prokurist / Authorized Representative] > nobisCum Deutschland GmbH > > [T] +49 9302 / 987 97 - 2633 > [M] +49 173 / 91 88 058 > [@] [email protected]<mailto:[email protected]><mailto: > [email protected]> > [URL] http://www.nobisCum.de<http://www.nobiscum.de/> > > [Anschrift] Ostring 2-4, 97228 Rottendorf, Germany > [Registergericht] Würzburg, HRB 5159 > [Geschäftsführer] Herbert Stieglitz, Hans-Peter Holl > >
