Hello Sergey, I've just updated to 2.6.2-SNAPSHOT and there does not seem to be a method 'setCatalogLocation' in JAXBElementProvider. Did you already updated your snapshot?
Best regards, Marko -----Original Message----- From: Sergey Beryozkin [mailto:[email protected]] Sent: Friday, June 22, 2012 7:04 PM To: Voß, Marko Cc: [email protected] Subject: Re: How to setup XML catalog for JAX-RS services? Hi Marko I've coded the initial support for it, CXF already has a lot of the useful code so it was relatively easy to add this support. Can you please experiment when you get a chance with the new snapshots, say on Monday ? Please see https://issues.apache.org/jira/browse/CXF-4393 I did not merge to 2.4.x only. Default is META-INF/jax-rs-catalog.xml, but that can be overridden to refer to the existing META-INF/jax-ws-catalog.xml if any or to some other catalog, JAXBElementProvider has a 'catalogLocation' property. Give it a try please Thanks, Sergey On 21/06/12 14:15, Sergey Beryozkin wrote: > Hi Marko > On 21/06/12 13:44, Voß, Marko wrote: >> Hello Sergey, >> >> we did a little complex solution for it and because of that, I liked >> to ask here. >> >> We basically extended the JAXBElementProvider, added a property for a >> org.apache.cxf.jaxrs.utils.schemas.SchemaHandler >> implementation, modified the get/setSchema methods to use this >> SchemaHandler, which itself has a property for a >> org.w3c.dom.ls.LSResourceResolver, which uses a >> org.apache.xerces.util.XMLCatalogResolver. >> >> Do you really want this piece of code? >> > Let me look at the WADLToJava code generator, Dan did some related fix > there...Still not ready to do it, but we'll get it sorted out > > Thanks, Sergey >> >> Best regards, >> Marko >> >> Am 21.06.2012 13:27, schrieb Sergey Beryozkin: >>> Hi >>> On 21/06/12 11:53, Voß, Marko wrote: >>>> Hello, >>>> >>>> so we have to implement our own way to get XML catalog working, >>>> right? We already did that but I thought there is an easier way. >>>> >>> There will be an easier way :-), I just have not had any time yet to >>> look into it yet. What you did, is that similar to the way CXF >>> manages its jaxws-catalog.xml ? If yes - please provide a patch, >>> otherwise I'll look into it asap >>> >>> Cheers, Sergey >>>> >>>> Best regards, >>>> Marko >>>> >>>> -----Original Message----- >>>> From: Voß, Marko [mailto:[email protected]] >>>> Sent: Wednesday, June 20, 2012 1:51 PM >>>> To: Sergey Beryozkin; [email protected] >>>> Subject: RE: How to setup XML catalog for JAX-RS services? >>>> >>>> Hello Sergey, >>>> >>>> We need JAXB to validate incoming and outgoing XML. Since our >>>> schemas may have many imports, they should be loaded from the local >>>> files system ideally. This increases the performance. >>>> >>>> >>>> Best regards, >>>> Marko >>>> >>>> >>>> -----Original Message----- >>>> From: Sergey Beryozkin [mailto:[email protected]] >>>> Sent: Wednesday, June 20, 2012 11:42 AM >>>> To: [email protected] >>>> Cc: Voß, Marko >>>> Subject: Re: How to setup XML catalog for JAX-RS services? >>>> >>>> Hi Marko >>>> On 19/06/12 18:24, Voß, Marko wrote: >>>>> Hello, >>>>> >>>>> I cannot find any documentation about this. >>>>> >>>>> Searching the web I found that one has to put a jax-ws-catalog.xml >>>>> to the /META-INF directory. >>>>> >>>>> There is also a catalog.xml according to the checkin history here: >>>>> >>>>> https://issues.apache.org/jira/browse/CXF-1112?page=com.atlassian. >>>>> jira .plugin.system.issuetabpanels:all-tabpanel >>>>> >>>>> >>>>> We are using JAX-RS. So how to setup a XML catalog? >>>>> >>>> At the moment setting a catalog only works with a wadl-to-java >>>> tool, can you explain please why it is required in your case ? >>>> >>>> Cheers, Sergey >>>>> >>>>> Best regards, >>>>> Marko >> >> >> ------------------------------------------------------- >> >> Fachinformationszentrum Karlsruhe, Gesellschaft für >> wissenschaftlich-technische Information mbH. >> Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht Mannheim >> HRB 101892. >> Geschäftsführerin: Sabine Brünger-Weilandt. >> Vorsitzender des Aufsichtsrats: MinDirig Dr. Thomas Greiner. >> >> > > -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com ------------------------------------------------------- Fachinformationszentrum Karlsruhe, Gesellschaft für wissenschaftlich-technische Information mbH. Sitz der Gesellschaft: Eggenstein-Leopoldshafen, Amtsgericht Mannheim HRB 101892. Geschäftsführerin: Sabine Brünger-Weilandt. Vorsitzender des Aufsichtsrats: MinDirig Dr. Thomas Greiner.
