In Liferay 7 (DXP sp4) I need to install these OSGi modules:
https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient-osgi/4.5.3
https://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore-osgi/4.4.6
So, I download them, put httpcore-osgi-4.4.6.jar
in deploy/
, it starts successfully as seen in Gogo Shell. Then I put httpclient-osgi-4.5.3.jar
in deploy/
, and…
ERROR [fileinstall-/home/nico/liferay/osgi/modules][org_eclipse_equinox_metatype:97] Unable to parse metadata XML at "bundleentry://540.fwk517213600/OSGI-INF/metatype/metatype.properties" for bundle ID "540" with symbolic name "org.apache.httpcomponents.httpclient".
org.xml.sax.SAXException: Fatal Error: URI=null Line=1: Content is not allowed in prolog.
at org.eclipse.equinox.metatype.impl.DataParser$MyErrorHandler.fatalError(DataParser.java:856)
I don't know what this metatype.properties
file is nor why Equinox tries to parse it as XML.
Is this JAR not a standard OSGi module?
Or does Liferay require a somehow different OSGi module?
Is it a problem with my configuration? (freshly installed)
Should I just ignore this ERROR?
The most incredible is that nonetheless the module gets started:
INFO [fileinstall-/home/nico/liferay/osgi/modules][BundleStartStopLogger:35] STARTED org.apache.httpcomponents.httpclient_4.5.3 [540]