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?
Regards,
Marcos
---- 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, null
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
----------
geronimo>
----- pom.xml ---
4.0.0simplekarsimplekar1.0pomsimplekar featureCreate a feature with the defined dependencies set.joda-timejoda-time2.1org.apache.karaf.toolingfeatures-maven-plugin2.3.0create-karcreate-kar${basedir}/features.xml
--- features.xml ---
simple kar with joda-timemvn:joda-time/joda-time/2.1
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.
>>
>> http://karaf.apache.org/manual/2.3.0/users-guide/kar.html
>>
>> 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é
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com