Foros de discusión

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

pawan kumar, modificado hace 7 años.

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

New Member Mensajes: 14 Fecha de incorporación: 7/02/13 Mensajes recientes
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, modificado hace 7 años.

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

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
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, modificado hace 7 años.

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

New Member Mensajes: 14 Fecha de incorporación: 7/02/13 Mensajes recientes
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, modificado hace 7 años.

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

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
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, modificado hace 7 años.

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

Junior Member Mensajes: 35 Fecha de incorporación: 29/08/16 Mensajes recientes
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, modificado hace 7 años.

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

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
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, modificado hace 7 años.

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

Junior Member Mensajes: 35 Fecha de incorporación: 29/08/16 Mensajes recientes
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, modificado hace 6 años.

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

New Member Mensajes: 20 Fecha de incorporación: 15/12/16 Mensajes recientes
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, modificado hace 5 años.

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

New Member Mensaje: 1 Fecha de incorporación: 18/12/17 Mensajes recientes
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