<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>OSGI module cannot be deleted</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120944006" />
  <subtitle>OSGI module cannot be deleted</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120944006</id>
  <updated>2026-04-05T20:15:01Z</updated>
  <dc:date>2026-04-05T20:15:01Z</dc:date>
  <entry>
    <title>RE: OSGI module cannot be deleted</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120953409" />
    <author>
      <name>Kevin Neibarger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120953409</id>
    <updated>2021-07-15T15:21:29Z</updated>
    <published>2021-07-15T15:21:28Z</published>
    <summary type="html">&lt;p&gt;Thanks, uninstalling from the Gogo shell fixed the issue. I didn't
  know the command for uninstalling and I also cleaned the osgi state folder.&lt;/p&gt;</summary>
    <dc:creator>Kevin Neibarger</dc:creator>
    <dc:date>2021-07-15T15:21:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: OSGI module cannot be deleted</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120947125" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120947125</id>
    <updated>2021-07-15T15:20:32Z</updated>
    <published>2021-07-14T13:52:00Z</published>
    <summary type="html">&lt;p&gt;I'm not sure if this is possible, but there are multiple auto deploy
  dirs under the osgi folder. Did you make sure a JAR with the bundle
  name isn't somewhere else it can be auto-deployed?&lt;/p&gt;
&lt;p&gt;And, it's probably a dumb quesiton, but you're sure that the gogo
  shell output showing the bundle as Active is what you see after
  deleting the module JAR?&lt;/p&gt;
&lt;p&gt;Another potentially dumb question: are you sure one of those other
  modules doesn't use the bundle name &amp;quot;wellcare-roster&amp;quot;?&lt;/p&gt;
&lt;p&gt;If so, here are some hings to try:&lt;/p&gt;
&lt;p&gt;Try to run, from gogo, uninstall 2048. If it works it probably won't
  persist on restart though.&lt;/p&gt;
&lt;p&gt;You might have to clean the osgi/state folder (delete it).&lt;/p&gt;
&lt;p&gt;I'm a bit confused about the framework error you're seeing. I guess
  it makes sense, a portlet service tracker is complaining that you're
  uninstalling the bundle that provides a component that it defines as
  &amp;quot;already in use&amp;quot;. Just not sure what it's getting at precisely. &lt;/p&gt;
&lt;p&gt;Edited to Add: That first Framework Error (already in use) is thrown
  when adding the service (so, when you installed the module). I'm still
  not sure what the NPE is all about.&lt;/p&gt;
&lt;p&gt;However, look at the bundle ID for the bundle that was
  uninstalled--it's 2058, not 2048 which is the active bundle id in the
  gogo output you pasted. So yeah, you have another bundle floating
  around. If you're sure it's not one of those other JARs, I'd go
  through the gogo shell + osgi/state deletion procdeure I mentioned and
  see if that wipes out your ghost bundle.&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2021-07-14T13:52:00Z</dc:date>
  </entry>
  <entry>
    <title>OSGI module cannot be deleted</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120944005" />
    <author>
      <name>Kevin Neibarger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120944005</id>
    <updated>2021-08-17T15:53:07Z</updated>
    <published>2021-07-13T16:14:26Z</published>
    <summary type="html">&lt;p&gt;I'm on Liferay 7.3 and trying to delete a module that seems to be
  hiding somewhere..&lt;/p&gt;
&lt;p&gt;I can see it when I list bundles from the Gogo Shell&lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" src="/documents/14/0/Screen+Shot+2021-07-13+at+12.07.53+PM.png/7865ae8e-8567-3409-4182-cf4adf368440?t=1626192596357&amp;amp;imagePreview=1" /&gt;
  &lt;br /&gt; This shows that there is an active module with id 2048 called wellcare-roster. &lt;/p&gt;
&lt;p&gt;When I go to my modules directory it doesn't exist&lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" src="/documents/14/0/Screen+Shot+2021-07-13+at+12.10.46+PM.png/f7a5daa7-f353-944d-94d6-8a72792fe066?t=1626192689309&amp;amp;imagePreview=1" /&gt;
  &lt;br /&gt; Where is it?? Is there somewhere else I can delete it without
  trashing my server??? &lt;/p&gt;
&lt;p&gt;I did notice that this certain module would give me the following
  error when I tried to delete it (when it showed up in osgi/modules)&lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" src="/documents/14/0/Screen+Shot+2021-07-13+at+12.13.36+PM.png/c75e5b6a-4640-55b8-c1fe-22a1d3628e8f?t=1626192830178&amp;amp;imagePreview=1" /&gt;
  &lt;br /&gt; Any ideas? I don't think I changed my bnd.bnd file but I feel
  this is the culprit. I just want to delete this module... &lt;/p&gt;</summary>
    <dc:creator>Kevin Neibarger</dc:creator>
    <dc:date>2021-07-13T16:14:26Z</dc:date>
  </entry>
</feed>
