geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcos Mendez <>
Subject Re: Geronimo 3.0.0 + KAR deployment = no osgi service metadata
Date Mon, 19 Nov 2012 20:04:33 GMT
Hi JB,

The KAR deploys fine. The problem is that there is no version, osgi metadata, no services,
no information about the kar at all once it is installed. I'm including the log, the pom and
features xml in case someone wants to try. Do I need to add anything for geronimo? This kar
deploys fine in karaf as well, but it does show for example the joda-time package or bundle
information. Am i missing something?


---- log ---

Geronimo Application Server started
Bundle: Active sl = 100; Bundle 338 sl = 60
->started org.apache.geronimo.configs.sharedlib.SharedLib_3.0.0 [338]

geronimo> log:display

geronimo> install from inputstream: file:////geronimo/geronimo-tomcat7-javaee6-web-3.0.0/var/temp/simplekar-1.0.kar,
Saving framework data ...
Saving bundle data ...
Saving resolver state data ...
Bundle: Active sl = 100; Bundle 339 sl = 60
->started unknown_0.0.0 [339]
Saving framework data ...
Saving bundle data ...
Saving resolver state data ...

geronimo> osgi:info 339

Bundle 339

----- pom.xml ---

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="" xmlns:xsi=""


        Licensed to the Apache Software Foundation (ASF) under one or more
        contributor license agreements.  See the NOTICE file distributed with
        this work for additional information regarding copyright ownership.
        The ASF licenses this file to You under the Apache License, Version 2.0
        (the "License"); you may not use this file except in compliance with
        the License.  You may obtain a copy of the License at


        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.


    <name>simplekar feature</name>
    <description>Create a feature with the defined dependencies set.</description>

        <!-- Put here the artifacts which should be included in the feature -->




--- features.xml ---

<?xml version="1.0" encoding="UTF-8"?>

<features name="simplekar-1.0-SNAPSHOT" xmlns="">
    <feature name="simplekar" description="simplekar" version="1.0-SNAPSHOT" resolver="(obr)">
        <details>simple kar with joda-time</details>
        <bundle dependency="true">mvn:joda-time/joda-time/2.1</bundle>

On Nov 19, 2012, at 2:34 PM, Jean-Baptiste Onofré wrote:

> Hi Marcos,
> basically a Kar is a zip file containing a features XML and embedding all required bundles
and configuration files.
> So, if you are able to do features:install (and it works fine), Kar should do the same.
> Could you take a look in the log (using log:display) ?
> Regards
> JB
> On 11/19/2012 08:25 PM, Marcos Mendez wrote:
>> Hi,
>> I followed the KARAF example to build a KAR with a simple osgi bundle,
>> start it etc.
>> I can deploy and start it thru the console or hotbundles folder. However
>> geronimo does not show any information about bundles/packages. So I'm
>> not sure if the osgi services are up or if there was an issue - I don't
>> see any errors in the log.
>> Has anyone tried this? Am I missing something in the kar, like a
>> geronimo xml or do I need to use the add-features-to-repo? I have not
>> see anything in any documentation about this.
>> Regards,
>> Marcos
> -- 
> Jean-Baptiste Onofré
> Talend -

View raw message