Hello Peter,
I think I may have an issue with MavenFelix Pl;ugin.

I have removed all the embedded jars from my web bundle's WEb-INF/lib folder
except for struts.jar.

My osgi.bnd now has:

Bundle-ClassPath: WEB-INF/classes, \
                  WEB-INF/lib/struts.jar

When I build the app the Felix plugin throws the following error:

Error building bundle
com.hcsc.itf.osgi.samples.bank:com.hcsc.itf.osgi.samples.bank.web:bundle:1.0.0.SNAPSHOT
:* Unresolved references to [javax.sql, org.apache.commons.beanutils,
org.apache.commons.collections, org.apache.commons.dbcp,
org.apache.commons.digester, org.apache.commons.logging,
org.apache.commons.validator, org.apache.regexp, org.xml.sax*] by class(es)
on the Bundle-Classpath[Jar:WEB-INF/classes, Jar:WEB-INF/lib/struts.jar]:
[org/apache/struts/actions/DispatchAction.class,
org/apache/struts/util/StrutsValidator.class,
org/apache/struts/validator/ValidatorActionForm.class,
org/apache/struts/util/RequestUtils.class,
org/apache/struts/validator/DynaValidatorForm.class,
org/apache/struts/config/AddDataSourcePropertyRule.class,
org/apache/struts/taglib/logic/CompareTagBase.class,
org/apache/struts/action/ActionFormBeans.class,
org/apache/struts/config/SetActionMappingClassRule.class,
org/apache/struts/action/ActionForwards.class,
org/apache/struts/config/ActionMappingFactory.class,
org/apache/struts/taglib/html/JavascriptValidatorTag.class,
org/apache/struts/validator/DynaValidatorActionForm.class,
org/apache/struts/config/ConfigHelperInterface.class,
org/apache/struts/action/DynaActionFormClass.class,
org/apache/struts/util/MessageResourcesFactory.class,
org/apache/struts/taglib/html/JavascriptValidatorTag$1.class,
org/apache/struts/util/StrutsValidatorUtil.class,
org/apache/struts/action/ActionMappings.class,
org/apache/struts/validator/ValidatorForm.class,
org/apache/struts/util/GenericDataSource.class,
org/apache/struts/action/DynaActionForm.class,
org/apache/struts/action/RequestProcessor.class,
org/apache/struts/config/ConfigHelper.class,
org/apache/struts/taglib/html/SelectTag.class,
org/apache/struts/taglib/html/TextareaTag.class,
org/apache/struts/action/ActionServlet.class,
org/apache/struts/config/ConfigRuleSet.class,
org/apache/struts/taglib/html/OptionsTag.class,
org/apache/struts/upload/DiskMultipartRequestHandler.class,
org/apache/struts/validator/ValidatorPlugIn.class,
org/apache/struts/taglib/html/MultiboxTag.class,
org/apache/struts/config/FormPropertyConfig.class,
org/apache/struts/taglib/html/OptionsCollectionTag.class,
org/apache/struts/taglib/html/RadioTag.class,
org/apache/struts/util/MessageResources.class]


=======================

Note that struts.jar is not even a bundle! Should the Apache Felis Plugin
(BND) even bother with this jar? Is there a way for me to ask the Plugin to
ignore the jars in a particular folder?

Any help will be appreciate!

Thanks in advance!

Matt

Reply via email to