Actually, I think I know what the problem is. When you use Application, singletons Set can contain root resource and provider classes and thus in order to differentiate, providers must have a @Provider annotation which is not required when Spring or JAXRServerFactoryBean is used
So adding that annotation should fix it Cheers, Sergey On Thu, Jul 21, 2011 at 12:26 PM, Carl-Erik Kopseng <[email protected]> wrote: > Whoops, I missed two lines when converting my code to example code ... > >> <code> >> public MyApp() { >> /* add classes */ >> classes = new HashSet<Class<?>>(); >> classes.add( GrossAdultInfoHandler.class ); >> classes.add( InfoChildHandler.class ); > > should have been > public MyApp() { > /* add classes */ > classes = new HashSet<Class<?>>(); > classes.add( FooHandler.class ); > > Sorry about that (although it is not really important for the question). > -- Sergey Beryozkin http://sberyozkin.blogspot.com Talend - http://www.talend.com
