Hi Nuwan,

Please try with a simple media type like application/test , If it also
doesn't work please attach the jar and source.

Thanks.
Ajith.



On Tue, Jun 10, 2014 at 8:48 AM, Nuwan Dias <[email protected]> wrote:

> Yes.
>
> I initially had it as '*application/**wsdl+xml*' but it didn't work. I
> thought maybe its due to the registry treating wsdls in a special way. Then
> I changed to '*application/**api+wsdl+xml*' to try out.
>
> Thanks,
> NuwanD.
>
>
> On Mon, Jun 9, 2014 at 10:47 PM, Sumedha Rubasinghe <[email protected]>
> wrote:
>
>> Nuwan,
>> Is your regex correct?
>>
>>
>>
>> On Mon, Jun 9, 2014 at 10:43 PM, Nuwan Dias <[email protected]> wrote:
>>
>>> I checked with/without profiles and verified the media type as well.
>>> Which class triggers this method call? Any hint to debug and see?
>>>
>>>
>>> On Monday, June 9, 2014, Ajith Vitharana <[email protected]> wrote:
>>>
>>>> Hi Nuwan,
>>>>
>>>> 1. First check adding the customer indexer including the profile as
>>>> well.
>>>>
>>>> Eg: This is the one already in AM.
>>>>
>>>> <indexer
>>>> class="org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer"
>>>> mediaTypeRegEx="application/vnd.(.)+\+xml" profiles
>>>> ="default,api-store,api-publisher"/>
>>>>
>>>> 2. Please verify the media type of the resource is matching to the
>>>> given type in indexing configuration.
>>>>
>>>> Thanks.
>>>> Ajith
>>>>
>>>>
>>>>
>>>>
>>>> On Mon, Jun 9, 2014 at 7:34 PM, Nuwan Dias <[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I'm trying to register a custom indexer for the API Manager. I have
>>>>> indexer in an external jar file and put in to the components/lib 
>>>>> directory.
>>>>>
>>>>> The Indexer implements
>>>>> the org.wso2.carbon.registry.indexing.indexer.Indexer interface and the
>>>>> 'getIndexedDocument' method.
>>>>>
>>>>> I have registered my indexer in the registry.xml as <indexer
>>>>> class="org.wso2.carbon.wsdl.indexer.WSDLIndexer"
>>>>> mediaTypeRegEx="application/api+wsdl+xml"/>
>>>>>
>>>>>  When I create a registry resource with the above provided media type,
>>>>> the indexer does not seem to execute. Anything wrong I could be doing or 
>>>>> is
>>>>> there anything else to be done?
>>>>>
>>>>> I have some debug logs and sysouts within my indexer, these are not
>>>>> being printed at the moment. That's how I figured the indexer is not
>>>>> running. Is there any way to find out whether a resource was indexed?
>>>>>
>>>>> Thanks,
>>>>> NuwanD.
>>>>>
>>>>> --
>>>>> Nuwan Dias
>>>>>
>>>>> Associate Tech Lead - WSO2, Inc. http://wso2.com
>>>>> email : [email protected]
>>>>> Phone : +94 777 775 729
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Ajith Vitharana.
>>>> WSO2 Inc. - http://wso2.org
>>>> Email  :  [email protected]
>>>> Mobile : +94772217350
>>>>
>>>>
>>>
>>> --
>>> Nuwan Dias
>>>
>>> Associate Tech Lead - WSO2, Inc. http://wso2.com
>>> email : [email protected]
>>> Phone : +94 777 775 729
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> /sumedha
>> m: +94 773017743
>> b :  bit.ly/sumedha
>>
>
>
>
> --
> Nuwan Dias
>
> Associate Tech Lead - WSO2, Inc. http://wso2.com
> email : [email protected]
> Phone : +94 777 775 729
>



-- 
Ajith Vitharana.
WSO2 Inc. - http://wso2.org
Email  :  [email protected]
Mobile : +94772217350
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to