Foren

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

pawan kumar, geändert vor 7 Jahren.

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

New Member Beiträge: 14 Beitrittsdatum: 07.02.13 Neueste Beiträge
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, geändert vor 7 Jahren.

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

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
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, geändert vor 7 Jahren.

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

New Member Beiträge: 14 Beitrittsdatum: 07.02.13 Neueste Beiträge
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, geändert vor 7 Jahren.

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

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
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, geändert vor 7 Jahren.

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

Junior Member Beiträge: 35 Beitrittsdatum: 29.08.16 Neueste Beiträge
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, geändert vor 7 Jahren.

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

Liferay Legend Beiträge: 14916 Beitrittsdatum: 02.09.06 Neueste Beiträge
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, geändert vor 7 Jahren.

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

Junior Member Beiträge: 35 Beitrittsdatum: 29.08.16 Neueste Beiträge
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, geändert vor 6 Jahren.

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

New Member Beiträge: 20 Beitrittsdatum: 15.12.16 Neueste Beiträge
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, geändert vor 5 Jahren.

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

New Member Beitrag: 1 Beitrittsdatum: 18.12.17 Neueste Beiträge
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