You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "viola.lu" <vi...@gmail.com> on 2009/11/04 09:51:15 UTC

Cann't find file or directory for Bundle-ClassPath

I use maven bundle plugin to package bundle, but  
<plugin>
              <groupId>org.apache.felix</groupId>
              <artifactId>maven-bundle-plugin</artifactId>
              <version>2.0.0</version>
              <extensions>true</extensions>
              <configuration>
                  <instructions>                  	
                     
<Bundle-SymbolicName>${pom.groupId}</Bundle-SymbolicName>
                      <Bundle-Name>${pom.name}</Bundle-Name>
                      <Bundle-Version>${pom.version}</Bundle-Version>
                     
<Bundle-ClassPath>.,lib/commons-modler-2.0.jar</Bundle-ClassPath>                     
                     
<Bundle-Activator>com.ibm.mbean.info.manager.Activator</Bundle-Activator>
                     
<Private-Package>com.ibm.mbean.info.manager</Private-Package>
                     
<Export-Package>com.ibm.mbean.info.manager.*</Export-Package>
                     
<Import-Package>org.eclipse.osgi.framework.console;version="1.0.0",org
 .osgi.framework;version="1.3.0",org.osgi.service.component;version="1
 .1.0",org.osgi.util.tracker;version="1.3.1"</Import-Package>

<!--<Service-Component>${pom.basedir}/OSGI-INF/*.xml</Service-Component>${pom.basedir}/lib/commons-logging.jar,-->
 
                  </instructions>
              </configuration>
          </plugin>\

But always get an error:
Cann't find a file or directory for Bundle-Classpath entry
:lib/commons-modler-2.0.jar.But it does exist.

Can you somebody give some hints?Thanks.



-- 
View this message in context: http://old.nabble.com/Cann%27t-find-file-or-directory-for-Bundle-ClassPath-tp26192838p26192838.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.


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


Re: Cann't find file or directory for Bundle-ClassPath

Posted by Siqi Du <si...@gmail.com>.
Make sure the "lib/commons-modler-2.0.jar" has been copied into the
bundle, because Bundle-ClassPath can only refer to those in  the
bundle's space.


On Wed, Nov 4, 2009 at 4:51 PM, viola.lu <vi...@gmail.com> wrote:
>
> I use maven bundle plugin to package bundle, but
> <plugin>
>              <groupId>org.apache.felix</groupId>
>              <artifactId>maven-bundle-plugin</artifactId>
>              <version>2.0.0</version>
>              <extensions>true</extensions>
>              <configuration>
>                  <instructions>
>
> <Bundle-SymbolicName>${pom.groupId}</Bundle-SymbolicName>
>                      <Bundle-Name>${pom.name}</Bundle-Name>
>                      <Bundle-Version>${pom.version}</Bundle-Version>
>
> <Bundle-ClassPath>.,lib/commons-modler-2.0.jar</Bundle-ClassPath>
>
> <Bundle-Activator>com.ibm.mbean.info.manager.Activator</Bundle-Activator>
>
> <Private-Package>com.ibm.mbean.info.manager</Private-Package>
>
> <Export-Package>com.ibm.mbean.info.manager.*</Export-Package>
>
> <Import-Package>org.eclipse.osgi.framework.console;version="1.0.0",org
>  .osgi.framework;version="1.3.0",org.osgi.service.component;version="1
>  .1.0",org.osgi.util.tracker;version="1.3.1"</Import-Package>
>
> <!--<Service-Component>${pom.basedir}/OSGI-INF/*.xml</Service-Component>${pom.basedir}/lib/commons-logging.jar,-->
>
>                  </instructions>
>              </configuration>
>          </plugin>\
>
> But always get an error:
> Cann't find a file or directory for Bundle-Classpath entry
> :lib/commons-modler-2.0.jar.But it does exist.
>
> Can you somebody give some hints?Thanks.
>
>
>
> --
> View this message in context: http://old.nabble.com/Cann%27t-find-file-or-directory-for-Bundle-ClassPath-tp26192838p26192838.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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