Hi apim team,

Greg server hangs for several minutes after printing

JAVA_HOME environment variable is set to
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
CARBON_HOME environment variable is set to
/Users/prasanna/workspace/wso2/greg/git/prasanna/product-greg/modules/distribution/target/wso2greg-5.0.0-SNAPSHOT

We debug in osgi console. Then we found following two apimanager osgi
bundles were not started.

161    INSTALLED   org.wso2.carbon.apimgt.core_4.3.0.SNAPSHOT
165    INSTALLED   org.wso2.carbon.apimgt.interceptor_4.3.0.SNAPSHOT

diag 161 and diag 165 describes the following

osgi> diag 161
reference:file:../plugins/org.wso2.carbon.apimgt.core_4.3.0.SNAPSHOT.jar
[161]
  Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl;
version="0.0.0"
  Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl.utils;
version="0.0.0"
  Direct constraints which are unresolved:
    Missing optionally imported package org.wso2.carbon.apimgt.core_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.core.authenticate_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.core.gateway_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.core.internal_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.core.throttle_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.core.usage_0.0.0.
    Missing optionally imported package
org.wso2.carbon.throttle.core_4.3.0.SNAPSHOT.


osgi> diag 165
reference:file:../plugins/org.wso2.carbon.apimgt.interceptor_4.3.0.SNAPSHOT.jar
[165]
  Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl.dao;
version="0.0.0"
  Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl.dto;
version="0.0.0"
  Package uses conflict: Import-Package: org.wso2.carbon.apimgt.impl.utils;
version="0.0.0"
  Direct constraints which are unresolved:
    Missing optionally imported package org.wso2.carbon.apimgt.core_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.core.authenticate_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.core.gateway_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.core.throttle_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.core.usage_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.interceptor_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.interceptor.handler_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.interceptor.utils_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.interceptor.valve_0.0.0.
    Missing optionally imported package
org.wso2.carbon.apimgt.usage.publisher.internal_0.0.0.
    Missing optionally imported package
org.wso2.carbon.throttle.core_4.3.0.SNAPSHOT.
  Leaf constraints in the dependency chain which are unresolved:

reference:file:../plugins/org.wso2.carbon.apimgt.core_4.3.0.SNAPSHOT.jar
[161]
      Missing optionally imported package
org.wso2.carbon.throttle.core_4.3.0.SNAPSHOT.


We also found that in repository/components/plugins
org.wso2.carbon.apimgt.impl is contained in two jars as follows

Binary file org.wso2.carbon.apimgt.impl_4.3.0.SNAPSHOT.jar matches
Binary file org.wso2.carbon.apimgt.keymgt.stub_4.3.0.SNAPSHOT.jar matches

Then we removed
repository/components/plugins/org.wso2.carbon.apimgt.impl_4.3.0.SNAPSHOT.jar
Then the server start up lag was not there and server starts up quickly,
but several osgi bundles were not starting properly.

Thanks
-- 
Prasanna Dangalla
Software Engineer, WSO2, Inc.; http://wso2.com/
lean.enterprise.middleware

cell: +94 777 55 80 30 | +94 718 11 27 51
twitter: @prasa77
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to