Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: --Sprint 12/11, 6.1.0 CE RC1
-
Component/s: Infrastructure > App Servers, Tools > Plugins SDK > Portlets
-
Labels:
-
Similar Issues:
Description
When a portlet plugin is deployed by Liferay IDE using the new server-manager-web API, it deploys the war to the remote server and deploys normally. However, when Liferay IDE deploys a delta-war update to just change one deployed file (view.jsp), the new view.jsp file is correctly updated in the webapps folder of the remote tomcat via the server-manager-web API however, tomcat does not reload the JSP.
Activity
Gregory Amerson
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | SE Support [ support-lep@liferay.com ] | Gregory Amerson [ gregory.amerson ] |
| Fix Version/s | --Sprint - 09/11 [ 10693 ] |
Gregory Amerson
made changes -
| Fix Version/s | 6.1.X [ 10655 ] |
Gregory Amerson
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Gregory Amerson
made changes -
| Status | In Progress [ 3 ] | In Review [ 10006 ] |
Brian Chan
made changes -
| Status | In Review [ 10006 ] | Manual Testing [ 10007 ] |
Gregory Amerson
19/Sep/11 5:44 PM
View full commit
LPS-21241 added log printout for successful update
git-svn-id: svn://svn.liferay.com/repos/public/plugins/trunk@89304 05bdf26c-840f-0410-9ced-eb539d925f36
Gregory Amerson
19/Sep/11 5:44 PM
View full commit
LPS-21241 updateExecutor now checks for multiple deploy directories to update files
git-svn-id: svn://svn.liferay.com/repos/public/plugins/trunk@89303 05bdf26c-840f-0410-9ced-eb539d925f36
Brian Chan
19/Sep/11 5:44 PM
View full commit
LPS-21241 Source formatting
git-svn-id: svn://svn.liferay.com/repos/public/plugins/trunk@89305 05bdf26c-840f-0410-9ced-eb539d925f36
Michael Saechang
made changes -
| Labels | QA-R |
Ryan Wan
made changes -
| Assignee | Gregory Amerson [ gregory.amerson ] | Ryan Wan [ ryan.wan ] |
Ryan Wan
made changes -
| Status | Manual Testing [ 10007 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Vicki Tsang
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Vicki Tsang
made changes -
| Workflow | Liferay Workflow 2.2 [ 256880 ] | LPS Workflow [ 282950 ] |
Andrew Kim
made changes -
| Workflow | LPS Workflow [ 282950 ] | Copy of LPS Workflow [ 427207 ] |
Andrew Kim
made changes -
| Workflow | Copy of LPS Workflow [ 427207 ] | LPS Workflow [ 458817 ] |
Andrew Kim
made changes -
| Workflow | LPS Workflow [ 458817 ] | Copy 2 of LPS Workflow [ 491184 ] |
Andrew Kim
made changes -
| Workflow | Copy 2 of LPS Workflow [ 491184 ] | LPS Workflow [ 523070 ] |
Randy Zhu
made changes -
| Workflow | LPS Workflow [ 523070 ] | PUBLIC - LPS Generic Workflow [ 574944 ] |
Randy Zhu
made changes -
| Workflow | PUBLIC - LPS Generic Workflow [ 574944 ] | Copy of PUBLIC - LPS Generic Workflow [ 609254 ] |
Randy Zhu
made changes -
| Workflow | Copy of PUBLIC - LPS Generic Workflow [ 609254 ] | PUBLIC - LPS Generic Workflow [ 641183 ] |
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
37m 15s | 1 | Gregory Amerson | 16/Sep/11 2:44 AM | |||||
|
10s | 1 | Gregory Amerson | 16/Sep/11 2:44 AM | |||||
|
3d 11h 58m | 1 | Brian Chan | 19/Sep/11 2:43 PM | |||||
|
21d 12h 18m | 1 | Ryan Wan | 11/Oct/11 3:01 AM | |||||
|
26d 21h 31m | 1 | Vicki Tsang | 06/Nov/11 11:32 PM |

During the portlet deploy process it will copy a META-INF/context.xml file that has the following contents:
<Context
antiJARLocking="true"
antiResourceLocking="true"
/>
This causes tomcat7 to create a complete copy of all the times to the temp/ folder and open those files instead of the ones residing in webapps.
The problem comes when the developer makes a change to a single file (view.jsp), and then pushes that update to the server via the sever-manager-web API. The server-manager-web will update the single file in the webapps/<context> deployed location. However this will not affect tomcat's jsp reloading logic since it is looking at the JSP that is in the temp directory due to the antiResouceLocking=true setting.
What is interesting is that tomcat6 the context.xml file with the antiResourceLocking=true setting was still being set but tomcat6 doesn't seem to honor that setting. however, tomcat7 does now pay attention.
This is going to break one of the key features of Remote development for plugins, being able to update just a single jsp/java/resource file in a portlet and avoid having to re-deploy the entire application which involves uploading potentially large war files and waiting for the redeploy/ reloading of context on server's side.