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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to