私は Karaf 2.2.8 を使用しています。私のコード内では、apache poi を使用してファイルを読んでいます。
try{
Workbook wb=WorkbookFactory.create(inp);
}
アプリケーションは、poi-ooxml-3.8.jar を使用して tomcat 6 および tomcat 7 で正常に動作していました
カラフ2.2.8で:-
***servicemix バンドルを使用すると、
ClassNotFoundException: org.apache.poi.ss.usermodel.WorkbookFactory not found by org.apache.servicemix.bundles.poi
***apache poi使用時
Unable to resolve 266.0: missing requirement [266.0] package; (package=org.apache.poi))
servicemix poi のインストールに使用するコマンド:-
install -s mvn:avalon-framework/avalon-framework/4.1.3;
install -s mvn:junit/junit/3.8.2;
install -s mvn:commons-codec/commons-codec/1.5;
install -s mvn:commons-logging/commons-logging/1.1;
install -s mvn:javax.servlet/servlet-api/2.3;
install -s mvn:log4j/log4j/1.2.13;
install -s mvn:logkit/LogKit/1.2;
install -s mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi/3.8_1;
Apache poi のインストールに使用するコマンド:-
install -s mvn:org.apache.poi/poi-ooxml/3.8;
install -s mvn:org.apache.poi/poi-ooxml-schemas/3.8;
install -s mvn:org.apache.poi/poi/3.8;
install -s mvn:commons-codec/commons-codec/1.5;
install -s mvn:dom4j/dom4j/1.6.1;
install -s mvn:stax/stax-api/1.0.1;
install -s mvn:org.apache.xmlbeans/xmlbeans/2.3.0;
助けてください