Liferay Issues

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Test Sessions Access more options
    • Getting Started
PUBLIC - Liferay Portal Community Edition
  • PUBLIC - Liferay Portal Community Edition
  • LPS-14221

Ext Plugin Redeploy

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Story Story
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 6.0.5 GA, 6.0.6 GA
  • Fix Version/s: 6.2.0 CE M2
  • Component/s: Legacy, Legacy > Extension Environment, Tools > Plugins SDK > Web
  • Labels:
    None
  • Epic/Theme:
    • Quick_Win
  • Liferay Contributor's Agreement:
    Accept
  • Similar Issues:
    Show 5 results 

    LPS-23524EXT Plugin can't be redeployed
    LPS-34054Redeploying a plugin will throw an exception
    LPS-28858Plugins can't be redeployed
    LPS-16455Add Ext plugin archetype for Maven
    LPS-9260The classpath order in Plugins SDK is wrong for the ext-plugin

Description

Enables Ext Plugin to hot redeploy the way as other plugins do.

See: http://www.liferay.com/community/forums/-/message_boards/message/6700511

Implemented solution:

Automatic solution 1:

  • ignore standard undeploy event, just flag that there was such attempt
  • in deploy phase check for undeploy flag (which cannot persist container reboot) and if so then do redeploy

Differences from how it works now:
1, when you deploy your Ext Plugin, ExtHotDeployListener backup replaced JSPs, web.xml and other replaced files
2, when you copy your Ext Plugin war file into deploy directory then
2a, container stops application -> ExtHotDeployListener place the application's name into list of possible-to-redeploy applications (this is the "flag")
2b, container installs new application and invoke application start -> ExtHotDeployListener check if the application is among the possible-to-redeploy applications and if so then:
2b I, remove Ext Plugin's registered jars
2b II, restore web.xml backup
2b III, restore backups of other replaced files (JSPs, struts-config-ext.xml, etc.)
2b IV, delete WEB-INF/ext-"servletContextName".xml
2b IV, unregister Ext Plugin from ExtRegistry (for conflict checking)
2c, continue as normal -> install new version of Ext Plugin

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Java Archive File
    ext-redeploy.jar
    08/Dec/10 6:00 AM
    8 kB
    Tomáš Polešovský
    1. File
      META-INF/MANIFEST.MF 0.1 kB
    2. File
      com/liferay/.../ExtHotDeployListener.class 11 kB
    3. File
      com/liferay/.../util/ExtRegistry.class 5 kB
    Download Zip
    Show
    Java Archive File
    ext-redeploy.jar
    08/Dec/10 6:00 AM
    8 kB
    Tomáš Polešovský
  2. Hide
    Zip Archive
    ext-redeploy.zip
    08/Dec/10 5:58 AM
    12 kB
    Tomáš Polešovský
    1. File
      ext-redeploy/build.properties 0.2 kB
    2. XML File
      ext-redeploy/build.xml 2 kB
    3. Java Source File
      ext-redeploy/.../ExtHotDeployListener.java 11 kB
    4. Java Source File
      ext-redeploy/.../ExtRegistry.java 4 kB
    5. XML File
      ext-redeploy/portal-impl/src/web.xml 53 kB
    Download Zip
    Show
    Zip Archive
    ext-redeploy.zip
    08/Dec/10 5:58 AM
    12 kB
    Tomáš Polešovský
  3. Hide
    Java Archive File
    ext-redeploy-6.0.5.jar
    16/Dec/10 9:13 AM
    8 kB
    Tomáš Polešovský
    1. File
      META-INF/MANIFEST.MF 0.1 kB
    2. File
      com/liferay/.../ExtHotDeployListener.class 11 kB
    3. File
      com/liferay/.../util/ExtRegistry.class 5 kB
    Download Zip
    Show
    Java Archive File
    ext-redeploy-6.0.5.jar
    16/Dec/10 9:13 AM
    8 kB
    Tomáš Polešovský
  4. Hide
    Zip Archive
    ext-redeploy-improved.zip
    16/Dec/10 9:13 AM
    20 kB
    Tomáš Polešovský
    1. File
      ext-redeploy/build.properties 0.2 kB
    2. XML File
      ext-redeploy/build.xml 2 kB
    3. Java Archive File
      ext-redeploy/ext-redeploy-6.0.5.jar 8 kB
    4. Java Source File
      ext-redeploy/.../ExtHotDeployListener.java 11 kB
    5. Java Source File
      ext-redeploy/.../ExtRegistry.java 4 kB
    6. XML File
      ext-redeploy/portal-impl/src/web.xml 53 kB
    Download Zip
    Show
    Zip Archive
    ext-redeploy-improved.zip
    16/Dec/10 9:13 AM
    20 kB
    Tomáš Polešovský
  5. File
    LPS-14221_build_72228.diff
    05/Feb/11 7:33 AM
    7 kB
    Tomáš Polešovský

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions Summary
  • Commits

People

  • Assignee:
    Tomas Polesovsky
    Reporter:
    Tomáš Polešovský
    Participants of an Issue:
    Jonas Yuan, Milan Jaroš, Randy Zhu, Tomas Polesovsky, Tomáš Polešovský
Vote (15)
Watch (10)

Dates

  • Created:
    08/Dec/10 5:56 AM
    Updated:
    04/Mar/13 9:44 AM
    Resolved:
    01/Mar/13 4:30 AM
    Days since last comment:
    12 weeks, 1 day ago

Agile

  • View on Board
  • Atlassian JIRA (v5.2.11#854-sha1:ef00d61)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Liferay. Try JIRA - bug tracking software for your team.