Hi, With WSO2 Carbon Metrics release 1.1.0 [1], WSO2 Products can extend the Metrics UI and show product specific metrics in Management Console.
WSO2 Message Broker successfully use a Fragment Bundle to show Messaging Metrics [2]. Now WSO2 Machine Learner product also wants show some ML specific metrics. When we create a similar component like [2], we encounter following issue. [2015-09-08 13:20:58,603] ERROR - ApplicationDispatcher Servlet.service() for servlet bridgeservlet threw exception javax.servlet.ServletException: File "/metrics-view/index.jsp" not found After further checking, we found out that the following properties in MANIFEST.MF causes the issue. Bundle-Name: org.wso2.carbon.ml.metrics.ui Bundle-SymbolicName: org.wso2.carbon.ml.metrics.ui For example, If we change the "ml" to "ma" (org.wso2.carbon.*ma*.metrics.ui), the Fragment Bundle works fine. The host bundle source is at [3]. If anyone wants to try this, build the Metrics tag v1.1.0 [1] locally and install Metrics Feature to any WSO2 product via the Feature Manager. Please use the target/p2-repo directory found in [4]. Then try copying Messaging Metrics UI jar [5] to dropins. The Messaging Metrics UI works. If we change the bundle name and symbolic name as mentioned above, there will be an error. Any idea how these bundle names affect the Fragment Bundle? Thanks! Best Regards, [1] https://github.com/wso2/carbon-metrics/releases/tag/v1.1.0 [2] https://github.com/wso2/carbon-business-messaging/tree/master/components/metrics/org.wso2.carbon.messaging.metrics.ui [3] https://github.com/wso2/carbon-metrics/tree/v1.1.0/components/org.wso2.carbon.metrics.view.ui [4] https://github.com/wso2/carbon-metrics/tree/v1.1.0/features/repository [5] http://maven.wso2.org/nexus/content/groups/wso2-public/org/wso2/carbon/messaging/org.wso2.carbon.messaging.metrics.ui/2.6.1/ -- Isuru Perera Associate Technical Lead | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware about.me/chrishantha Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
