Forwarding to Dev.

Thanks,

On Fri, Dec 12, 2014 at 1:54 PM, Madusanka Premaratne <madusan...@wso2.com>
wrote:
>
> Hi Lakshman,
>
> In the API Manager registy.xml there are configurations to define *index
> configuration which is used in meta data search feature of the registry*
> and to *enable JMX management.*
> Basically I added following configurations additionally to the dss's
> registy.xml
>
> <!-- This defines index configuration which is used in meta data search
> feature of the registry -->
>     <indexingConfiguration>
>         <startingDelayInSeconds>60</startingDelayInSeconds>
>         <indexingFrequencyInSeconds>2</indexingFrequencyInSeconds>
>         <!--number of resources submit for given indexing thread -->
>         <batchSize>50</batchSize>
>         <!--number of worker threads for indexing -->
>         <indexerPoolSize>10</indexerPoolSize>
>         <!-- location storing the time the indexing took place-->
>
> <lastAccessTimeLocation>/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime</lastAccessTimeLocation>
>         <!-- the indexers that implement the indexer interface for a
> relevant media type/(s) -->
>         <indexers>
>             <!--indexer
> class="org.wso2.carbon.registry.indexing.indexer.MSExcelIndexer"
> mediaTypeRegEx="application/vnd.ms-excel"/>
>             <indexer
> class="org.wso2.carbon.registry.indexing.indexer.MSPowerpointIndexer"
> mediaTypeRegEx="application/vnd.ms-powerpoint"/>
>             <indexer
> class="org.wso2.carbon.registry.indexing.indexer.MSWordIndexer"
> mediaTypeRegEx="application/msword"/>
>             <indexer
> class="org.wso2.carbon.registry.indexing.indexer.PDFIndexer"
> mediaTypeRegEx="application/pdf"/>
>             <indexer
> class="org.wso2.carbon.registry.indexing.indexer.XMLIndexer"
> mediaTypeRegEx="application/xml"/-->
>             <!--indexer
> class="org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer"
> mediaTypeRegEx="application/wsdl\+xml" profiles
> ="default,api-store,api-publisher"/>
>             <indexer
> class="org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer"
> mediaTypeRegEx="application/x-xsd\+xml " profiles
> ="default,api-store,api-publisher"/>
>             <indexer
> class="org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer"
> mediaTypeRegEx="application/policy\+xml" profiles
> ="default,api-store,api-publisher"/-->
>             <indexer
> class="org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer"
> mediaTypeRegEx="application/vnd.(.)+\+xml" profiles
> ="default,api-store,api-publisher"/>
>             <!--indexer
> class="org.wso2.carbon.registry.indexing.indexer.XMLIndexer"
> mediaTypeRegEx="application/(.)+\+xml"/>
>             <indexer
> class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer"
> mediaTypeRegEx="text/(.)+"/>
>             <indexer
> class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer"
> mediaTypeRegEx="application/x-javascript"/-->
>         <indexer
> class="org.wso2.carbon.apimgt.impl.indexing.indexer.PlainTextIndexer"
> mediaTypeRegEx="text/plain+" profiles ="default,api-store,api-publisher"/>
>         <indexer
> class="org.wso2.carbon.apimgt.impl.indexing.indexer.PDFIndexer"
> mediaTypeRegEx="application/pdf" profiles
> ="default,api-store,api-publisher"/>
>         <indexer
> class="org.wso2.carbon.apimgt.impl.indexing.indexer.MSWordIndexer"
> mediaTypeRegEx="application/msword" profiles
> ="default,api-store,api-publisher"/>
>         <indexer
> class="org.wso2.carbon.apimgt.impl.indexing.indexer.MSPowerpointIndexer"
> mediaTypeRegEx="application/vnd.ms-powerpoint" profiles
> ="default,api-store,api-publisher"/>
>         <indexer
> class="org.wso2.carbon.apimgt.impl.indexing.indexer.MSExcelIndexer"
> mediaTypeRegEx="application/vnd.ms-excel" profiles
> ="default,api-store,api-publisher"/>
>         <indexer
> class="org.wso2.carbon.apimgt.impl.indexing.indexer.XMLIndexer"
> mediaTypeRegEx="application/xml" profiles
> ="default,api-store,api-publisher"/>
>         </indexers>
>         <exclusions>
>             <exclusion
> pathRegEx="/_system/config/repository/dashboards/gadgets/swfobject1-5/.*[.]html"/>
>             <exclusion
> pathRegEx="/_system/local/repository/components/org[.]wso2[.]carbon[.]registry/mount/.*"/>
>         </exclusions>
>     </indexingConfiguration>
>
>     <versionResourcesOnChange>true</versionResourcesOnChange>
>
>     <!-- NOTE: You can edit the options under "StaticConfiguration" only
> before the
>      startup. -->
>     <staticConfiguration>
>         <versioningProperties>true</versioningProperties>
>         <versioningComments>true</versioningComments>
>         <versioningTags>true</versioningTags>
>         <versioningRatings>true</versioningRatings>
>     </staticConfiguration>
>
> <!-- This enables JMX management for G-Reg -->
>     <jmx enabled="false">
>         <service name="InvocationStatistics" enabled="true"/>
>         <service name="Activities" enabled="true"/>
>         <service name="Properties" enabled="true"/>
>         <service name="Subscriptions" enabled="true"/>
>         <service name="Events" enabled="true"/>
>     </jmx>
>
>
> We will document with the configurations and will ask them to document.
> Thanks,
>
> On Fri, Dec 12, 2014 at 1:48 PM, Lakshman Udayakantha <lakshm...@wso2.com>
> wrote:
>>
>> Hi Madushanka,
>>
>> Could you post the configuration changes done? should they go to
>> documentation?
>>
>> Thanks
>> Lakshman
>>
>> On Fri, Dec 12, 2014 at 1:25 PM, Madusanka Premaratne <
>> madusan...@wso2.com> wrote:
>>>
>>> I figured out the error. It was a configuration problem with the
>>> configurations in registry.xml
>>>
>>> Thanks,
>>>
>>> On Fri, Dec 12, 2014 at 10:07 AM, Madusanka Premaratne <
>>> madusan...@wso2.com> wrote:
>>>>
>>>> Hi All/Kishanthan,
>>>> I tried to debug this in OSGI level and some of the components saying "No
>>>> unresolved constraints" and some pop out "Missing optionally imported
>>>> packages".
>>>> When I try diag 19, I can see the following.
>>>>
>>>> osgi> diag 19
>>>>
>>>> reference:file:../plugins/bsf-all_3.0.0.wso2v2.jar [19]
>>>>
>>>>   Direct constraints which are unresolved:
>>>>
>>>>     Missing optionally imported package com.judoscript_0.0.0.
>>>>
>>>>     Missing optionally imported package com.judoscript.bio_0.0.0.
>>>>
>>>>     Missing optionally imported package com.judoscript.parser_0.0.0.
>>>>
>>>>     Missing optionally imported package com.judoscript.util_0.0.0.
>>>>
>>>>     Missing optionally imported package
>>>> com.rc.retroweaver.runtime_0.0.0.
>>>>
>>>>     Missing optionally imported package de.odysseus.el.util_0.0.0.
>>>>
>>>>     Missing optionally imported package freemarker.template_0.0.0.
>>>>
>>>>     Missing optionally imported package groovy.lang_0.0.0.
>>>>
>>>>     Missing optionally imported package javax.tools_0.0.0.
>>>>
>>>>     Missing optionally imported package jfun.jaskell_0.0.0.
>>>>
>>>>     Missing optionally imported package jfun.jaskell.ast_0.0.0.
>>>>
>>>>     Missing optionally imported package jfun.jaskell.function_0.0.0.
>>>>
>>>>     Missing optionally imported package jfun.parsec_0.0.0.
>>>>
>>>>     Missing optionally imported package jfun.util_0.0.0.
>>>>
>>>>     Missing optionally imported package ognl_0.0.0.
>>>>
>>>>     Missing optionally imported package org.apache.commons.jelly_0.0.0.
>>>>
>>>>     Missing optionally imported package
>>>> org.apache.commons.jelly.expression_0.0.0.
>>>>
>>>>     Missing optionally imported package
>>>> org.apache.commons.jelly.impl_0.0.0.
>>>>
>>>>     Missing optionally imported package
>>>> org.apache.commons.jelly.parser_0.0.0.
>>>>
>>>>     Missing optionally imported package
>>>> org.apache.commons.jelly.tags.core_0.0.0.
>>>>
>>>>     Missing optionally imported package org.apache.commons.jexl_0.0.0.
>>>>
>>>>     Missing optionally imported package
>>>> org.codehaus.groovy.control_0.0.0.
>>>>
>>>>     Missing optionally imported package
>>>> org.codehaus.groovy.runtime_0.0.0.
>>>>
>>>>     Missing optionally imported package
>>>> org.codehaus.groovy.syntax_0.0.0.
>>>>
>>>>     Missing optionally imported package org.jawk_0.0.0.
>>>>
>>>>     Missing optionally imported package org.jruby_0.0.0.
>>>>
>>>>     Missing optionally imported package org.jruby.ast_0.0.0.
>>>>
>>>>     Missing optionally imported package org.jruby.exceptions_0.0.0.
>>>>
>>>>     Missing optionally imported package
>>>> org.jruby.internal.runtime_0.0.0.
>>>>
>>>>     Missing optionally imported package org.jruby.javasupport_0.0.0.
>>>>
>>>>     Missing optionally imported package org.jruby.runtime_0.0.0.
>>>>
>>>>     Missing optionally imported package org.jruby.runtime.builtin_0.0.0.
>>>>
>>>>     Missing optionally imported package org.jruby.runtime.load_0.0.0.
>>>>
>>>>     Missing optionally imported package org.jruby.util_0.0.0.
>>>>
>>>>     Missing optionally imported package org.jruby.util.io_0.0.0.
>>>>
>>>>     Missing optionally imported package org.lsmp.djep.groupJep_0.0.0.
>>>>
>>>>     Missing optionally imported package
>>>> org.lsmp.djep.groupJep.groups_0.0.0.
>>>>
>>>>     Missing optionally imported package org.lsmp.djep.vectorJep_0.0.0.
>>>>
>>>>     Missing optionally imported package org.nfunk.jep_0.0.0.
>>>>
>>>>     Missing optionally imported package org.nfunk.jep.function_0.0.0.
>>>>
>>>>     Missing optionally imported package org.pnuts.lang_0.0.0.
>>>>
>>>>     Missing optionally imported package org.pnuts.util_0.0.0.
>>>>
>>>>     Missing optionally imported package org.python.core_0.0.0.
>>>>
>>>>     Missing optionally imported package pnuts.compiler_0.0.0.
>>>>
>>>>     Missing optionally imported package pnuts.lang_0.0.0.
>>>>
>>>>     Missing optionally imported package sisc.data_0.0.0.
>>>>
>>>>     Missing optionally imported package sisc.interpreter_0.0.0.
>>>>
>>>>     Missing optionally imported package sisc.modules.s2j_0.0.0.
>>>>
>>>>     Missing optionally imported package sisc.nativefun_0.0.0.
>>>>
>>>>     Missing optionally imported package sisc.reader_0.0.0.
>>>>
>>>>     Missing optionally imported package sisc.ser_0.0.0.
>>>>
>>>>     Missing optionally imported package tcl.lang_0.0.0.
>>>>
>>>> What can I do to resolve this?
>>>> Thanks,
>>>>
>>>> On Mon, Dec 8, 2014 at 5:07 PM, Madusanka Premaratne <
>>>> madusan...@wso2.com> wrote:
>>>>>
>>>>> Hi All,
>>>>> I recently installed APIM 1.7.0 on top of Data Services Server. After
>>>>> the installation I check the "apimgt" OSGI bundles (using ss apimgt)
>>>>> and those are in "ACTIVE" state. But when I list the services  using
>>>>> *list* command, I can see the services are unsatisfied as below.
>>>>>
>>>>> 19 Unsatisfied org.wso2.apimgt.core.services org.wso2.carbon.apimgt.
>>>>> core(bid=189)
>>>>>
>>>>> 20 Unsatisfied org.wso2.carbon.apimgt.handlers org.wso2.carbon.apimgt.
>>>>> gateway(bid=190)
>>>>>
>>>>> 21 Unsatisfied org.wso2.apimgt.hostobjects org.wso2.carbon.apimgt.
>>>>> hostobjects(bid=192)
>>>>>
>>>>> 22 Unsatisfied org.wso2.apimgt.impl.services org.wso2.carbon.apimgt.
>>>>> impl(bid=193)
>>>>>
>>>>> 23 Unsatisfied api.keymgt.component org.wso2.carbon.apimgt.keymgt(
>>>>> bid=194)
>>>>>
>>>>> 24 Unsatisfied org.wso2.apimgt.usage.client
>>>>> org.wso2.carbon.apimgt.usage.client(bid=197)
>>>>>
>>>>> 25 Unsatisfied api.mgt.usage.component
>>>>> org.wso2.carbon.apimgt.usage.publisher(bid=198)
>>>>>
>>>>> When I check the component using *osgi -c bundle_id*, it gives me the
>>>>> following output
>>>>>
>>>>> osgi> ls -c 189
>>>>>
>>>>> Components in bundle org.wso2.carbon.apimgt.core:
>>>>>
>>>>> ID Component details
>>>>>
>>>>> 19 Component[
>>>>>
>>>>> name = org.wso2.apimgt.core.services
>>>>>
>>>>> factory = null
>>>>>
>>>>> autoenable = true
>>>>>
>>>>> immediate = true
>>>>>
>>>>> implementation = org.wso2.carbon.apimgt.core.internal.
>>>>> APPManagerCoreComponent
>>>>>
>>>>> state = Unsatisfied
>>>>>
>>>>> properties = {service.pid=org.wso2.apimgt.core.services}
>>>>>
>>>>> serviceFactory = false
>>>>>
>>>>> serviceInterface = null
>>>>>
>>>>> references = {
>>>>>
>>>>> Reference[name = api.manager.config.service, interface = org.wso2.
>>>>> carbon.apimgt.impl.APIManagerConfigurationService, policy = dynamic,
>>>>> cardinality = 1..1, target = null, bind =
>>>>> setAPIManagerConfigurationService, unbind =
>>>>> unsetAPIManagerConfigurationService]
>>>>>
>>>>> }
>>>>>
>>>>> located in bundle = org.wso2.carbon.apimgt.core_1.2.2 [189]
>>>>>
>>>>> ]
>>>>>
>>>>> Dynamic information :
>>>>>
>>>>>   *The component is NOT satisfied
>>>>>
>>>>>   The following references are not satisfied:
>>>>>
>>>>>     Reference[name = api.manager.config.service, interface = org.wso2.
>>>>> carbon.apimgt.impl.APIManagerConfigurationService, policy = dynamic,
>>>>> cardinality = 1..1, target = null, bind =
>>>>> setAPIManagerConfigurationService, unbind =
>>>>> unsetAPIManagerConfigurationService]
>>>>>
>>>>>   Component configurations :
>>>>>
>>>>>     Configuration properties:
>>>>>
>>>>>       service.pid = org.wso2.apimgt.core.services
>>>>>
>>>>>       component.name = org.wso2.apimgt.core.services
>>>>>
>>>>>       component.id = 18
>>>>>
>>>>>     Instances:
>>>>>
>>>>>
>>>>> Did anybody try same scenarios before or anyone knows how to resolve
>>>>> this issue?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> --
>>>>> *Madusanka Premaratne* | Associate Software Engineer
>>>>> WSO2, Inc | lean. enterprise. middleware.
>>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>>>>> Email: madusan...@wso2.com | Web: www.wso2.com
>>>>>
>>>>> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
>>>>> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
>>>>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> 
>>>>> [image:
>>>>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>>>>> <http://instagram.com/madusankapremaratne> [image: Skype]
>>>>> <http://@rmmpremaratne>
>>>>>
>>>>>
>>>>
>>>> --
>>>> *Madusanka Premaratne* | Associate Software Engineer
>>>> WSO2, Inc | lean. enterprise. middleware.
>>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>>>> Email: madusan...@wso2.com | Web: www.wso2.com
>>>>
>>>> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
>>>> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
>>>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>>>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>>>> <http://instagram.com/madusankapremaratne> [image: Skype]
>>>> <http://@rmmpremaratne>
>>>>
>>>>
>>>
>>> --
>>> *Madusanka Premaratne* | Associate Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 835 70 73| Work: +94 112 145 345
>>> Email: madusan...@wso2.com | Web: www.wso2.com
>>>
>>> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
>>> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
>>> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
>>> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
>>> <http://instagram.com/madusankapremaratne> [image: Skype]
>>> <http://@rmmpremaratne>
>>>
>>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>
> --
> *Madusanka Premaratne* | Associate Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 835 70 73| Work: +94 112 145 345
> Email: madusan...@wso2.com | Web: www.wso2.com
>
> [image: Facebook] <https://www.facebook.com/rmmpremaratne> [image:
> Twitter] <https://twitter.com/rmmpremaratne> [image: Google Plus]
> <https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
> Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
> <http://instagram.com/madusankapremaratne> [image: Skype]
> <http://@rmmpremaratne>
>
>

-- 
*Madusanka Premaratne* | Associate Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 835 70 73| Work: +94 112 145 345
Email: madusan...@wso2.com | Web: www.wso2.com

[image: Facebook] <https://www.facebook.com/rmmpremaratne> [image: Twitter]
<https://twitter.com/rmmpremaratne> [image: Google Plus]
<https://plus.google.com/u/0/+MadusankaPremaratnemaduz/about/p/pub> [image:
Linkedin] <http://lk.linkedin.com/in/madusanka/> [image: Instagram]
<http://instagram.com/madusankapremaratne> [image: Skype]
<http://@rmmpremaratne>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to