Hi JB,

Yes I've check that and the bundles/services are not visible. 

-- list --

[ 339] [Active     ] [            ] [   60] 
file:////geronimo/geronimo-tomcat7-javaee6-web-3.0.0/var/temp/simplekar-1.0.kar

(osgi) ls does not list 339.

Regards,
Marcos


On Nov 19, 2012, at 3:14 PM, Jean-Baptiste Onofré wrote:

> If you talk about OSGi services, ls command will provide you the available 
> services (you can provide the corresponding bundles ID).
> 
> Regards
> JB
> 
> On 11/19/2012 09:11 PM, Marcos Mendez wrote:
>> 
>> So are the services inside running ? Any way I could find that out without 
>> deploying something else to test that?
>> 
>> On Nov 19, 2012, at 3:07 PM, Jean-Baptiste Onofré wrote:
>> 
>>> In next Karaf version (3.0.0), you will have some commands detected for KAR 
>>> archives (kar:list, kar:install, etc).
>>> 
>>> Currently, you don't have information about the kar itself, only about the 
>>> features embedded in the kar.
>>> 
>>> So, after kar deployment, you should be able to see the kar features using 
>>> features:list -i
>>> 
>>> Regards
>>> JB
>>> 
>>> On 11/19/2012 09:04 PM, Marcos Mendez wrote:
>>>> 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 ---
>>>> 
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <project xmlns="http://maven.apache.org/POM/4.0.0"; 
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>>>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
>>>> http://maven.apache.org/xsd/maven-4.0.0.xsd";>
>>>> 
>>>>     <!--
>>>> 
>>>>         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
>>>> 
>>>>             http://www.apache.org/licenses/LICENSE-2.0
>>>> 
>>>>         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.
>>>>     -->
>>>> 
>>>>     <modelVersion>4.0.0</modelVersion>
>>>> 
>>>>     <groupId>simplekar</groupId>
>>>>     <artifactId>simplekar</artifactId>
>>>>     <version>1.0</version>
>>>>     <packaging>pom</packaging>
>>>>     <name>simplekar feature</name>
>>>>     <description>Create a feature with the defined dependencies 
>>>> set.</description>
>>>> 
>>>>     <dependencies>
>>>>         <!-- Put here the artifacts which should be included in the 
>>>> feature -->
>>>>         <dependency>
>>>>             <groupId>joda-time</groupId>
>>>>             <artifactId>joda-time</artifactId>
>>>>             <version>2.1</version>
>>>>         </dependency>
>>>> 
>>>>     </dependencies>
>>>> 
>>>>     <build>
>>>>         <plugins>
>>>>             <plugin>
>>>>                 <groupId>org.apache.karaf.tooling</groupId>
>>>>                 <artifactId>features-maven-plugin</artifactId>
>>>>                 <version>2.3.0</version>
>>>>                 <executions>
>>>>                     <execution>
>>>>                         <id>create-kar</id>
>>>>                         <goals>
>>>>                             <goal>create-kar</goal>
>>>>                         </goals>
>>>>                         <configuration>
>>>>                             
>>>> <featuresFile>${basedir}/features.xml</featuresFile>
>>>>                         </configuration>
>>>>                     </execution>
>>>>                 </executions>
>>>>             </plugin>
>>>>         </plugins>
>>>>     </build>
>>>> 
>>>> </project>
>>>> 
>>>> --- features.xml ---
>>>> 
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> 
>>>> <features name="simplekar-1.0-SNAPSHOT" 
>>>> xmlns="http://karaf.apache.org/xmlns/features/v1.0.0";>
>>>>     <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>
>>>>     </feature>
>>>> </features>
>>>> 
>>>> 
>>>> 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é
>>>>> jbono...@apache.org
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>> 
>>> 
>>> --
>>> Jean-Baptiste Onofré
>>> jbono...@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>> 
> 
> -- 
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com

Reply via email to