Deployment exception and how to solve them.
Hi guys, Just now I'm working in a unit test for sw/CppunitTest_sw_ooxmlimport.mk in which I'm adding the request for a GraphicExportFilter which results in the Deployment Exception: component context fails to supply service com.sun.star.drawing.GraphicExportFilter of type com.sun.star.drawing.XGraphicExportFilter I've added graphicfilter to the _use_library section and also the following component to the _use_component section: filter/source/graphic/graphicfilter But the Deployment Exception has not disappeared. Any tip on how to solve this problem? Br. -- Andres Gomez Computer Science Engineer mailto:ago...@igalia.com http://blogs.igalia.com/agomez/category/igaliacom/ IGALIA, S.L. http://www.igalia.com signature.asc Description: This is a digitally signed message part ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Deployment exception and how to solve them.
On 09/23/2013 12:48 PM, Andres Gomez wrote: Just now I'm working in a unit test for sw/CppunitTest_sw_ooxmlimport.mk in which I'm adding the request for a GraphicExportFilter which results in the Deployment Exception: component context fails to supply service com.sun.star.drawing.GraphicExportFilter of type com.sun.star.drawing.XGraphicExportFilter I've added graphicfilter to the _use_library section and also the following component to the _use_component section: filter/source/graphic/graphicfilter But the Deployment Exception has not disappeared. Any tip on how to solve this problem? git grep -Flw com.sun.star.drawing.GraphicExportFilter -- \*.component shows that that service is registered in svx/util/svx.component, so you need to add svx/util/svx to the gb_CppunitTest_use_components list. Stephan ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Deployment exception and how to solve them.
Hey, 2013/9/23 Andres Gomez ago...@igalia.com Hi guys, Just now I'm working in a unit test for sw/CppunitTest_sw_ooxmlimport.mk in which I'm adding the request for a GraphicExportFilter which results in the Deployment Exception: component context fails to supply service com.sun.star.drawing.GraphicExportFilter of type com.sun.star.drawing.XGraphicExportFilter I've added graphicfilter to the _use_library section and also the following component to the _use_component section: filter/source/graphic/graphicfilter You should replace this entry in the _use_component section with: svx/util/ http://opengrok.libreoffice.org/xref/core/svx/util/svx \ Finding out which entry to add for the use_components is quite easy. Go to opengrok/git grep and search for the service name and add the *.component file that mentions the service. Regards, Markus ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: Deployment exception and how to solve them.
Ouch! So I added the wrong component assuming it would be in the same source tree instead of checking that it was actually providing the service. Thanks guys, it works like a charm! Br. On Mon, 2013-09-23 at 13:59 +0200, Markus Mohrhard wrote: Hey, 2013/9/23 Andres Gomez ago...@igalia.com Hi guys, Just now I'm working in a unit test for sw/CppunitTest_sw_ooxmlimport.mk in which I'm adding the request for a GraphicExportFilter which results in the Deployment Exception: component context fails to supply service com.sun.star.drawing.GraphicExportFilter of type com.sun.star.drawing.XGraphicExportFilter I've added graphicfilter to the _use_library section and also the following component to the _use_component section: filter/source/graphic/graphicfilter You should replace this entry in the _use_component section with: svx/util/ http://opengrok.libreoffice.org/xref/core/svx/util/svx \ Finding out which entry to add for the use_components is quite easy. Go to opengrok/git grep and search for the service name and add the *.component file that mentions the service. Regards, Markus ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice -- Andres Gomez Computer Science Engineer mailto:ago...@igalia.com http://blogs.igalia.com/agomez/category/igaliacom/ IGALIA, S.L. http://www.igalia.com signature.asc Description: This is a digitally signed message part ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice