Hide Forgot
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
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.
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
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
*** Bug 1006897 has been marked as a duplicate of this bug. ***
Fixed: https://github.com/jboss-developer/jboss-eap-quickstarts/commit/9c964b3f57ffcf8799c0d256f7a1da0cd14133a0
Added another commit for ejb-security-propagation: https://github.com/jboss-developer/jboss-eap-quickstarts/commit/22dfa2ac6
Rafael, where does this bug stand? Is this still an open issue? If so, send it back to me.
@Sgilda. It was fixed on master branch!
@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?
Just to verify: it looks like this impacts only the following quickstarts: ejb-security-interceptors ejb-security-plus
@sgilda. I'm not sure about the EAP version. We need to check it.
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.
Verified on EAP 6.2.0 ER4