掲示板

Unresolved requirement: Import-Package: org.apache.poi.hssf.usermodel_

thumbnail
7年前 に devaraj s によって更新されました。

Unresolved requirement: Import-Package: org.apache.poi.hssf.usermodel_

Regular Member 投稿: 228 参加年月日: 12/05/21 最新の投稿
Hello,
We are running Liferay 7 DXP, I am trying to include POI jar with OSGI module, But I am getting the below error, even though I have included both compile and run time jar.

Unresolved requirement: Import-Package: org.apache.poi.hssf.usermodel_ [Sanitized]
	at org.eclipse.osgi.container.Module.start(Module.java:429)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1252)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1224)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512)


I am posting my build.gradle , and bnd.bnd file details as well here. Could anyone please let me know what is the root cause for the above issue.

Build.gradle
compile group: 'org.apache.poi', name: 'poi', version: '3.16-beta2'
compile group: 'org.apache.poi', name: 'poi-ooxml', version: '3.16-beta2'
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.0'
compile group: 'com.sun.xml.parsers', name: 'jaxp-ri', version: '1.4.5'

bnd.bnd
Bundle-SymbolicName: com.xx.portlet
Bundle-Version: 4.0.0
-includeresource:\
lib/poi.jar=poi-3.16-beta2.jar,\
lib/poi-ooxml.jar=poi-ooxml-3.16-beta2.jar,\
lib/commons-collections4.jar=commons-collections4-4.0.jar,\
lib/jaxp-ri.jar=jaxp-ri-1.4.5.jar

I have copied all dependent jar into lib folder of module as well.

Thanks in advance.
7年前 に Revathi Vadlamudi によって更新されました。

RE: Unresolved requirement: Import-Package: org.apache.poi.hssf.usermodel_

Junior Member 投稿: 82 参加年月日: 14/11/14 最新の投稿
Did you find the solution for this as I am facing the same issue?
6年前 に Kushagra Khanna によって更新されました。

RE: Unresolved requirement: Import-Package: org.apache.poi.hssf.usermodel_

Junior Member 投稿: 45 参加年月日: 14/12/28 最新の投稿
Hi devaraj s,

I am facing the same issue.
Have you resolved the issue ?
Please share the steps that you have followed for resolving the same.

Thanks,
Kushagra
,
thumbnail
5年前 に saleem khan によって更新されました。

RE: Unresolved requirement: Import-Package: org.apache.poi.hssf.usermodel_

Junior Member 投稿: 71 参加年月日: 13/11/16 最新の投稿

Hi,

 

Please refer the link below. I have posted a solution which worked

https://community.liferay.com/forums/-/message_boards/message/111758458

 

Thanks & Regards

Saleem Khan