|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Cann't find file or directory for Bundle-ClassPathI 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. |
|
|
Re: Cann't find file or directory for Bundle-ClassPathMake 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 <viola.lu@...> 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@... > For additional commands, e-mail: users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |