Forums de discussion

Liferay 7 org.osgi.framework.BundleException: Could not resolve module

pawan kumar, modifié il y a 7 années.

Liferay 7 org.osgi.framework.BundleException: Could not resolve module

New Member Publications: 14 Date d'inscription: 07/02/13 Publications récentes
I am getting below issue when i do service builder to be run to liferay 7 server.
org.osgi.framework.BundleException: Could not resolve module
Regards,
Pawan Kumar
thumbnail
David H Nebinger, modifié il y a 7 années.

RE: Liferay 7 org.osgi.framework.BundleException: Could not resolve module

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
It means what it means. You're trying to refer to something which is not available as a module. Think of it like a "class not found" exception.
pawan kumar, modifié il y a 7 années.

RE: Liferay 7 org.osgi.framework.BundleException: Could not resolve module

New Member Publications: 14 Date d'inscription: 07/02/13 Publications récentes
When i add one more entity to the service.xml then this exception get occurs.
For the first time it wroks fine but the time ,adding one more entity ,exception come.
Any Idea?
thumbnail
David H Nebinger, modifié il y a 7 années.

RE: Liferay 7 org.osgi.framework.BundleException: Could not resolve module

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
There is nothing here that exposes what the issue is, just a generic message that does not have enough context to show what's going on.

You're going to have to provide a lot more contextual details before we can help resolve this for you...
Sudhanshu Shukla, modifié il y a 7 années.

RE: Liferay 7 org.osgi.framework.BundleException: Could not resolve module

Junior Member Publications: 35 Date d'inscription: 29/08/16 Publications récentes
hi david,
I have also getting the same problem.
Below is my stacktrace

org.osgi.framework.BundleException: Could not resolve module: manufacturerportlet [501]_ Unresolved requirement: Require-Capability: osgi.extender; filter:="(&(osgi.extender=jsp.taglib)(uri=http://java.sun.com/jstl/core_rt))"_ [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.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1476)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
17:59:39,754 ERROR [localhost-startStop-1][ModuleFrameworkImpl:1298] Unable to start bundle manufacturerportlet
org.osgi.framework.BundleException: Could not resolve module: manufacturerportlet [501]_ Unresolved requirement: Require-Capability: osgi.extender; filter:="(&(osgi.extender=jsp.taglib)(uri=http://java.sun.com/jstl/core_rt))"_ [Sanitized]
at org.eclipse.osgi.container.Module.start(Module.java:429)
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:421)
at com.liferay.portal.bootstrap.ModuleFrameworkImpl._startDynamicBundles(ModuleFrameworkImpl.java:1295)
at com.liferay.portal.bootstrap.ModuleFrameworkImpl.startFramework(ModuleFrameworkImpl.java:411)
at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.startFramework(ModuleFrameworkUtilAdapter.java:99)
at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:253)
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:744)

I thought that it may not find the core_rt tld file but i cant find the liferay-plugin-packages.properties file.
So can you tell me that where i can find this file in liferay 7.


If My assumption is correct about the problem?
thumbnail
David H Nebinger, modifié il y a 7 années.

RE: Liferay 7 org.osgi.framework.BundleException: Could not resolve module

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
SB should never have a dependency on JSTL or JSP or any view framework. It is backend only. Whatever you're trying to do, it stems from trying to misuse SB.
Sudhanshu Shukla, modifié il y a 7 années.

RE: Liferay 7 org.osgi.framework.BundleException: Could not resolve module

Junior Member Publications: 35 Date d'inscription: 29/08/16 Publications récentes
Hi David,
Thanks For replying
I am asking Like in liferay 6.2 version we have liferay-plugin-packages.properties for adding and tld file into our project,So how we can add tld in liferay 7?
Ashwini Sidhanti, modifié il y a 6 années.

RE: Liferay 7 org.osgi.framework.BundleException: Could not resolve module

New Member Publications: 20 Date d'inscription: 15/12/16 Publications récentes
Hello Everyone,

Any updates on this issue. Iam facing the same issue . stuck with it for really long time. Any pointers is appreciated
thumbnail
ahmed reza, modifié il y a 6 années.

RE: Liferay 7 org.osgi.framework.BundleException: Could not resolve module

New Member Envoyer: 1 Date d'inscription: 18/12/17 Publications récentes
I already deleted my SB project from server.
I removed dependency of my SB from on of Module project, I refresh gradle project, I did clean.
I did clean service builder and deleted all files java, .sql, hibernate and spring from '-service' project.
Removed dependency also from build.gradle.
Then build service again and all classes generated from service build.
After all these I m trying to restarting my server even without adding any project but giving same error
'org.osgi.framework.BundleException: Could not resolve module' but I already removed all dependency.
and I removed my project from server then why server showing same error at the time of starting server.
Is any other place I have to remove too.
Please help me on this I am desperately looking solution for this because in liferay 6.2 no such issue.
Thanks