<?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>Fast Deploy with Ant for Development</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=8087787" />
  <subtitle>Fast Deploy with Ant for Development</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=8087787</id>
  <updated>2026-04-04T21:44:04Z</updated>
  <dc:date>2026-04-04T21:44:04Z</dc:date>
  <entry>
    <title>RE: Fast Deploy with Ant for Development</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8105383" />
    <author>
      <name>Mike Harris</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8105383</id>
    <updated>2011-04-01T18:51:44Z</updated>
    <published>2011-04-01T18:51:44Z</published>
    <summary type="html">Finally made it work...&lt;br /&gt;&lt;br /&gt;First, add this line to your portal-ext.properties :&lt;br /&gt;auto.deploy.tomcat.conf.dir=${catalina.base}/conf/Catalina/localhost&lt;br /&gt;(thanks to mariusz in the comments of &lt;a href="http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Fast+Development+of+Liferay+Plugins+with+Tomcat"&gt;that page&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Create an xml file with this content :&lt;br /&gt;&amp;lt;Context&lt;br /&gt;   path=&amp;#34;&amp;lt;name-of-project&amp;gt;&amp;#34;&lt;br /&gt;   docBase=&amp;#34;C:/&amp;lt;tomcat install dir&amp;gt;/webapps/&amp;lt;name-of-project&amp;gt;&amp;#34;&lt;br /&gt;   reloadable=&amp;#34;true&amp;#34;&lt;br /&gt;   /&amp;gt;&lt;br /&gt;&lt;br /&gt;The name of the file should be &amp;lt;name-of-project&amp;gt;.xml&lt;br /&gt;&lt;br /&gt;Where name-of-project = the name of the folder in webapps dir where you webapp is deployed&lt;br /&gt;&lt;br /&gt;Now, copy this file into liferay&amp;#39;s autodeploy folder. If tomcat is started, liferay should copy this file to ${catalina.base}/conf/Catalina/localhost and reload its context.&lt;br /&gt;&lt;br /&gt;After that, since reloadable is specified, you will just have to copy the .class file and Liferay will reload itself.&lt;br /&gt;&lt;br /&gt;Of course, you can use ANT to make it easier!&lt;br /&gt;&lt;br /&gt;Enjoy! &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;</summary>
    <dc:creator>Mike Harris</dc:creator>
    <dc:date>2011-04-01T18:51:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Fast Deploy with Ant for Development</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8103351" />
    <author>
      <name>Mike Harris</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8103351</id>
    <updated>2011-04-01T16:00:34Z</updated>
    <published>2011-04-01T16:00:34Z</published>
    <summary type="html">I was unable to make it work.&lt;br /&gt;If I add a &amp;#34;reloadable=true&amp;#34; in the context.xml file, spring has problems with loading some  classes :&lt;br /&gt;&lt;br /&gt;Loading file:/C:/projects/tomcat-6-liferay-6.0.5/tomcat-6.0.26/webapps/webapp-portlets/WEB-INF/classes/service.properties&lt;br /&gt;11:56:35,903 ERROR [PortletApplicationContext:80] org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Class that bean class [com.company.auction.service.impl.ContractLocalServiceImpl] depends on not found&lt;br /&gt;Offending resource: ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]&lt;br /&gt;&lt;br /&gt;But when I remove the &amp;#34;reloadable=true&amp;#34; everything works fine.&lt;br /&gt;&lt;br /&gt;If I use the &amp;#34;webapp-name.xml&amp;#34; (context file) and put it in the auto deploy of liferay, I get the same problem.&lt;br /&gt;&lt;br /&gt;If anybody was able to make it work with Liferay 6, spring MVC and tomcat, please let me know.</summary>
    <dc:creator>Mike Harris</dc:creator>
    <dc:date>2011-04-01T16:00:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Fast Deploy with Ant for Development</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8101678" />
    <author>
      <name>Mike Harris</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8101678</id>
    <updated>2011-04-01T14:35:31Z</updated>
    <published>2011-04-01T14:35:31Z</published>
    <summary type="html">I just found that page&lt;br /&gt;http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Fast+Development+of+Liferay+Plugins+with+Tomcat&lt;br /&gt;&lt;br /&gt;I&amp;#39;m going to try that out...</summary>
    <dc:creator>Mike Harris</dc:creator>
    <dc:date>2011-04-01T14:35:31Z</dc:date>
  </entry>
  <entry>
    <title>RE: Fast Deploy with Ant for Development</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8101617" />
    <author>
      <name>Mike Harris</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8101617</id>
    <updated>2011-04-01T14:27:35Z</updated>
    <published>2011-04-01T14:27:35Z</published>
    <summary type="html">I tried adding &amp;#34;reloadable=true&amp;#34; to the context.xml file (inside webapps\application_dir\meta-inf\context.xml&lt;br /&gt;&lt;br /&gt;And when I start in debug mode, I get the  &lt;br /&gt;&amp;#34;Root context attribute is not of type WebApplicationContext&amp;#34; error. Maybe it has something to do with Spring MVC too, I don&amp;#39;t know. &lt;br /&gt;&lt;br /&gt;When I start in normal mode, the webapp starts but the changes aren&amp;#39;t applied anyway. &lt;img alt="emoticon" src="@theme_images_path@/emoticons/sad.gif" &gt;</summary>
    <dc:creator>Mike Harris</dc:creator>
    <dc:date>2011-04-01T14:27:35Z</dc:date>
  </entry>
  <entry>
    <title>RE: Fast Deploy with Ant for Development</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8092569" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8092569</id>
    <updated>2011-04-01T00:20:44Z</updated>
    <published>2011-04-01T00:20:44Z</published>
    <summary type="html">&lt;blockquote&gt;I&amp;#39;m able to compile and copy the files &amp;#34;.class&amp;#34; in the /web-inf/classes directory, but the portal doesn&amp;#39;t seem to be aware that the .class changed... Is Liferay or Tomcat loading the .class in memory and not looking on the file system to see if they changed? Is there something I can do about it?&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I think most class files and configuration files are loaded when the portlet is loaded.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-04-01T00:20:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Fast Deploy with Ant for Development</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8092554" />
    <author>
      <name>Hitoshi Ozawa</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8092554</id>
    <updated>2011-04-01T00:16:43Z</updated>
    <published>2011-04-01T00:16:43Z</published>
    <summary type="html">&lt;blockquote&gt;Try copying files in \liferay-portal-tomcat-6.0.5\deploy directory. I am very sure liferay will pickup files first time. Not sure whether it will use hot deploy to use updated class files. &lt;/blockquote&gt; &lt;br /&gt;&lt;br /&gt;Just wondering if Liferay would know which war directory to deploy the class file to.</summary>
    <dc:creator>Hitoshi Ozawa</dc:creator>
    <dc:date>2011-04-01T00:16:43Z</dc:date>
  </entry>
  <entry>
    <title>RE: Fast Deploy with Ant for Development</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8090278" />
    <author>
      <name>Pushpinder Singh</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8090278</id>
    <updated>2011-03-31T20:21:25Z</updated>
    <published>2011-03-31T20:21:25Z</published>
    <summary type="html">Try copying files in \liferay-portal-tomcat-6.0.5\deploy directory. I am very sure liferay will pickup files first time. Not sure whether it will use hot deploy to use updated class files.</summary>
    <dc:creator>Pushpinder Singh</dc:creator>
    <dc:date>2011-03-31T20:21:25Z</dc:date>
  </entry>
  <entry>
    <title>Fast Deploy with Ant for Development</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8087786" />
    <author>
      <name>Mike Harris</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=8087786</id>
    <updated>2011-03-31T18:37:48Z</updated>
    <published>2011-03-31T18:37:48Z</published>
    <summary type="html">I&amp;#39;m trying to make a &amp;#34;fast deploy&amp;#34; for development with ANT. I want to compile the controllers and the ServiceImpl classes (the classes that we change often) and update those in the webapp/web-inf/classes directory.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m able to compile and copy the files &amp;#34;.class&amp;#34; in the /web-inf/classes directory, but the portal doesn&amp;#39;t seem to be aware that the .class changed... Is Liferay or Tomcat loading the .class in memory and not looking on the file system to see if they changed? Is there something I can do about it?&lt;br /&gt;&lt;br /&gt;Thank you!</summary>
    <dc:creator>Mike Harris</dc:creator>
    <dc:date>2011-03-31T18:37:48Z</dc:date>
  </entry>
</feed>
