Hi everyone, I have a WAR file that contains two javax.ws.rs.core.Application. I want each sub app to have there own providers.
To acheive this I have disabled providers scanning : <?xml version="1.0" encoding="UTF-8"?> <openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1"> <pojo-deployment class-name="jaxrs-application"> <properties> cxf.jaxrs.skip-provider-scanning = true </properties> </pojo-deployment> </openejb-jar> I can't register my providers, how am I supposed to do ? I've tried overloading getClasses without success: @ApplicationPath("/api") public class MyApp extends Application{ /*@Override public Set getSingletons() { Set set = new LinkedHashSet(); set.add((Object) new MetiJaxbJsonProvider()); return set; }*/ /*@Override public Map<String, Object> getProperties() { Map<String, Object> p = new HashMap<String, Object>(); p.put("cxf.jaxrs.providers", "jsonp");//Defines in resources.xml return p; }*/ @Override public Set<Class<?>> getClasses(){ Set<Class<?>> classes = new LinkedHashSet<>(Class<?>); classes.add(Class.forName("com.meti.dfex.auth.rs.mobi.poc.CnxServiceRest")); classes.add(Class.forName(JSON_PROVIDER)); classes.add(Class.forName(OJECTMAPPER_PROVIDER)); classes.add(Class.forName(EXCEPTIONMAPPER_PROVIDER)); return classes ; } } Am i missing something ? Best Regards -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html