[jbosstools-issues] [JBoss JIRA] (JBIDE-22578) Publishing sometimes recursively deletes parent to deploy directory

Daniel Atallah (JIRA) issues at jboss.org
Wed Jun 22 14:42:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-22578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13256011#comment-13256011 ] 

Daniel Atallah commented on JBIDE-22578:
----------------------------------------

I think we've identified what's unique/wrong with our configuration leading to this problem.

In the {{.settings/org.eclipse.wst.common.component}} for a WAR Project, we found the following block:
{noformat}
<project-modules id="moduleCoreId" project-version="2.0">
	<wb-module deploy-name="MobileWeb">
...
		<dependent-module deploy-path="../" handle="module:/resource/core/core">
			<dependency-type>uses</dependency-type>
		</dependent-module>
	</wb-module>
</project-modules>
{noformat}
The above is the correct syntax for the deploy-path for a resource module project, but not for the WAR itself, which should be:
{noformat}
<project-modules id="moduleCoreId" project-version="2.0">
	<wb-module deploy-name="MobileWeb">
...
		<dependent-module deploy-path="/WEB-INF/lib" handle="module:/resource/core/core">
			<dependency-type>uses</dependency-type>
		</dependent-module>
	</wb-module>
</project-modules>
{noformat}

It isn't clear to me why {{$WORKSPACEROOT\deploy\..}} ends up being deleted as a result of this, I would expect it to try to delete {{$WORKSPACEROOT\deploy\MobileWeb\..\core.jar}} instead.  I also don't have any clues as to why this happens only intermittently.

> Publishing sometimes recursively deletes parent to deploy directory
> -------------------------------------------------------------------
>
>                 Key: JBIDE-22578
>                 URL: https://issues.jboss.org/browse/JBIDE-22578
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 4.3.1.Final
>         Environment: Eclipse Mars.2 Release (4.5.2)
> Java 1.8.0_91
> Windows 7 64-bit
> JBoss EAP 6.4.0
>            Reporter: Daniel Atallah
>            Assignee: Rob Stryker
>            Priority: Blocker
>             Fix For: 4.4.1.S116
>
>         Attachments: jboss_deployment.jpg, servers.xml
>
>
> For a number of weeks we've had a number of occurrences where a eclipse workspace will get corrupted due to the deletion of all files in it.
> It seems to have started happening at the time we updated to the 4.3.1 JBoss Tools from the 4.3.0 JBoss Tools.
> We've been able to track the process doing the deleting to the Eclipse process by using Sysinternals Process Monitor tool (https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx). 
> Our workspaces are structured as follows:
> {noformat}
> WORKSPACEROOT=$DEVROOT\workspacename
> # Custom deploy folder (as specified in the "Deployment" settings for the configured "Red Hat JBoss Enterprise Application Platform 6.1+") Server
> $WORKSPACEROOT\deploy 
> # Version Control (Mercurial) working directory containing various Eclipse projects that get published to the Server by the tooling
> $WORKSPACEROOT\src
> # value specified as a "jboss.server.data.dir" property in the Server launch configuration VM arguments
> $WORKSPACEROOT/server/data 
> # value specified as a "jboss.server.temp.dir" property in the Server launch configuration VM arguments
> $WORKSPACEROOT/server/tmp
> {noformat}
> The Server is configured to "Automatically publish when resources change".
> What we're seeing is that occasionally when the Server is running and the Mercurial working copy receives updates, the Incremental Publishing that results from these updates somehow tries to recursively delete $WORKSPACEROOT.
> The eclipse log includes the following:
> {noformat}
> !ENTRY org.eclipse.core.resources 4 1 2016-06-07 16:05:57.795
> !MESSAGE Problems occurred refreshing resources
> !SUBENTRY 1 org.eclipse.core.resources 4 1 2016-06-07 16:05:57.795
> !MESSAGE Problem finding next change, code: 5
> !ENTRY org.jboss.ide.eclipse.as.core 4 1644298244 2016-06-07 16:06:09.207
> !MESSAGE Incremental publish failed for module $MODULENAME
> !SUBENTRY 1 org.jboss.ide.eclipse.as.wtp.core 4 1644298251 2016-06-07 16:06:09.207
> !MESSAGE Could not delete $WORKSPACEROOT. May be locked by another process.
> {noformat}
> Any idea what might be happening?
> Is there some debug logging we can enable to get better visibility to what's going on?



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list