Sergey, On Thu June 25 2009 11:33:47 am Sergey Beryozkin wrote: > I think ssl is not the issue here. I've used CXFNonSpringJaxrsServlet when > working on TCK and to bypass this issue I had to copy > org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet (only) to a given web > app classes folder, I presuming CXF libs are in shared tomcat folder. > > May be we can do something similar to what Spring does by somehow making > the child web app loader visible to the parent one loading CXF classes. For > now please extract this class from CXF libs...
You really shouldn't need to do that. The Thread.contextClassLoader SHOULD be the classloader of the application/war. Anything we do that dynamically loads classes or anything should be using the contextClassLoader. That should make it so the CXFNonSpringJaxrsServlet doesn't need to be munged in that way. Dan > > you may want to add jaxrs.providers if you need to add some custom > providers in addition to those shipped with CXF JAX-RS > > > 3) I actually need cxf for configuring/doing xsd-File Validation (because > > the sun implementation cant do it), but what I don't know, is Spring > > needed for this, or is CXFNonSpringJaxrsServlet enough? > > Unfortunately not, it's not possible yet to do it with > CXFNonSpringJaxrsServlet. I need to introduce the support for some commonly > used features, like schema validation/etc.. Will work on it... > > > thanks, Sergey > > .LX Max Länzlinger wrote: > > Hello all, > > > > I need a REST-Service preferable with CXFNonSpringJaxrsServlet. Given is > > Tomcat, ssl, java 6. > > I defined the servlet in web.xml with init param jaxrs.serviceclasses the > > name of my service Class. > > When starting Tomcat, CXFNonSpringJaxrsServlet.loadClass throws an > > ClassNotFoundException of my service class. > > > > Questions: > > 1) Do I need configure ssl specially, could it be that load.class > > URLClassLoader$1.run cannot find my class due to ssl of tomcat??.... > > 2) Do I need - additionally to jaxrs.serviceClasses - add the parameter > > jaxrs.providers? With same name of my service class? (I miss a complete > > example for CXFNonSpringJaxrsServlet, the documentation does not swhow > > the classes content) > > 3) I actually need cxf for configuring/doing xsd-File Validation (because > > the sun implementation cant do it), but what I don't know, is Spring > > needed for this, or is CXFNonSpringJaxrsServlet enough? > > > > > > Many thanks in advance! > > > > ________________________________ > > Ab dem 1. August sind nur noch Mail-Adressen > > [email protected] in Betrieb. Andere Adressen werden ab dem > > 1. August 2009 nicht mehr erreichbar sein. > > > > Dès le premier août seules les adresses email suivantes seront encore > > valables: [email protected]. Les courriels envoyés aux autres > > adresses ne seront donc plus acheminés à partir du premier août 2009. > > > > Dal primo di agosto saranno validi solo i seguenti indirizzi email: > > [email protected]. La posta elettronica inviata agli altri > > indirizzi non sarà più inoltrata a partire dal primo di agosto 2009. -- Daniel Kulp [email protected] http://www.dankulp.com/blog
