Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-4918

Getting "org.osgi.framework.BundleException" exception when the portlet is deployed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 3.8.1
    • Fix Version/s: None
    • Component/s: Deploy
    • Environment:
      Development environment

      Description

      I am trying to follow the training project 'Developing web applications'. While building the front end, when I add the following code to the GuestbookPortlet, I get the error when I save.

       

      {{@Reference
      private GuestbookEntryLocalService _guestbookEntryLocalService; }}

      I see that the guestbook-web portlet which is deployed on the server is showing an error. When I try to build the 'guestbook-web', I get the following error. 

      2021-01-05 21:20:26.167 ERROR [fileinstall-C:/Liferay72DXP/DXPWorkspace/com-liferay-docs-guestbook/bundles/osgi/modules][LogService:93] Error while starting bundle: file:/C:/Liferay72DXP/DXPWorkspace/com-liferay-docs-guestbook/modules/guestbook/guestbook-web/build/libs/com.liferay.docs.guestbook.portlet-1.0.0.jar 2021-01-05 21:20:26.167 ERROR [fileinstall-C:/Liferay72DXP/DXPWorkspace/com-liferay-docs-guestbook/bundles/osgi/modules][LogService:93] Error while starting bundle: file:/C:/Liferay72DXP/DXPWorkspace/com-liferay-docs-guestbook/modules/guestbook/guestbook-web/build/libs/com.liferay.docs.guestbook.portlet-1.0.0.jar org.osgi.framework.BundleException: Could not resolve module: com.liferay.docs.guestbook.portlet [2129]  Unresolved requirement: Import-Package: com.liferay.docs.guestbook.service; version="[1.0.0,2.0.0)" [Sanitized] at org.eclipse.osgi.container.Module.start(Module.java:444) at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428) at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1275) at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1248) at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1237) at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)

        Attachments

          Activity

            People

            Assignee:
            lr_ide LR IDE
            Reporter:
            anandhi.narayanan Anandhi (Anu) Narayanan (Inactive)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 19 weeks ago

                Packages

                Version Package