Bug 1169239 - Startup fails with 'JBAS014803: Duplicate resource' if "<app>.war.failed" file is present in deployment folder
Summary: Startup fails with 'JBAS014803: Duplicate resource' if "<app>.war.failed" fil...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Server
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: CR2
: EAP 6.4.1
Assignee: Chao Wang
QA Contact: Jan Martiska
eap-docs
URL:
Whiteboard:
Depends On:
Blocks: eap641-payload
TreeView+ depends on / blocked
 
Reported: 2014-12-01 06:20 UTC by Swapnil Chaudhari
Modified: 2019-02-15 13:53 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFCORE-505 0 Major Resolved Fix double redeployment due to .failed file and a artifact with newer timestamp. 2020-04-09 12:59:59 UTC

Description Swapnil Chaudhari 2014-12-01 06:20:56 UTC
Description of problem:

If a deployment failed then the file "<app>.war.failed" generated so after fixing the the problem when we restart the EAP, it will fail with below Error because the "<app>.war.failed" file is present in deployment directory :

-----------------------
10:35:03,485 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 18) JBAS014613: Operation ("add") failed - address: ([("deployment" => "Test.war")]) - failure description: "JBAS014803: Duplicate resource [(\"deployment\" => \"Test.war\")]"
10:35:03,487 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) "JBAS014784: Failed executing subsystem deployment-scanner boot operations"
10:35:03,493 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
----------------------- 

Version-Release number of selected component (if applicable):


How reproducible:

 - Below are the steps to reproduce the issue :

Steps to Reproduce:

1. deploy a "Test.war"
2. Change something in "Test.war" to fail it.
3. "Test.war.failed" file will be created.
4. stop JBoss EAP.
5. Revert the changes done in "Test.war" so that it will deploy successfully. 
6. Now there are two files ("Test.war.failed" and "Test.war")in deployment directory. 
7. Restart JBoss EAP, it will fail with below Error :

-----------------------
10:35:03,485 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 18) JBAS014613: Operation ("add") failed - address: ([("deployment" => "Test.war")]) - failure description: "JBAS014803: Duplicate resource [(\"deployment\" => \"Test.war\")]"
10:35:03,487 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) "JBAS014784: Failed executing subsystem deployment-scanner boot operations"
10:35:03,493 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
----------------------- 

Actual results:


Expected results:


Additional info:

Comment 1 Fernando Nasser 2014-12-01 14:51:25 UTC
"Deploy" but how?  Dropping the file?  Via the CLI?  Via the Console?  From inside Eclipse?  (the last one works for me, many times a day actually)

Also, why stopping the server to fix the deployment?  Does the same happen if the Server is kept on?

All this said, the scanner should ignore/remove the .failed marker file if the timestamp of the .?ar file is newer.

Reassigning to Carlo for proper component selection (this BZ is misfiled).

Comment 6 Rostislav Svoboda 2015-04-23 13:31:43 UTC
qa_acking, qa contact can stay as it is, will be properly assigned when CP01 arrives.

Comment 8 Jan Martiska 2015-05-15 07:54:19 UTC
Verified in EAP 6.4.1.CR2.

Comment 10 Petr Penicka 2017-01-17 10:01:14 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.

Comment 11 Petr Penicka 2017-01-17 10:01:16 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.


Note You need to log in before you can comment on or make changes to this bug.