Forums de discussion

Unresolved requirement: Require-Capability: osgi.extender Liferay 7

juan meza, modifié il y a 6 années.

Unresolved requirement: Require-Capability: osgi.extender Liferay 7

Regular Member Publications: 228 Date d'inscription: 06/01/14 Publications récentes
Hi, I have Liferay 7 GA4
I have this portlets in my project, they were working just fine, then i tried to install a service builder module in my server, when i deployed it i started getting this errors (the calendarmin module was working before this)
i already undeployed the service builder modules... but how can i get rid of this errors?


06:28:08,360 ERROR [Framework Event Dispatcher: Equinox Container: a036676c-4b6c-0017-1af0-eb56534dd25b][calendarmin:97] FrameworkEvent ERROR 
org.osgi.framework.BundleException: Could not resolve module: calendarmin [508]_  Unresolved requirement: Require-Capability: osgi.extender; filter:="(&(osgi.extender=jsp.taglib)(uri=http://java.sun.com/portlet_2_0))"_ [Sanitized]
	at org.eclipse.osgi.container.Module.start(Module.java:429)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1582)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1562)
	at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1533)
	at org.eclipse.osgi.container.SystemModule.startWorker(SystemModule.java:242)
	at org.eclipse.osgi.container.Module.doStart(Module.java:566)
	at org.eclipse.osgi.container.Module.start(Module.java:434)
	at org.eclipse.osgi.container.SystemModule.start(SystemModule.java:172)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:421)
	at org.eclipse.osgi.launch.Equinox.start(Equinox.java:115)
	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:409)
	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:99)
	at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:255)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:585)
	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1794)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)



thank you
juan meza, modifié il y a 6 années.

RE: Unresolved requirement: Require-Capability: osgi.extender Liferay 7

Regular Member Publications: 228 Date d'inscription: 06/01/14 Publications récentes
Hi, a little update
i think is because the service builder project also has a osgi import, that has the same id:
compileOnly group: "org.osgi", name: "org.osgi.core", version: "6.0.0"
compileOnly group: "org.osgi", name: "osgi.cmpn", version: "6.0.0"

so i dont know if they are really different or not... or do i have to remove the second one from my portlet's gradle file? and just let import the one from the service builder?

are they the same or different?
juan meza, modifié il y a 6 années.

RE: Unresolved requirement: Require-Capability: osgi.extender Liferay 7

Regular Member Publications: 228 Date d'inscription: 06/01/14 Publications récentes
Hi, i read in another post, that this was a java 8 error... that you needed to compile with java 8 JDK... but i am doing it
ill post some pictures


https://www.dropbox.com/s/zp42f6fyw49efux/Capture.PNG?dl=0

and when i start tomcat, it starts with java 8 JDK

25-Jul-2017 16:34:53.013 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             C:\Program Files\Java\jdk1.8.0_102\jre
25-Jul-2017 16:34:53.013 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_102-b14
25-Jul-2017 16:34:53.013 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation
25-Jul-2017 16:34:53.013 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         C:\liferay-ce-portal-7.0-ga4\tomcat-8.0.32


any help would be apretiated

thank you