<?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>Undeploying portlets</title>
  <link rel="self" href="https://liferay.dev/ca/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=42292" />
  <subtitle>Undeploying portlets</subtitle>
  <id>https://liferay.dev/ca/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=42292</id>
  <updated>2026-05-19T18:15:34Z</updated>
  <dc:date>2026-05-19T18:15:34Z</dc:date>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42320" />
    <author>
      <name>JMtm JMtm</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42320</id>
    <updated>2005-02-17T09:58:24Z</updated>
    <published>2005-02-17T09:58:24Z</published>
    <summary type="html">In Eclipse it does not work this way. The portlet is deployed into itself (everything is kept in the project MyPortlet), it does not create any .war folders in the server.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I tried to delete any mention of MyPortlet in the JBoss (default/work/MyPortlet/ and default/conf/MyPortlet.xml) but now the server does not start at all.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Could anyone help?&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Thanks a lot.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;JM&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;</summary>
    <dc:creator>JMtm JMtm</dc:creator>
    <dc:date>2005-02-17T09:58:24Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42318" />
    <author>
      <name>Brett Randall</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42318</id>
    <updated>2005-02-16T19:15:49Z</updated>
    <published>2005-02-16T19:15:49Z</published>
    <summary type="html">Your portlet WAR may still be deployed under /server/default/deploy.  Check there and remove it if present.</summary>
    <dc:creator>Brett Randall</dc:creator>
    <dc:date>2005-02-16T19:15:49Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42316" />
    <author>
      <name>JMtm JMtm</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42316</id>
    <updated>2005-02-16T14:37:09Z</updated>
    <published>2005-02-16T14:37:09Z</published>
    <summary type="html">Hi everyone,&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I am using liferay portal via Eclipse and JBoss. Could somebody help me to undeploy a portlet (= project) from it?&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I removed my project from the Eclipse and deleted the folder in /eclipse/workspace but server is still looking for the source.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Thank you&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;JM&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;</summary>
    <dc:creator>JMtm JMtm</dc:creator>
    <dc:date>2005-02-16T14:37:09Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42314" />
    <author>
      <name>Brett Randall</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42314</id>
    <updated>2005-02-06T11:23:27Z</updated>
    <published>2005-02-06T11:23:27Z</published>
    <summary type="html">Yes, this is to do with the fact that the work done by PortletContextListener.contextDestroyed() is not complete.  I haven&amp;amp;#39;t had a chance to submit an enhancement request and patch as yet.  The portlet pooling mechanism is quite complex.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;The only way to fully undeploy a hot-deployed portlet at the moment AFAIK is to restart the container, as the portlet pool is maintaining a reference to the portlet.  The correct place to fix this is PortletContextListener.contextDestroyed().&amp;lt;br /&amp;gt;</summary>
    <dc:creator>Brett Randall</dc:creator>
    <dc:date>2005-02-06T11:23:27Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42312" />
    <author>
      <name>Joshua Shaffner</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42312</id>
    <updated>2005-02-04T16:34:35Z</updated>
    <published>2005-02-04T16:34:35Z</published>
    <summary type="html">&lt;blockquote&gt;Using your container&amp;amp;#39;s normal webapp undeploy method should properly undeploy a hot-deployed portlet.&amp;amp;nbsp; This can sometimes be deleting the WAR file from your containers deploy directory.&amp;lt;br /&amp;gt;&lt;p style="text-align: right"&gt;&lt;/p&gt;&amp;lt;br /&amp;gt;&lt;/blockquote&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;With jboss-tomcat, I could simply remove war file and have it undeployed that way. Is there any file (perhaps config files) outside portlet war that we need to update to completely undeploy a portlet?&amp;lt;br /&amp;gt;</summary>
    <dc:creator>Joshua Shaffner</dc:creator>
    <dc:date>2005-02-04T16:34:35Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42310" />
    <author>
      <name>Brett Randall</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42310</id>
    <updated>2005-01-31T01:45:05Z</updated>
    <published>2005-01-31T01:45:05Z</published>
    <summary type="html">There does seem to be something missing from the actions that take place during contextDestroyed.  The hot-deployed portlet instance is not completely removed from the portal.</summary>
    <dc:creator>Brett Randall</dc:creator>
    <dc:date>2005-01-31T01:45:05Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42308" />
    <author>
      <name>magicboo magicboo</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42308</id>
    <updated>2005-01-24T02:38:31Z</updated>
    <published>2005-01-24T02:38:31Z</published>
    <summary type="html">&lt;blockquote&gt;The portal detects the contextDestroyed event, through a listener it installs into the portlet webapp during a hot-deploy.&amp;amp;nbsp; This event is supposed to &amp;amp;quot;hot undeploy&amp;amp;quot; the portlet when its context is destroyed.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I see your point - the undeploy seems to be leaving parts of the portlet still visible to the portal, e.g. it remains in list of portlets.&amp;amp;nbsp; I&amp;amp;#39;m not sure if this has always been the case or is a new bug.&amp;lt;br /&amp;gt;&lt;p style="text-align: right"&gt;&lt;/p&gt;&amp;lt;br /&amp;gt;&lt;/blockquote&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Hi, &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;In my situation, when I delete the portlet directory in webapps (in Tomcat) and restart the server, portlet is gone (in portlet list).&amp;lt;br /&amp;gt;But:&amp;lt;br /&amp;gt;1. Some data (like perference) are still left in DB.&amp;lt;br /&amp;gt;2. When I re-deploy same portlet (ID) with different display-name, old name is shown.</summary>
    <dc:creator>magicboo magicboo</dc:creator>
    <dc:date>2005-01-24T02:38:31Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42306" />
    <author>
      <name>Brett Randall</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42306</id>
    <updated>2005-01-23T03:09:26Z</updated>
    <published>2005-01-23T03:09:26Z</published>
    <summary type="html">The portal detects the contextDestroyed event, through a listener it installs into the portlet webapp during a hot-deploy.  This event is supposed to &amp;amp;quot;hot undeploy&amp;amp;quot; the portlet when its context is destroyed.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I see your point - the undeploy seems to be leaving parts of the portlet still visible to the portal, e.g. it remains in list of portlets.  I&amp;amp;#39;m not sure if this has always been the case or is a new bug.</summary>
    <dc:creator>Brett Randall</dc:creator>
    <dc:date>2005-01-23T03:09:26Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42302" />
    <author>
      <name>newbie05 newbie05</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42302</id>
    <updated>2005-01-21T13:17:19Z</updated>
    <published>2005-01-21T13:17:19Z</published>
    <summary type="html">&lt;blockquote&gt;I would like to ask, if there is any way to undeploy a portlet.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I have deployed a portlet, that is somehow invalid and everytime I start liferay portal, it does not run properly...&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Should I remove some directory or is there a command for &amp;amp;quot;ant&amp;amp;quot; that allows to undeploy?&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Thanks a lot&amp;amp;#33;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;(PS: I use both Tomcat and JBoss-Tomcat servers)&amp;lt;br /&amp;gt;&lt;p style="text-align: right"&gt;&lt;/p&gt;&amp;lt;br /&amp;gt;&lt;/blockquote&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I have had this problem many times.  If your &amp;amp;quot;bad portlet&amp;amp;quot; is in mystuff.war in ../servers/jboss-tomcat/server/default/deploy, removing the mystuff.war directory will help.  I&amp;amp;#39;m not sure you&amp;amp;#39;re completely home free though.  The portal itself may complain because it thinks it should show the missing portlet on a page.  I guess it depends on whether you&amp;amp;#39;ve added the portlet to a page or just broken it by adding the war file.</summary>
    <dc:creator>newbie05 newbie05</dc:creator>
    <dc:date>2005-01-21T13:17:19Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42300" />
    <author>
      <name>magicboo magicboo</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42300</id>
    <updated>2005-01-21T09:35:33Z</updated>
    <published>2005-01-21T09:35:33Z</published>
    <summary type="html">&lt;blockquote&gt;Using your container&amp;amp;#39;s normal webapp undeploy method should properly undeploy a hot-deployed portlet.&amp;amp;nbsp; This can sometimes be deleting the WAR file from your containers deploy directory.&amp;lt;br /&amp;gt;&lt;p style="text-align: right"&gt;&lt;/p&gt;&amp;lt;br /&amp;gt;&lt;/blockquote&gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Hi, &amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I use Tomcat 5.0.28 and deploy a simple portlet into it without any error&amp;amp;#33;&amp;lt;br /&amp;gt;When I want to delete this portlet (delete the directory from tomcat/webapps), I need to restart the tomcat to see the change (portlet disappear from portlet list).&amp;lt;br /&amp;gt;Is it the normal case?&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;But when I change the portlet display name in portlet.xml and re-deploy it. &amp;lt;br /&amp;gt;The portlet appear again but with old name&amp;amp;#33; &amp;lt;br /&amp;gt;Even I drop and re-create the whole database &amp;amp;quot;lportal&amp;amp;quot;&amp;amp;#33;&amp;amp;#33;&amp;amp;#33;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;How can I do?</summary>
    <dc:creator>magicboo magicboo</dc:creator>
    <dc:date>2005-01-21T09:35:33Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42298" />
    <author>
      <name>JMtm JMtm</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42298</id>
    <updated>2005-01-12T13:26:31Z</updated>
    <published>2005-01-12T13:26:31Z</published>
    <summary type="html">thanks&amp;amp;#33;</summary>
    <dc:creator>JMtm JMtm</dc:creator>
    <dc:date>2005-01-12T13:26:31Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42296" />
    <author>
      <name>Peter Voringer</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42296</id>
    <updated>2005-01-10T22:16:14Z</updated>
    <published>2005-01-10T22:16:14Z</published>
    <summary type="html">Hi&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;For Tomcat-JBoss:&amp;lt;br /&amp;gt;if you don´t use the ext-evironment for developing but&amp;lt;br /&amp;gt;use ant deploy from /ext/portlet it´s very easy.&amp;lt;br /&amp;gt;Go to www/ext/servers/jboss-tomcat/server/default/deploy&amp;lt;br /&amp;gt;and delete the directory with the name of your portlet (Directory-Name like&amp;lt;br /&amp;gt;&amp;amp;quot;1yourportlet.war&amp;amp;quot;)&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Peter</summary>
    <dc:creator>Peter Voringer</dc:creator>
    <dc:date>2005-01-10T22:16:14Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42294" />
    <author>
      <name>Brett Randall</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42294</id>
    <updated>2005-01-10T20:23:56Z</updated>
    <published>2005-01-10T20:23:56Z</published>
    <summary type="html">Using your container&amp;amp;#39;s normal webapp undeploy method should properly undeploy a hot-deployed portlet.  This can sometimes be deleting the WAR file from your containers deploy directory.</summary>
    <dc:creator>Brett Randall</dc:creator>
    <dc:date>2005-01-10T20:23:56Z</dc:date>
  </entry>
  <entry>
    <title>Undeploying portlets</title>
    <link rel="alternate" href="https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42291" />
    <author>
      <name>JMtm JMtm</name>
    </author>
    <id>https://liferay.dev/ca/c/message_boards/find_message?p_l_id=119785294&amp;messageId=42291</id>
    <updated>2005-01-10T14:28:33Z</updated>
    <published>2005-01-10T14:28:33Z</published>
    <summary type="html">I would like to ask, if there is any way to undeploy a portlet.&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;I have deployed a portlet, that is somehow invalid and everytime I start liferay portal, it does not run properly...&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Should I remove some directory or is there a command for &amp;amp;quot;ant&amp;amp;quot; that allows to undeploy?&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Thanks a lot&amp;amp;#33;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;(PS: I use both Tomcat and JBoss-Tomcat servers)</summary>
    <dc:creator>JMtm JMtm</dc:creator>
    <dc:date>2005-01-10T14:28:33Z</dc:date>
  </entry>
</feed>
