You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by David Benge <db...@adobe.com> on 2011/02/24 21:01:48 UTC

unresolved Imported Packages - Ipojo

I am just getting started with Ipojo and when I deploy my bundle in Felix I find that my bundle has unresolved Imported Packages.  I am not sure what I am doing wrong when I do maven install from eclipse.  Can someone point out what I did wrong?
Thanks

Felix console
Imported Packages
org.apache.felix.ipojo,version=1.8.0 -- Cannot be resolved
org.apache.felix.ipojo.architecture,version=1.8.0 -- Cannot be resolved

Manifest Header from Felix
iPOJO-Components: component { $name="com.adobe.etv.config.ETVConfigurator" $classname="com.adobe.etv.config.ETVConfigurator" $public="true" provides { }manipulation { field { $name="configMap" $type="java.util.Dictionary" }method { $name="$init" }method { $arguments="{org.osgi.service.component.ComponentContext}" $name="activate" }method { $arguments="{java.lang.String}" $name="getConfigValue" $return="java.lang.String" }method { $arguments="{java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String}" $name="defaultETVConfigurator" $return="com.adobe.etv.config.ETVConfiguratorService" }interface { $name="com.adobe.etv.config.ETVConfiguratorService" }}}component { $immediate="true" $name="DavidTestClient" $classname="com.adobe.etv.test.DavidTest" $public="true" manipulation { field { $name="etvConfigurator" $type="com.adobe.etv.config.ETVConfiguratorService" }method { $name="$init" }}requires { $field="etvConfigurator" }}

I am using annotations and my POM looks has the following

<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.3</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>!com.adobe.etv.ut.*,com.adobe.etv.*</Export-Package>
<!-- Bundle supplied resource prefixes -->
<Include-Resource>{maven-resources}</Include-Resource>
<Sling-Bundle-Resources>/var/classes</Sling-Bundle-Resources>
<Sling-Initial-Content>SLINGINF/sling/servlets/;overwrite:=true;uninstall:=true;path:=/apps/sling/servlets,SLING-INF/public/;overwrite:=true;uninstall:=true;path:=/apps/public
</Sling-Initial-Content>
</instructions>
</configuration>
</plugin>


<!-- iPOJO Maven Plugin Configuration : nothing to do -->
     <plugin>
        <groupId>org.apache.felix</groupId>
       <artifactId>maven-ipojo-plugin</artifactId>
       <version>1.8.0</version>
        <executions>
          <execution>
              <goals>
                     <goal>ipojo-bundle</goal>
              </goals>
         </execution>
       </executions>
     </plugin>



<dependency>
      <groupId>org.apache.felix</groupId>
      <artifactId>org.apache.felix.ipojo.annotations</artifactId>
      <version>1.8.0</version>
      <type>bundle</type>
</dependency>


<dependency>
      <groupId>org.apache.felix</groupId>
      <artifactId>org.apache.felix.ipojo</artifactId>
      <version>1.8.0</version>
      <type>bundle</type>
</dependency>

Re: unresolved Imported Packages - Ipojo

Posted by Clement Escoffier <cl...@gmail.com>.
Hi,

As said by Rick, you just have to deploy iPOJO 1.8.0:
http://repo2.maven.org/maven2/org/apache/felix/org.apache.felix.ipojo/1.8.0
/org.apache.felix.ipojo-1.8.0.jar

So if you're using the gogo shell:
start 
http://repo2.maven.org/maven2/org/apache/felix/org.apache.felix.ipojo/1.8.0
/org.apache.felix.ipojo-1.8.0.jar

Regards,

Clement

On 24.02.11 21:22, "Richard S. Hall" <he...@ungoverned.org> wrote:

>Are you installing the org.apache.felix.ipojo-1.8.0.jar bundle?
>
>iPOJO adds these imports to your bundle as part of its processing of the
>components contained inside, so you need to deploy this iPOJO bundle to
>satisfy them. Further, the iPOJO bundle is the component runtime that
>will manage your components, so you need it for that too.
>
>-> richard
>
>
>On 2/24/11 15:01, David Benge wrote:
>> I am just getting started with Ipojo and when I deploy my bundle in
>>Felix I find that my bundle has unresolved Imported Packages.  I am not
>>sure what I am doing wrong when I do maven install from eclipse.  Can
>>someone point out what I did wrong?
>> Thanks
>>
>> Felix console
>> Imported Packages
>> org.apache.felix.ipojo,version=1.8.0 -- Cannot be resolved
>> org.apache.felix.ipojo.architecture,version=1.8.0 -- Cannot be resolved
>>
>> Manifest Header from Felix
>> iPOJO-Components: component {
>>$name="com.adobe.etv.config.ETVConfigurator"
>>$classname="com.adobe.etv.config.ETVConfigurator" $public="true"
>>provides { }manipulation { field { $name="configMap"
>>$type="java.util.Dictionary" }method { $name="$init" }method {
>>$arguments="{org.osgi.service.component.ComponentContext}"
>>$name="activate" }method { $arguments="{java.lang.String}"
>>$name="getConfigValue" $return="java.lang.String" }method {
>>$arguments="{java.lang.String, java.lang.String, java.lang.String,
>>java.lang.String, java.lang.String}" $name="defaultETVConfigurator"
>>$return="com.adobe.etv.config.ETVConfiguratorService" }interface {
>>$name="com.adobe.etv.config.ETVConfiguratorService" }}}component {
>>$immediate="true" $name="DavidTestClient"
>>$classname="com.adobe.etv.test.DavidTest" $public="true" manipulation {
>>field { $name="etvConfigurator"
>>$type="com.adobe.etv.config.ETVConfiguratorService" }method {
>>$name="$init" }}requires { $field="etvConfigurator" }}
>>
>> I am using annotations and my POM looks has the following
>>
>> <plugin>
>> <groupId>org.apache.felix</groupId>
>> <artifactId>maven-bundle-plugin</artifactId>
>> <version>1.4.3</version>
>> <extensions>true</extensions>
>> <configuration>
>> <instructions>
>> <Export-Package>!com.adobe.etv.ut.*,com.adobe.etv.*</Export-Package>
>> <!-- Bundle supplied resource prefixes -->
>> <Include-Resource>{maven-resources}</Include-Resource>
>> <Sling-Bundle-Resources>/var/classes</Sling-Bundle-Resources>
>> 
>><Sling-Initial-Content>SLINGINF/sling/servlets/;overwrite:=true;uninstall
>>:=true;path:=/apps/sling/servlets,SLING-INF/public/;overwrite:=true;unins
>>tall:=true;path:=/apps/public
>> </Sling-Initial-Content>
>> </instructions>
>> </configuration>
>> </plugin>
>>
>>
>> <!-- iPOJO Maven Plugin Configuration : nothing to do -->
>>       <plugin>
>>          <groupId>org.apache.felix</groupId>
>>         <artifactId>maven-ipojo-plugin</artifactId>
>>         <version>1.8.0</version>
>>          <executions>
>>            <execution>
>>                <goals>
>>                       <goal>ipojo-bundle</goal>
>>                </goals>
>>           </execution>
>>         </executions>
>>       </plugin>
>>
>>
>>
>> <dependency>
>>        <groupId>org.apache.felix</groupId>
>>        <artifactId>org.apache.felix.ipojo.annotations</artifactId>
>>        <version>1.8.0</version>
>>        <type>bundle</type>
>> </dependency>
>>
>>
>> <dependency>
>>        <groupId>org.apache.felix</groupId>
>>        <artifactId>org.apache.felix.ipojo</artifactId>
>>        <version>1.8.0</version>
>>        <type>bundle</type>
>> </dependency>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>For additional commands, e-mail: users-help@felix.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: unresolved Imported Packages - Ipojo

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Are you installing the org.apache.felix.ipojo-1.8.0.jar bundle?

iPOJO adds these imports to your bundle as part of its processing of the 
components contained inside, so you need to deploy this iPOJO bundle to 
satisfy them. Further, the iPOJO bundle is the component runtime that 
will manage your components, so you need it for that too.

-> richard


On 2/24/11 15:01, David Benge wrote:
> I am just getting started with Ipojo and when I deploy my bundle in Felix I find that my bundle has unresolved Imported Packages.  I am not sure what I am doing wrong when I do maven install from eclipse.  Can someone point out what I did wrong?
> Thanks
>
> Felix console
> Imported Packages
> org.apache.felix.ipojo,version=1.8.0 -- Cannot be resolved
> org.apache.felix.ipojo.architecture,version=1.8.0 -- Cannot be resolved
>
> Manifest Header from Felix
> iPOJO-Components: component { $name="com.adobe.etv.config.ETVConfigurator" $classname="com.adobe.etv.config.ETVConfigurator" $public="true" provides { }manipulation { field { $name="configMap" $type="java.util.Dictionary" }method { $name="$init" }method { $arguments="{org.osgi.service.component.ComponentContext}" $name="activate" }method { $arguments="{java.lang.String}" $name="getConfigValue" $return="java.lang.String" }method { $arguments="{java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String}" $name="defaultETVConfigurator" $return="com.adobe.etv.config.ETVConfiguratorService" }interface { $name="com.adobe.etv.config.ETVConfiguratorService" }}}component { $immediate="true" $name="DavidTestClient" $classname="com.adobe.etv.test.DavidTest" $public="true" manipulation { field { $name="etvConfigurator" $type="com.adobe.etv.config.ETVConfiguratorService" }method { $name="$init" }}requires { $field="etvConfigurator" }}
>
> I am using annotations and my POM looks has the following
>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>1.4.3</version>
> <extensions>true</extensions>
> <configuration>
> <instructions>
> <Export-Package>!com.adobe.etv.ut.*,com.adobe.etv.*</Export-Package>
> <!-- Bundle supplied resource prefixes -->
> <Include-Resource>{maven-resources}</Include-Resource>
> <Sling-Bundle-Resources>/var/classes</Sling-Bundle-Resources>
> <Sling-Initial-Content>SLINGINF/sling/servlets/;overwrite:=true;uninstall:=true;path:=/apps/sling/servlets,SLING-INF/public/;overwrite:=true;uninstall:=true;path:=/apps/public
> </Sling-Initial-Content>
> </instructions>
> </configuration>
> </plugin>
>
>
> <!-- iPOJO Maven Plugin Configuration : nothing to do -->
>       <plugin>
>          <groupId>org.apache.felix</groupId>
>         <artifactId>maven-ipojo-plugin</artifactId>
>         <version>1.8.0</version>
>          <executions>
>            <execution>
>                <goals>
>                       <goal>ipojo-bundle</goal>
>                </goals>
>           </execution>
>         </executions>
>       </plugin>
>
>
>
> <dependency>
>        <groupId>org.apache.felix</groupId>
>        <artifactId>org.apache.felix.ipojo.annotations</artifactId>
>        <version>1.8.0</version>
>        <type>bundle</type>
> </dependency>
>
>
> <dependency>
>        <groupId>org.apache.felix</groupId>
>        <artifactId>org.apache.felix.ipojo</artifactId>
>        <version>1.8.0</version>
>        <type>bundle</type>
> </dependency>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org