Bug 1011701

Summary: Unable to compile ejb security quickstarts
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Paul Gier <pgier>
Component: QuickstartsAssignee: sgilda
Status: CLOSED CURRENTRELEASE QA Contact: Vladimir Rastseluev <vrastsel>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: benevides, bsutter, dosoudil, myarboro, pmuir, pslavice, sgilda, vrastsel
Target Milestone: ER4   
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:23:19 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:

Description Paul Gier 2013-09-24 21:23:01 UTC
The ejb security quickstarts currently fail to compile due to an incompatible API.  This affects the modules: ejb-security-interceptors, ejb-security-plus, and ejb-security-propagation.

Example error message from the ejb-security-interceptors module:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jboss-ejb-security-interceptors: Compilation failure: Compilation failure:
[ERROR] /home/pgier/projects/eap/quickstarts/ejb-security-interceptors/src/main/java/org/jboss/as/quickstarts/ejb_security_interceptors/OuterUserCredential.java:[19,46] cannot find symbol
[ERROR] symbol  : class RealmUser
[ERROR] location: package org.jboss.as.domain.management.security
[ERROR] /home/pgier/projects/eap/quickstarts/ejb-security-interceptors/src/main/java/org/jboss/as/quickstarts/ejb_security_interceptors/OuterUserCredential.java:[28,18] cannot find symbol
[ERROR] symbol  : class RealmUser

Comment 1 sgilda 2013-09-25 02:55:32 UTC
Adding Rafael.

Rafael, you said you could compile the ejb-security quickstarts? I had errors, although not the same as Paul.

I'll try this when I get back next week.

Comment 3 Rafael Benevides 2013-09-26 14:07:37 UTC
I was able to compile them:
[INFO] JBoss EAP Quickstart: ejb-security ................ SUCCESS [0.027s]
[INFO] JBoss EAP Quickstart: ejb-security-interceptors ... SUCCESS [0.674s]
[INFO] JBoss EAP Quickstart: ejb-security-plus ........... SUCCESS [0.096s]

using latest BOM and Quickstarts under 6.2.x branch

Comment 4 Rafael Benevides 2013-09-26 17:52:04 UTC
Now I was able to reproduce the error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jboss-ejb-security-interceptors: Compilation failure: Compilation failure:
[ERROR] /Users/rafaelbenevides/projetos/jdf/Quickstarts/jboss-eap-quickstarts/ejb-security-interceptors/src/main/java/org/jboss/as/quickstarts/ejb_security_interceptors/OuterUserCredential.java:[19,46] error: cannot find symbol
[ERROR] package org.jboss.as.domain.management.security
[ERROR] /Users/rafaelbenevides/projetos/jdf/Quickstarts/jboss-eap-quickstarts/ejb-security-interceptors/src/main/java/org/jboss/as/quickstarts/ejb_security_interceptors/OuterUserCredential.java:[28,18] error: cannot find symbol
[ERROR] class OuterUserCredential
[ERROR] /Users/rafaelbenevides/projetos/jdf/Quickstarts/jboss-eap-quickstarts/ejb-security-interceptors/src/main/java/org/jboss/as/quickstarts/ejb_security_interceptors/OuterUserCredential.java:[30,30] error: cannot find symbol
[ERROR] class OuterUserCredential

Comment 5 Paul Gier 2013-09-26 18:29:37 UTC
*** Bug 1006897 has been marked as a duplicate of this bug. ***

Comment 7 Rafael Benevides 2013-09-26 18:54:18 UTC
Added another commit for ejb-security-propagation: https://github.com/jboss-developer/jboss-eap-quickstarts/commit/22dfa2ac6

Comment 8 sgilda 2013-10-01 12:23:23 UTC
Rafael, where does this bug stand? Is this still an open issue? If so, send it back to me.

Comment 9 Rafael Benevides 2013-10-01 13:17:17 UTC
@Sgilda. It was fixed on master branch!

Comment 10 sgilda 2013-10-01 13:57:28 UTC
@rafabene: It looks like the package names changed. Does this mean these quickstarts will no longer work against older versions of EAP? 

If that's the case, do we need to change the instruction to tell them which version of the product it works against?

Comment 11 sgilda 2013-10-01 13:58:47 UTC
Just to verify: it looks like this impacts only the following quickstarts:

ejb-security-interceptors
ejb-security-plus

Comment 12 Rafael Benevides 2013-10-01 14:05:10 UTC
@sgilda. I'm not sure about the EAP version. We need to check it.

Comment 13 sgilda 2013-10-01 15:08:15 UTC
I just tested both quickstarts successfully using the existing Maven settings file  and the EAP 6.1 Maven settings, so we do not need to modify the README instructions.

Comment 14 Vladimir Rastseluev 2013-10-07 07:14:38 UTC
Verified on EAP 6.2.0 ER4