Bug 1015953

Summary: Impossible to deploy ejb-throws-exception, ejb-in-ear, kitchensink-ear, kitchensink-ml-ear, wicket-ear quickstarts examples
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Vladimir Rastseluev <vrastsel>
Component: QuickstartsAssignee: sgilda
Status: CLOSED CURRENTRELEASE QA Contact: Vladimir Rastseluev <vrastsel>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bsutter, jkudrnac, pmuir, pslavice
Target Milestone: ER5   
Target Release: EAP 6.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-15 16:19:53 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vladimir Rastseluev 2013-10-07 06:23:48 UTC
Description of problem:
Execution of goal jboss-as:deploy on ejb-throws-exception, ejb-in-ear, kitchensink-ear, kitchensink-ml-ear, wicket-ear examples failed because of wrong .ear file name: 
e.g.
maven tries to deploy /ejb-throws-exception/ear/target/jboss-ejb-throws-exception-ear.ear file, but there is
/ejb-throws-exception/ear/target/jboss-ejb-throws-exception.ear only

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

How reproducible:
easy

Steps to Reproduce:
1. start standalone server
2. cd $QICKSTARTS_ROOT/ejb-throws-exception
3. mvn clean package jboss-as:deploy

Actual results:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] JBoss EAP Quickstart: ejb-throws-exception ........ SUCCESS [9.143s]
[INFO] JBoss EAP Quickstart: ejb-throws-exception - ejb-api  SUCCESS [2.365s]
[INFO] JBoss EAP Quickstart: ejb-throws-exception - ejb .. SUCCESS [1.402s]
[INFO] JBoss EAP Quickstart: ejb-throws-exception - web .. SUCCESS [1.304s]
[INFO] JBoss EAP Quickstart: ejb-throws-exception - ear .. FAILURE [1.053s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.452s
[INFO] Finished at: Mon Oct 07 07:57:42 CEST 2013
[INFO] Final Memory: 22M/65M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.jboss.as.plugins:jboss-as-maven-plugin:7.4.Final:deploy (default-cli) on project jboss-ejb-throws-exception-ear: Error executing FORCE_DEPLOY: /home/vrastsel/jboss-eap-6.2.0-quickstarts/ejb-throws-exception/ear/target/jboss-ejb-throws-exception-ear.ear (No such file or directory) -> [Help 1]


Expected results:
archive should be deployed

Comment 2 sgilda 2013-10-08 15:56:14 UTC
The fix was to removed the filename element from the maven plugin in the EAR pom file.

Also updated the instructions to use 'mvn clean install jboss-as:deploy' for EAR files. Discovered the 'mvn clean package jboss-as:deploy' will not undeploy.

Comment 3 sgilda 2013-10-08 19:31:47 UTC
Rafael figured this one out for me. 

It was a result of a filename element in the Maven plugin section of the POM files that specified the project artifactId for the archive deployment, for example: kitchensink-ear-ear.ear. This overrode the parent project artifactId used for the archive name, for example 'kitchensink-ear.ear'. Maven attempted to deploy an non-existent 'kitchensink-ear-ear.ear' archive.

Comment 4 sgilda 2013-10-09 19:23:06 UTC
I tested these and they work in ER5.1

Comment 5 Vladimir Rastseluev 2013-10-10 11:26:04 UTC
Verified on EAP 6.2.0 ER5.1